From d5a83198d44ad925a8cf7bded0b0a21c76639901 Mon Sep 17 00:00:00 2001 From: Yannik <80621863+vaporvee@users.noreply.github.com> Date: Sat, 29 Apr 2023 19:22:22 +0200 Subject: [PATCH] reordered the libs --- README.md | 4 +- SConstruct | 5 +- godot-cpp | 1 - lib/godot-cpp/.clang-format | 199 + lib/godot-cpp/.gdignore | 0 lib/godot-cpp/.gitattributes | 6 + lib/godot-cpp/.github/CODEOWNERS | 6 + .../.github/actions/godot-cache/action.yml | 22 + lib/godot-cpp/.github/dependabot.yml | 6 + lib/godot-cpp/.github/workflows/ci.yml | 199 + .../.github/workflows/static_checks.yml | 54 + lib/godot-cpp/.gitignore | 193 + lib/godot-cpp/.gitmodules | 0 lib/godot-cpp/CMakeLists.txt | 212 + lib/godot-cpp/LICENSE.md | 21 + lib/godot-cpp/Makefile | 40 + lib/godot-cpp/README.md | 130 + lib/godot-cpp/SConstruct | 261 + lib/godot-cpp/binding_generator.py | 2319 + .../cmake/GodotCompilerWarnings.cmake | 94 + lib/godot-cpp/gdextension/README.md | 20 + lib/godot-cpp/gdextension/extension_api.json | 267358 +++++++++++++++ .../gdextension/gdextension_interface.h | 643 + .../include/godot_cpp/classes/ref.hpp | 298 + .../include/godot_cpp/classes/wrapped.hpp | 384 + .../include/godot_cpp/core/binder_common.hpp | 606 + .../godot_cpp/core/builtin_ptrcall.hpp | 80 + .../include/godot_cpp/core/class_db.hpp | 277 + lib/godot-cpp/include/godot_cpp/core/defs.hpp | 130 + .../include/godot_cpp/core/engine_ptrcall.hpp | 97 + .../include/godot_cpp/core/error_macros.hpp | 806 + lib/godot-cpp/include/godot_cpp/core/math.hpp | 811 + .../include/godot_cpp/core/memory.hpp | 194 + .../include/godot_cpp/core/method_bind.hpp | 733 + .../include/godot_cpp/core/method_ptrcall.hpp | 238 + .../include/godot_cpp/core/mutex_lock.hpp | 59 + .../include/godot_cpp/core/object.hpp | 163 + .../include/godot_cpp/core/property_info.hpp | 75 + .../include/godot_cpp/core/type_info.hpp | 402 + lib/godot-cpp/include/godot_cpp/godot.hpp | 87 + .../include/godot_cpp/templates/cowdata.hpp | 392 + .../include/godot_cpp/templates/hash_map.hpp | 591 + .../include/godot_cpp/templates/hash_set.hpp | 477 + .../include/godot_cpp/templates/hashfuncs.hpp | 526 + .../include/godot_cpp/templates/list.hpp | 769 + .../godot_cpp/templates/local_vector.hpp | 339 + .../include/godot_cpp/templates/pair.hpp | 107 + .../include/godot_cpp/templates/rb_map.hpp | 765 + .../include/godot_cpp/templates/rb_set.hpp | 714 + .../include/godot_cpp/templates/rid_owner.hpp | 465 + .../godot_cpp/templates/safe_refcount.hpp | 326 + .../godot_cpp/templates/search_array.hpp | 71 + .../include/godot_cpp/templates/self_list.hpp | 143 + .../godot_cpp/templates/sort_array.hpp | 323 + .../include/godot_cpp/templates/spin_lock.hpp | 54 + .../godot_cpp/templates/thread_work_pool.hpp | 205 + .../include/godot_cpp/templates/vector.hpp | 321 + .../include/godot_cpp/templates/vmap.hpp | 204 + .../include/godot_cpp/templates/vset.hpp | 145 + .../include/godot_cpp/variant/aabb.hpp | 494 + .../godot_cpp/variant/array_helpers.hpp | 50 + .../include/godot_cpp/variant/basis.hpp | 318 + .../include/godot_cpp/variant/char_string.hpp | 113 + .../include/godot_cpp/variant/char_utils.hpp | 90 + .../include/godot_cpp/variant/color.hpp | 289 + .../godot_cpp/variant/color_names.inc.hpp | 191 + .../include/godot_cpp/variant/plane.hpp | 140 + .../include/godot_cpp/variant/projection.hpp | 171 + .../include/godot_cpp/variant/quaternion.hpp | 237 + .../include/godot_cpp/variant/rect2.hpp | 376 + .../include/godot_cpp/variant/rect2i.hpp | 249 + .../include/godot_cpp/variant/transform2d.hpp | 250 + .../include/godot_cpp/variant/transform3d.hpp | 275 + .../include/godot_cpp/variant/typed_array.hpp | 122 + .../include/godot_cpp/variant/variant.hpp | 339 + .../include/godot_cpp/variant/vector2.hpp | 323 + .../include/godot_cpp/variant/vector2i.hpp | 158 + .../include/godot_cpp/variant/vector3.hpp | 521 + .../include/godot_cpp/variant/vector3i.hpp | 313 + .../include/godot_cpp/variant/vector4.hpp | 302 + .../include/godot_cpp/variant/vector4i.hpp | 341 + lib/godot-cpp/misc/ci/sources.list | 4 + lib/godot-cpp/misc/hooks/README.md | 37 + .../misc/hooks/canonicalize_filename.sh | 48 + lib/godot-cpp/misc/hooks/pre-commit | 50 + lib/godot-cpp/misc/hooks/pre-commit-black | 202 + .../misc/hooks/pre-commit-clang-format | 242 + lib/godot-cpp/misc/hooks/winmessage.ps1 | 103 + lib/godot-cpp/misc/scripts/black_format.sh | 25 + lib/godot-cpp/misc/scripts/check_ci_log.py | 65 + .../misc/scripts/check_get_file_list.py | 31 + lib/godot-cpp/misc/scripts/clang_format.sh | 38 + lib/godot-cpp/misc/scripts/codespell.sh | 5 + .../misc/scripts/copyright_headers.py | 95 + lib/godot-cpp/misc/scripts/file_format.sh | 41 + lib/godot-cpp/misc/scripts/header_guards.sh | 60 + lib/godot-cpp/misc/scripts/make_tarball.sh | 66 + lib/godot-cpp/misc/scripts/mypy.ini | 11 + lib/godot-cpp/misc/scripts/mypy_check.sh | 6 + lib/godot-cpp/src/classes/low_level.cpp | 58 + lib/godot-cpp/src/classes/wrapped.cpp | 63 + lib/godot-cpp/src/core/class_db.cpp | 358 + lib/godot-cpp/src/core/error_macros.cpp | 86 + lib/godot-cpp/src/core/memory.cpp | 132 + lib/godot-cpp/src/core/method_bind.cpp | 113 + lib/godot-cpp/src/core/object.cpp | 54 + lib/godot-cpp/src/godot.cpp | 117 + lib/godot-cpp/src/variant/aabb.cpp | 421 + lib/godot-cpp/src/variant/basis.cpp | 1054 + lib/godot-cpp/src/variant/char_string.cpp | 472 + lib/godot-cpp/src/variant/color.cpp | 572 + lib/godot-cpp/src/variant/packed_arrays.cpp | 230 + lib/godot-cpp/src/variant/plane.cpp | 185 + lib/godot-cpp/src/variant/projection.cpp | 941 + lib/godot-cpp/src/variant/quaternion.cpp | 353 + lib/godot-cpp/src/variant/rect2.cpp | 291 + lib/godot-cpp/src/variant/rect2i.cpp | 46 + lib/godot-cpp/src/variant/transform2d.cpp | 323 + lib/godot-cpp/src/variant/transform3d.cpp | 232 + lib/godot-cpp/src/variant/variant.cpp | 783 + lib/godot-cpp/src/variant/vector2.cpp | 199 + lib/godot-cpp/src/variant/vector2i.cpp | 129 + lib/godot-cpp/src/variant/vector3.cpp | 152 + lib/godot-cpp/src/variant/vector3i.cpp | 61 + lib/godot-cpp/src/variant/vector4.cpp | 196 + lib/godot-cpp/src/variant/vector4i.cpp | 87 + lib/godot-cpp/test/.gitignore | 25 + lib/godot-cpp/test/CMakeLists.txt | 150 + lib/godot-cpp/test/README.md | 34 + lib/godot-cpp/test/SConstruct | 32 + lib/godot-cpp/test/demo/default_env.tres | 7 + lib/godot-cpp/test/demo/example.gdextension | 22 + lib/godot-cpp/test/demo/icon.png | Bin 0 -> 3305 bytes lib/godot-cpp/test/demo/icon.png.import | 34 + lib/godot-cpp/test/demo/main.gd | 80 + lib/godot-cpp/test/demo/main.tscn | 25 + lib/godot-cpp/test/demo/project.godot | 24 + lib/godot-cpp/test/src/example.cpp | 337 + lib/godot-cpp/test/src/example.h | 149 + lib/godot-cpp/test/src/register_types.cpp | 48 + lib/godot-cpp/test/src/register_types.h | 16 + lib/godot-cpp/test/src/tests.h | 28 + lib/godot-cpp/tools/android.py | 102 + lib/godot-cpp/tools/ios.py | 81 + lib/godot-cpp/tools/ios_osxcross.py | 26 + lib/godot-cpp/tools/javascript.py | 45 + lib/godot-cpp/tools/linux.py | 34 + lib/godot-cpp/tools/macos.py | 50 + lib/godot-cpp/tools/macos_osxcross.py | 28 + lib/godot-cpp/tools/my_spawn.py | 52 + lib/godot-cpp/tools/targets.py | 92 + lib/godot-cpp/tools/windows.py | 72 + .../discord_game_sdk_binding_debug.dll | Bin 169472 -> 169472 bytes setup.py | 3 + 154 files changed, 300258 insertions(+), 7 deletions(-) delete mode 160000 godot-cpp create mode 100644 lib/godot-cpp/.clang-format create mode 100644 lib/godot-cpp/.gdignore create mode 100644 lib/godot-cpp/.gitattributes create mode 100644 lib/godot-cpp/.github/CODEOWNERS create mode 100644 lib/godot-cpp/.github/actions/godot-cache/action.yml create mode 100644 lib/godot-cpp/.github/dependabot.yml create mode 100644 lib/godot-cpp/.github/workflows/ci.yml create mode 100644 lib/godot-cpp/.github/workflows/static_checks.yml create mode 100644 lib/godot-cpp/.gitignore create mode 100644 lib/godot-cpp/.gitmodules create mode 100644 lib/godot-cpp/CMakeLists.txt create mode 100644 lib/godot-cpp/LICENSE.md create mode 100644 lib/godot-cpp/Makefile create mode 100644 lib/godot-cpp/README.md create mode 100644 lib/godot-cpp/SConstruct create mode 100644 lib/godot-cpp/binding_generator.py create mode 100644 lib/godot-cpp/cmake/GodotCompilerWarnings.cmake create mode 100644 lib/godot-cpp/gdextension/README.md create mode 100644 lib/godot-cpp/gdextension/extension_api.json create mode 100644 lib/godot-cpp/gdextension/gdextension_interface.h create mode 100644 lib/godot-cpp/include/godot_cpp/classes/ref.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/classes/wrapped.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/binder_common.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/builtin_ptrcall.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/class_db.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/defs.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/engine_ptrcall.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/error_macros.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/math.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/memory.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/method_bind.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/method_ptrcall.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/mutex_lock.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/object.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/property_info.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/core/type_info.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/godot.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/cowdata.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/hash_map.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/hash_set.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/hashfuncs.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/list.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/local_vector.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/pair.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/rb_map.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/rb_set.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/rid_owner.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/safe_refcount.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/search_array.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/self_list.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/sort_array.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/spin_lock.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/thread_work_pool.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/vector.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/vmap.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/templates/vset.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/aabb.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/array_helpers.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/basis.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/char_string.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/char_utils.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/color.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/color_names.inc.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/plane.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/projection.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/quaternion.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/rect2.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/rect2i.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/transform2d.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/transform3d.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/typed_array.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/variant.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector2.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector2i.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector3.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector3i.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector4.hpp create mode 100644 lib/godot-cpp/include/godot_cpp/variant/vector4i.hpp create mode 100644 lib/godot-cpp/misc/ci/sources.list create mode 100644 lib/godot-cpp/misc/hooks/README.md create mode 100644 lib/godot-cpp/misc/hooks/canonicalize_filename.sh create mode 100644 lib/godot-cpp/misc/hooks/pre-commit create mode 100644 lib/godot-cpp/misc/hooks/pre-commit-black create mode 100644 lib/godot-cpp/misc/hooks/pre-commit-clang-format create mode 100644 lib/godot-cpp/misc/hooks/winmessage.ps1 create mode 100644 lib/godot-cpp/misc/scripts/black_format.sh create mode 100644 lib/godot-cpp/misc/scripts/check_ci_log.py create mode 100644 lib/godot-cpp/misc/scripts/check_get_file_list.py create mode 100644 lib/godot-cpp/misc/scripts/clang_format.sh create mode 100644 lib/godot-cpp/misc/scripts/codespell.sh create mode 100644 lib/godot-cpp/misc/scripts/copyright_headers.py create mode 100644 lib/godot-cpp/misc/scripts/file_format.sh create mode 100644 lib/godot-cpp/misc/scripts/header_guards.sh create mode 100644 lib/godot-cpp/misc/scripts/make_tarball.sh create mode 100644 lib/godot-cpp/misc/scripts/mypy.ini create mode 100644 lib/godot-cpp/misc/scripts/mypy_check.sh create mode 100644 lib/godot-cpp/src/classes/low_level.cpp create mode 100644 lib/godot-cpp/src/classes/wrapped.cpp create mode 100644 lib/godot-cpp/src/core/class_db.cpp create mode 100644 lib/godot-cpp/src/core/error_macros.cpp create mode 100644 lib/godot-cpp/src/core/memory.cpp create mode 100644 lib/godot-cpp/src/core/method_bind.cpp create mode 100644 lib/godot-cpp/src/core/object.cpp create mode 100644 lib/godot-cpp/src/godot.cpp create mode 100644 lib/godot-cpp/src/variant/aabb.cpp create mode 100644 lib/godot-cpp/src/variant/basis.cpp create mode 100644 lib/godot-cpp/src/variant/char_string.cpp create mode 100644 lib/godot-cpp/src/variant/color.cpp create mode 100644 lib/godot-cpp/src/variant/packed_arrays.cpp create mode 100644 lib/godot-cpp/src/variant/plane.cpp create mode 100644 lib/godot-cpp/src/variant/projection.cpp create mode 100644 lib/godot-cpp/src/variant/quaternion.cpp create mode 100644 lib/godot-cpp/src/variant/rect2.cpp create mode 100644 lib/godot-cpp/src/variant/rect2i.cpp create mode 100644 lib/godot-cpp/src/variant/transform2d.cpp create mode 100644 lib/godot-cpp/src/variant/transform3d.cpp create mode 100644 lib/godot-cpp/src/variant/variant.cpp create mode 100644 lib/godot-cpp/src/variant/vector2.cpp create mode 100644 lib/godot-cpp/src/variant/vector2i.cpp create mode 100644 lib/godot-cpp/src/variant/vector3.cpp create mode 100644 lib/godot-cpp/src/variant/vector3i.cpp create mode 100644 lib/godot-cpp/src/variant/vector4.cpp create mode 100644 lib/godot-cpp/src/variant/vector4i.cpp create mode 100644 lib/godot-cpp/test/.gitignore create mode 100644 lib/godot-cpp/test/CMakeLists.txt create mode 100644 lib/godot-cpp/test/README.md create mode 100644 lib/godot-cpp/test/SConstruct create mode 100644 lib/godot-cpp/test/demo/default_env.tres create mode 100644 lib/godot-cpp/test/demo/example.gdextension create mode 100644 lib/godot-cpp/test/demo/icon.png create mode 100644 lib/godot-cpp/test/demo/icon.png.import create mode 100644 lib/godot-cpp/test/demo/main.gd create mode 100644 lib/godot-cpp/test/demo/main.tscn create mode 100644 lib/godot-cpp/test/demo/project.godot create mode 100644 lib/godot-cpp/test/src/example.cpp create mode 100644 lib/godot-cpp/test/src/example.h create mode 100644 lib/godot-cpp/test/src/register_types.cpp create mode 100644 lib/godot-cpp/test/src/register_types.h create mode 100644 lib/godot-cpp/test/src/tests.h create mode 100644 lib/godot-cpp/tools/android.py create mode 100644 lib/godot-cpp/tools/ios.py create mode 100644 lib/godot-cpp/tools/ios_osxcross.py create mode 100644 lib/godot-cpp/tools/javascript.py create mode 100644 lib/godot-cpp/tools/linux.py create mode 100644 lib/godot-cpp/tools/macos.py create mode 100644 lib/godot-cpp/tools/macos_osxcross.py create mode 100644 lib/godot-cpp/tools/my_spawn.py create mode 100644 lib/godot-cpp/tools/targets.py create mode 100644 lib/godot-cpp/tools/windows.py diff --git a/README.md b/README.md index 2c2c018..144709b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ ### This is an early version! In future versions there will be invites, user info etc. very soon! -Don't forget to run the following command **if you clone this project** or the godot-cpp folder will be empty +Don't forget to run the following command **if you clone this project** or files will be missing ```sh -git submodule update --init +python setup.py ``` # Addon Usage :rocket: 1. [Download the addon](https://github.com/vaporvee/discord-sdk-godot/releases/latest/download/ADDON-Discord-SDK-Godot.zip/) diff --git a/SConstruct b/SConstruct index d4f6376..0b66e59 100644 --- a/SConstruct +++ b/SConstruct @@ -1,10 +1,8 @@ #!python import os -# TOTAL HOURS WASTED ON LINUX SUPPORT: 22 - # Gets the standard flags CC, CCX, etc. -env = SConscript("godot-cpp/SConstruct") +env = SConscript("lib/godot-cpp/SConstruct") # Check our platform specifics if env['platform'] == "macos": @@ -16,7 +14,6 @@ elif env['platform'] in ('linuxbsd', 'linux'): libexportfolder = "/linux/" elif env['platform'] == "windows": - discord_library = 'discord_game_sdk.dll' libexportfolder = "/windows/" diff --git a/godot-cpp b/godot-cpp deleted file mode 160000 index feaba55..0000000 --- a/godot-cpp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit feaba551b5a5b2d13ad1c3fdd8c90e67c67ff37c diff --git a/lib/godot-cpp/.clang-format b/lib/godot-cpp/.clang-format new file mode 100644 index 0000000..1df6c35 --- /dev/null +++ b/lib/godot-cpp/.clang-format @@ -0,0 +1,199 @@ +# Commented out parameters are those with the same value as base LLVM style. +# We can uncomment them if we want to change their value, or enforce the +# chosen value in case the base style changes (last sync: Clang 14.0). +--- +### General config, applies to all languages ### +BasedOnStyle: LLVM +AccessModifierOffset: -4 +AlignAfterOpenBracket: DontAlign +# AlignArrayOfStructures: None +# AlignConsecutiveMacros: None +# AlignConsecutiveAssignments: None +# AlignConsecutiveBitFields: None +# AlignConsecutiveDeclarations: None +# AlignEscapedNewlines: Right +AlignOperands: DontAlign +AlignTrailingComments: false +# AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: false +# AllowShortEnumsOnASingleLine: true +# AllowShortBlocksOnASingleLine: Never +# AllowShortCaseLabelsOnASingleLine: false +# AllowShortFunctionsOnASingleLine: All +# AllowShortLambdasOnASingleLine: All +# AllowShortIfStatementsOnASingleLine: Never +# AllowShortLoopsOnASingleLine: false +# AlwaysBreakAfterDefinitionReturnType: None +# AlwaysBreakAfterReturnType: None +# AlwaysBreakBeforeMultilineStrings: false +# AlwaysBreakTemplateDeclarations: MultiLine +# AttributeMacros: +# - __capability +# BinPackArguments: true +# BinPackParameters: true +# BraceWrapping: +# AfterCaseLabel: false +# AfterClass: false +# AfterControlStatement: Never +# AfterEnum: false +# AfterFunction: false +# AfterNamespace: false +# AfterObjCDeclaration: false +# AfterStruct: false +# AfterUnion: false +# AfterExternBlock: false +# BeforeCatch: false +# BeforeElse: false +# BeforeLambdaBody: false +# BeforeWhile: false +# IndentBraces: false +# SplitEmptyFunction: true +# SplitEmptyRecord: true +# SplitEmptyNamespace: true +# BreakBeforeBinaryOperators: None +# BreakBeforeConceptDeclarations: true +# BreakBeforeBraces: Attach +# BreakBeforeInheritanceComma: false +# BreakInheritanceList: BeforeColon +# BreakBeforeTernaryOperators: true +# BreakConstructorInitializersBeforeComma: false +BreakConstructorInitializers: AfterColon +# BreakStringLiterals: true +ColumnLimit: 0 +# CommentPragmas: '^ IWYU pragma:' +# QualifierAlignment: Leave +# CompactNamespaces: false +ConstructorInitializerIndentWidth: 8 +ContinuationIndentWidth: 8 +Cpp11BracedListStyle: false +# DeriveLineEnding: true +# DerivePointerAlignment: false +# DisableFormat: false +# EmptyLineAfterAccessModifier: Never +# EmptyLineBeforeAccessModifier: LogicalBlock +# ExperimentalAutoDetectBinPacking: false +# PackConstructorInitializers: BinPack +ConstructorInitializerAllOnOneLineOrOnePerLine: true +# AllowAllConstructorInitializersOnNextLine: true +# FixNamespaceComments: true +# ForEachMacros: +# - foreach +# - Q_FOREACH +# - BOOST_FOREACH +# IfMacros: +# - KJ_IF_MAYBE +# IncludeBlocks: Preserve +IncludeCategories: + - Regex: '".*"' + Priority: 1 + - Regex: '^<.*\.h>' + Priority: 2 + - Regex: '^<.*' + Priority: 3 +# IncludeIsMainRegex: '(Test)?$' +# IncludeIsMainSourceRegex: '' +# IndentAccessModifiers: false +IndentCaseLabels: true +# IndentCaseBlocks: false +# IndentGotoLabels: true +# IndentPPDirectives: None +# IndentExternBlock: AfterExternBlock +# IndentRequires: false +IndentWidth: 4 +# IndentWrappedFunctionNames: false +# InsertTrailingCommas: None +# JavaScriptQuotes: Leave +# JavaScriptWrapImports: true +KeepEmptyLinesAtTheStartOfBlocks: false +# LambdaBodyIndentation: Signature +# MacroBlockBegin: '' +# MacroBlockEnd: '' +# MaxEmptyLinesToKeep: 1 +# NamespaceIndentation: None +# PenaltyBreakAssignment: 2 +# PenaltyBreakBeforeFirstCallParameter: 19 +# PenaltyBreakComment: 300 +# PenaltyBreakFirstLessLess: 120 +# PenaltyBreakOpenParenthesis: 0 +# PenaltyBreakString: 1000 +# PenaltyBreakTemplateDeclaration: 10 +# PenaltyExcessCharacter: 1000000 +# PenaltyReturnTypeOnItsOwnLine: 60 +# PenaltyIndentedWhitespace: 0 +# PointerAlignment: Right +# PPIndentWidth: -1 +# ReferenceAlignment: Pointer +# ReflowComments: true +# RemoveBracesLLVM: false +# SeparateDefinitionBlocks: Leave +# ShortNamespaceLines: 1 +# SortIncludes: CaseSensitive +# SortJavaStaticImport: Before +# SortUsingDeclarations: true +# SpaceAfterCStyleCast: false +# SpaceAfterLogicalNot: false +# SpaceAfterTemplateKeyword: true +# SpaceBeforeAssignmentOperators: true +# SpaceBeforeCaseColon: false +# SpaceBeforeCpp11BracedList: false +# SpaceBeforeCtorInitializerColon: true +# SpaceBeforeInheritanceColon: true +# SpaceBeforeParens: ControlStatements +# SpaceBeforeParensOptions: +# AfterControlStatements: true +# AfterForeachMacros: true +# AfterFunctionDefinitionName: false +# AfterFunctionDeclarationName: false +# AfterIfMacros: true +# AfterOverloadedOperator: false +# BeforeNonEmptyParentheses: false +# SpaceAroundPointerQualifiers: Default +# SpaceBeforeRangeBasedForLoopColon: true +# SpaceInEmptyBlock: false +# SpaceInEmptyParentheses: false +# SpacesBeforeTrailingComments: 1 +# SpacesInAngles: Never +# SpacesInConditionalStatement: false +# SpacesInContainerLiterals: true +# SpacesInCStyleCastParentheses: false +## Godot TODO: We'll want to use a min of 1, but we need to see how to fix +## our comment capitalization at the same time. +SpacesInLineCommentPrefix: + Minimum: 0 + Maximum: -1 +# SpacesInParentheses: false +# SpacesInSquareBrackets: false +# SpaceBeforeSquareBrackets: false +# BitFieldColonSpacing: Both +# StatementAttributeLikeMacros: +# - Q_EMIT +# StatementMacros: +# - Q_UNUSED +# - QT_REQUIRE_VERSION +TabWidth: 4 +# UseCRLF: false +UseTab: Always +# WhitespaceSensitiveMacros: +# - STRINGIZE +# - PP_STRINGIZE +# - BOOST_PP_STRINGIZE +# - NS_SWIFT_NAME +# - CF_SWIFT_NAME +--- +### C++ specific config ### +Language: Cpp +Standard: c++17 +--- +### ObjC specific config ### +Language: ObjC +# ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 4 +# ObjCBreakBeforeNestedBlockParam: true +# ObjCSpaceAfterProperty: false +# ObjCSpaceBeforeProtocolList: true +--- +### Java specific config ### +Language: Java +# BreakAfterJavaFieldAnnotations: false +JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax'] +... diff --git a/lib/godot-cpp/.gdignore b/lib/godot-cpp/.gdignore new file mode 100644 index 0000000..e69de29 diff --git a/lib/godot-cpp/.gitattributes b/lib/godot-cpp/.gitattributes new file mode 100644 index 0000000..9abe13e --- /dev/null +++ b/lib/godot-cpp/.gitattributes @@ -0,0 +1,6 @@ +*.c eol=lf +*.cpp eol=lf +*.gd eol=lf +*.tscn eol=lf +*.cfg eol=lf +*.godot eol=lf diff --git a/lib/godot-cpp/.github/CODEOWNERS b/lib/godot-cpp/.github/CODEOWNERS new file mode 100644 index 0000000..f30a44c --- /dev/null +++ b/lib/godot-cpp/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners. +# Owners can be @users, @org/teams or emails + +* @godotengine/gdextension +.github/ @godotengine/buildsystem diff --git a/lib/godot-cpp/.github/actions/godot-cache/action.yml b/lib/godot-cpp/.github/actions/godot-cache/action.yml new file mode 100644 index 0000000..2d7afc8 --- /dev/null +++ b/lib/godot-cpp/.github/actions/godot-cache/action.yml @@ -0,0 +1,22 @@ +name: Setup Godot build cache +description: Setup Godot build cache. +inputs: + cache-name: + description: The cache base name (job name by default). + default: "${{github.job}}" + scons-cache: + description: The scons cache path. + default: "${{github.workspace}}/.scons-cache/" +runs: + using: "composite" + steps: + # Upload cache on completion and check it out now + - name: Load .scons_cache directory + uses: actions/cache@v3 + with: + path: ${{inputs.scons-cache}} + key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} + restore-keys: | + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}} diff --git a/lib/godot-cpp/.github/dependabot.yml b/lib/godot-cpp/.github/dependabot.yml new file mode 100644 index 0000000..1230149 --- /dev/null +++ b/lib/godot-cpp/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/lib/godot-cpp/.github/workflows/ci.yml b/lib/godot-cpp/.github/workflows/ci.yml new file mode 100644 index 0000000..062cefa --- /dev/null +++ b/lib/godot-cpp/.github/workflows/ci.yml @@ -0,0 +1,199 @@ +name: Continuous integration +on: [push, pull_request] + +env: + # Only used for the cache key. Increment version to force clean build. + GODOT_BASE_BRANCH: master + +concurrency: + group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}} + cancel-in-progress: true + +jobs: + build: + name: ${{ matrix.name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - name: 🐧 Linux (GCC) + os: ubuntu-20.04 + platform: linux + artifact-name: godot-cpp-linux-glibc2.27-x86_64-release + artifact-path: bin/libgodot-cpp.linux.template_release.x86_64.a + cache-name: linux-x86_64 + + - name: 🐧 Linux (GCC, Double Precision) + os: ubuntu-20.04 + platform: linux + artifact-name: godot-cpp-linux-glibc2.27-x86_64-double-release + artifact-path: bin/libgodot-cpp.linux.template_release.double.x86_64.a + flags: precision=double + cache-name: linux-x86_64-f64 + + - name: 🏁 Windows (x86_64, MSVC) + os: windows-2019 + platform: windows + artifact-name: godot-cpp-windows-msvc2019-x86_64-release + artifact-path: bin/libgodot-cpp.windows.template_release.x86_64.lib + cache-name: windows-x86_64-msvc + + - name: 🏁 Windows (x86_64, MinGW) + os: windows-2019 + platform: windows + artifact-name: godot-cpp-linux-mingw-x86_64-release + artifact-path: bin/libgodot-cpp.windows.template_release.x86_64.a + flags: use_mingw=yes + cache-name: windows-x86_64-mingw + + - name: 🍎 macOS (universal) + os: macos-11 + platform: macos + artifact-name: godot-cpp-macos-universal-release + artifact-path: bin/libgodot-cpp.macos.template_release.universal.a + flags: arch=universal + cache-name: macos-universal + + - name: 🤖 Android (arm64) + os: ubuntu-20.04 + platform: android + artifact-name: godot-cpp-android-arm64-release + artifact-path: bin/libgodot-cpp.android.template_release.arm64.a + flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 + cache-name: android-arm64 + + - name: 🍏 iOS (arm64) + os: macos-11 + platform: ios + artifact-name: godot-cpp-ios-arm64-release + artifact-path: bin/libgodot-cpp.ios.template_release.arm64.a + flags: arch=arm64 + cache-name: ios-arm64 + + env: + SCONS_CACHE: ${{ github.workspace }}/.scons-cache/ + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Setup Godot build cache + uses: ./.github/actions/godot-cache + with: + cache-name: ${{ matrix.cache-name }} + continue-on-error: true + + - name: Set up Python (for SCons) + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Linux dependencies + if: ${{ matrix.platform == 'linux' }} + run: | + sudo apt-get update -qq + sudo apt-get install -qqq build-essential pkg-config + + - name: Install scons + run: | + python -m pip install scons==4.0.0 + + - name: Setup MinGW for Windows/MinGW build + if: ${{ matrix.platform == 'windows' && matrix.flags == 'use_mingw=yes' }} + uses: egor-tensin/setup-mingw@v2 + + - name: Generate godot-cpp sources only + run: | + scons platform=${{ matrix.platform }} build_library=no ${{ matrix.flags }} + scons -c + + - name: Build godot-cpp (debug) + run: | + scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} + + - name: Build test without rebuilding godot-cpp (debug) + run: | + cd test + scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} build_library=no + + - name: Build test and godot-cpp (release) + run: | + cd test + scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }} + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.artifact-name }} + path: ${{ matrix.artifact-path }} + if-no-files-found: error + + linux-cmake: + name: 🐧 Build (Linux, GCC, CMake) + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -qqq build-essential pkg-config cmake + + - name: Build godot-cpp + run: | + cmake -DCMAKE_BUILD_TYPE=Release . + make -j $(nproc) VERBOSE=1 + + - name: Build test GDExtension library + run: | + cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." . + make -j $(nproc) VERBOSE=1 + + linux-cmake-ninja: + name: 🐧 Build (Linux, GCC, CMake Ninja) + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -qqq build-essential pkg-config cmake ninja-build + + - name: Build godot-cpp + run: | + cmake -DCMAKE_BUILD_TYPE=Release -GNinja . + cmake --build . -j $(nproc) --verbose + + - name: Build test GDExtension library + run: | + cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -GNinja . + cmake --build . -j $(nproc) --verbose + + windows-msvc-cmake: + name: 🏁 Build (Windows, MSVC, CMake) + runs-on: windows-2019 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build godot-cpp + run: | + cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" . + cmake --build . --verbose + + - name: Build test GDExtension library + run: | + cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -G"Visual Studio 16 2019" . + cmake --build . --verbose diff --git a/lib/godot-cpp/.github/workflows/static_checks.yml b/lib/godot-cpp/.github/workflows/static_checks.yml new file mode 100644 index 0000000..16cbb8b --- /dev/null +++ b/lib/godot-cpp/.github/workflows/static_checks.yml @@ -0,0 +1,54 @@ +name: 📊 Static Checks +on: [push, pull_request] + +concurrency: + group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static + cancel-in-progress: true + +jobs: + static-checks: + name: Format (clang-format, black format, file format) + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + # Azure repositories are not reliable, we need to prevent Azure giving us packages. + - name: Make apt sources.list use the default Ubuntu repositories + run: | + sudo rm -f /etc/apt/sources.list.d/* + sudo cp -f misc/ci/sources.list /etc/apt/sources.list + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main" + sudo apt-get update + + - name: Install dependencies + run: | + sudo apt-get install -qq dos2unix recode clang-format-15 libxml2-utils python3-pip moreutils + sudo update-alternatives --remove-all clang-format || true + sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 100 + sudo pip3 install black==22.3.0 pygments pytest==7.1.2 mypy==0.971 + + - name: File formatting checks (file_format.sh) + run: | + bash ./misc/scripts/file_format.sh + + - name: Header guards formatting checks (header_guards.sh) + run: | + bash ./misc/scripts/header_guards.sh + + - name: Python style checks via black (black_format.sh) + run: | + bash ./misc/scripts/black_format.sh + + - name: Python scripts static analysis (mypy_check.sh) + run: | + bash ./misc/scripts/mypy_check.sh + + - name: Bindings generation checks (ensures get_file_list returns all generated files) + run: | + python ./misc/scripts/check_get_file_list.py + + - name: Style checks via clang-format (clang_format.sh) + run: | + bash ./misc/scripts/clang_format.sh diff --git a/lib/godot-cpp/.gitignore b/lib/godot-cpp/.gitignore new file mode 100644 index 0000000..a51e14d --- /dev/null +++ b/lib/godot-cpp/.gitignore @@ -0,0 +1,193 @@ +# Godot auto generated files +*.gen.* +.import/ +.godot/ +/gen/ + +# Godot 3.x ignores +include/gen +src/gen + +# Build configuarion. +/custom.py + +# Misc +logs/* +*.log + +# The default cache directory +cache/ + +# Binaries +*.o +*.os +*.so +*.obj +*.bc +*.pyc +*.dblite +*.pdb +*.lib +bin +*.config +*.creator +*.creator.user +*.files +*.includes +*.idb + +# Gprof output +gmon.out + +# Vim temp files +*.swo +*.swp + +# Qt project files +*.config +*.creator +*.creator.* +*.files +*.includes +*.cflags +*.cxxflags + +# Eclipse CDT files +.cproject +.settings/ + +# Geany/geany-plugins files +*.geany +.geanyprj + +# Misc +.DS_Store +logs/ + +# for projects that use SCons for building: http://http://www.scons.org/ +.sconf_temp +.sconsign.dblite +*.pyc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.opendb +*.VC.VC.opendb +enc_temp_folder/ + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# CodeLite project files +*.project +*.workspace +.codelite/ + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +__pycache__/ + +# KDE +.directory + +#Kdevelop project files +*.kdev4 + +# xCode +xcuserdata + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# ========================= +# Windows detritus +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ +logo.h +*.autosave + +# https://github.com/github/gitignore/blob/master/Global/Tags.gitignore +# Ignore tags created by etags, ctags, gtags (GNU global) and cscope +TAGS +!TAGS/ +tags +*.tags +!tags/ +gtags.files +GTAGS +GRTAGS +GPATH +cscope.files +cscope.out +cscope.in.out +cscope.po.out +godot.creator.* + +# Visual Studio 2017 and Visual Studio Code workspace folder +/.vs +/.vscode + +# Visual Studio Code workspace file +*.code-workspace + +# Scons progress indicator +.scons_node_count + +# ccls cache (https://github.com/MaskRay/ccls) +.ccls-cache/ + +# compile commands (https://clang.llvm.org/docs/JSONCompilationDatabase.html) +compile_commands.json diff --git a/lib/godot-cpp/.gitmodules b/lib/godot-cpp/.gitmodules new file mode 100644 index 0000000..e69de29 diff --git a/lib/godot-cpp/CMakeLists.txt b/lib/godot-cpp/CMakeLists.txt new file mode 100644 index 0000000..49d5988 --- /dev/null +++ b/lib/godot-cpp/CMakeLists.txt @@ -0,0 +1,212 @@ +# cmake arguments +# CMAKE_BUILD_TYPE: Compilation target (Debug or Release defaults to Debug) +# +# godot-cpp cmake arguments +# GODOT_GDEXTENSION_DIR: Path to the directory containing GDExtension interface header and API JSON file +# GODOT_CPP_SYSTEM_HEADERS Mark the header files as SYSTEM. This may be useful to supress warnings in projects including this one. +# GODOT_CPP_WARNING_AS_ERROR Treat any warnings as errors +# GODOT_CUSTOM_API_FILE: Path to a custom GDExtension API JSON file (takes precedence over `gdextension_dir`) +# FLOAT_PRECISION: Floating-point precision level ("single", "double") +# +# Android cmake arguments +# CMAKE_TOOLCHAIN_FILE: The path to the android cmake toolchain ($ANDROID_NDK/build/cmake/android.toolchain.cmake) +# ANDROID_NDK: The path to the android ndk root folder +# ANDROID_TOOLCHAIN_NAME: The android toolchain (arm-linux-androideabi-4.9 or aarch64-linux-android-4.9 or x86-4.9 or x86_64-4.9) +# ANDROID_PLATFORM: The android platform version (android-23) +# More info here: https://godot.readthedocs.io/en/latest/development/compiling/compiling_for_android.html +# +# Examples +# +# Builds a debug version: +# cmake . +# cmake --build . +# +# Builds a release version with clang +# CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" . +# cmake --build . +# +# Builds an android armeabi-v7a debug version: +# cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_NDK=$ANDROID_NDK \ +# -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.9 -DANDROID_PLATFORM=android-23 -DCMAKE_BUILD_TYPE=Debug . +# cmake --build . +# +# Protip +# Generate the buildfiles in a sub directory to not clutter the root directory with build files: +# mkdir build && cd build && cmake -G "Unix Makefiles" .. && cmake --build . +# +# Todo +# Test build for Windows, Mac and mingw. + +project(godot-cpp LANGUAGES CXX) +cmake_minimum_required(VERSION 3.12) + +option(GENERATE_TEMPLATE_GET_NODE "Generate a template version of the Node class's get_node." ON) +option(GODOT_CPP_SYSTEM_HEADERS "Expose headers as SYSTEM." ON) +option(GODOT_CPP_WARNING_AS_ERROR "Treat warnings as errors" OFF) + +# Add path to modules +list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" ) + +# Check if we are building ourself or being included +if(${PROJECT_NAME} STREQUAL ${CMAKE_PROJECT_NAME}) + set(GODOT_CPP_BUILDING_SELF ON) +endif() + +# Set some helper variables for readability +set( compiler_is_clang "$,$>" ) +set( compiler_is_gnu "$" ) +set( compiler_is_msvc "$" ) + +# Default build type is Debug in the SConstruct +if("${CMAKE_BUILD_TYPE}" STREQUAL "") + set(CMAKE_BUILD_TYPE Debug) +endif() + +if(NOT DEFINED BITS) + set(BITS 32) + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(BITS 64) + endif(CMAKE_SIZEOF_VOID_P EQUAL 8) +endif() + +# Input from user for GDExtension interface header and the API JSON file +set(GODOT_GDEXTENSION_DIR "gdextension" CACHE STRING "") +set(GODOT_CUSTOM_API_FILE "" CACHE STRING "") +set(FLOAT_PRECISION "single" CACHE STRING "") +if ("${FLOAT_PRECISION}" STREQUAL "double") + add_definitions(-DREAL_T_IS_DOUBLE) +endif() + +set(GODOT_GDEXTENSION_API_FILE "${GODOT_GDEXTENSION_DIR}/extension_api.json") +if (NOT "${GODOT_CUSTOM_API_FILE}" STREQUAL "") # User-defined override. + set(GODOT_GDEXTENSION_API_FILE "${GODOT_CUSTOM_API_FILE}") +endif() + +set(GODOT_COMPILE_FLAGS ) + +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") + # using Visual Studio C++ + set(GODOT_COMPILE_FLAGS "/EHsc") # /GF /MP + + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /MDd") # /Od /RTC1 /Zi + else() + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /MD /O2") # /Oy /GL /Gy + STRING(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) + endif(CMAKE_BUILD_TYPE MATCHES Debug) + + add_definitions(-DNOMINMAX) +else() # GCC/Clang + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -g") + + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0") + else() + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -O3") + endif(CMAKE_BUILD_TYPE MATCHES Debug) +endif() + +# Generate source from the bindings file +find_package(Python3 3.4 REQUIRED) # pathlib should be present +if(GENERATE_TEMPLATE_GET_NODE) + set(GENERATE_BINDING_PARAMETERS "True") +else() + set(GENERATE_BINDING_PARAMETERS "False") +endif() + +execute_process(COMMAND "${Python3_EXECUTABLE}" "-c" "import binding_generator; binding_generator.print_file_list(\"${GODOT_GDEXTENSION_API_FILE}\", \"${CMAKE_CURRENT_BINARY_DIR}\", headers=True, sources=True)" + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + OUTPUT_VARIABLE GENERATED_FILES_LIST +) + +add_custom_command(OUTPUT ${GENERATED_FILES_LIST} + COMMAND "${Python3_EXECUTABLE}" "-c" "import binding_generator; binding_generator.generate_bindings(\"${GODOT_GDEXTENSION_API_FILE}\", \"${GENERATE_BINDING_PARAMETERS}\", \"${BITS}\", \"${FLOAT_PRECISION}\", \"${CMAKE_CURRENT_BINARY_DIR}\")" + VERBATIM + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + MAIN_DEPENDENCY ${GODOT_GDEXTENSION_API_FILE} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/binding_generator.py + COMMENT "Generating bindings" +) + +# Get Sources +file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.c**) +file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS include/*.h**) + +# Define our godot-cpp library +add_library(${PROJECT_NAME} STATIC + ${SOURCES} + ${HEADERS} + ${GENERATED_FILES_LIST} +) +add_library(godot::cpp ALIAS ${PROJECT_NAME}) + +include(GodotCompilerWarnings) + +# Treat warnings as errors if we are building ourself +if(GODOT_CPP_BUILDING_SELF) + unset( GODOT_CPP_WARNING_AS_ERROR CACHE ) + set_warning_as_error() +endif() + +target_compile_features(${PROJECT_NAME} + PRIVATE + cxx_std_17 +) + +target_compile_definitions(${PROJECT_NAME} PUBLIC + $<$: + DEBUG_ENABLED + DEBUG_METHODS_ENABLED + > + $<${compiler_is_msvc}: + TYPED_METHOD_BIND + > +) + +target_link_options(${PROJECT_NAME} PRIVATE + $<$: + -static-libgcc + -static-libstdc++ + -Wl,-R,'$$ORIGIN' + > +) + +# Optionally mark headers as SYSTEM +set(GODOT_CPP_SYSTEM_HEADERS_ATTRIBUTE "") +if (GODOT_CPP_SYSTEM_HEADERS) + set(GODOT_CPP_SYSTEM_HEADERS_ATTRIBUTE SYSTEM) +endif () + +target_include_directories(${PROJECT_NAME} ${GODOT_CPP_SYSTEM_HEADERS_ATTRIBUTE} PUBLIC + include + ${CMAKE_CURRENT_BINARY_DIR}/gen/include + ${GODOT_GDEXTENSION_DIR} +) + +# Add the compile flags +set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS ${GODOT_COMPILE_FLAGS}) + +# Create the correct name (godot.os.build_type.system_bits) +string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME) +string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE) + +if(ANDROID) + # Added the android abi after system name + set(SYSTEM_NAME ${SYSTEM_NAME}.${ANDROID_ABI}) + + # Android does not have the bits at the end if you look at the main godot repo build + set(OUTPUT_NAME "godot-cpp.${SYSTEM_NAME}.${BUILD_TYPE}") +else() + set(OUTPUT_NAME "godot-cpp.${SYSTEM_NAME}.${BUILD_TYPE}.${BITS}") +endif() + +set_target_properties(${PROJECT_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + POSITION_INDEPENDENT_CODE ON + ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin" + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin" + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin" + OUTPUT_NAME "${OUTPUT_NAME}" +) diff --git a/lib/godot-cpp/LICENSE.md b/lib/godot-cpp/LICENSE.md new file mode 100644 index 0000000..eb446fe --- /dev/null +++ b/lib/godot-cpp/LICENSE.md @@ -0,0 +1,21 @@ +# MIT License + +Copyright (c) 2017-present Godot Engine contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/godot-cpp/Makefile b/lib/godot-cpp/Makefile new file mode 100644 index 0000000..6ecdaa7 --- /dev/null +++ b/lib/godot-cpp/Makefile @@ -0,0 +1,40 @@ +TARGET = template_debug + +BASE = scons target=$(TARGET) $(EXTRA_ARGS) +LINUX = $(BASE) platform=linux +WINDOWS = $(BASE) platform=windows +MACOS = $(BASE) platform=macos + + +.PHONY: usage +usage: + @echo -e "Specify one of the available targets:\n" + # https://stackoverflow.com/a/26339924 + @LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$' + @echo -e "\nDefine the SCons target with TARGET, and pass extra SCons arguments with EXTRA_ARGS." + + +linux: + make linux32 + make linux64 + +linux32: SConstruct + $(LINUX) arch=x86_32 + +linux64: SConstruct + $(LINUX) arch=x86_64 + + +windows: + make windows32 + make windows64 + +windows32: SConstruct + $(WINDOWS) arch=x86_32 + +windows64: SConstruct + $(WINDOWS) arch=x86_64 + + +macos: SConstruct + $(MACOS) diff --git a/lib/godot-cpp/README.md b/lib/godot-cpp/README.md new file mode 100644 index 0000000..38f8320 --- /dev/null +++ b/lib/godot-cpp/README.md @@ -0,0 +1,130 @@ +# godot-cpp + +> **Warning** +> +> This repository's `master` branch is only usable with Godot's ([GDExtension](https://godotengine.org/article/introducing-gd-extensions)) +> API (Godot 4.0 and later). +> +> For GDNative users (Godot 3.x), switch to the [`3.x`](https://github.com/godotengine/godot-cpp/tree/3.x) +> or the [`3.5`](https://github.com/godotengine/godot-cpp/tree/3.5) branch. + +This repository contains the *C++ bindings* for the [**Godot Engine**](https://github.com/godotengine/godot)'s GDExtensions API. + +- [**Versioning**](#versioning) +- [**Compatibility**](#compatibility) +- [**Contributing**](#contributing) +- [**Getting started**](#getting-started) +- [**Included example**](#included-example) + +## Versioning + +This repositories follows the same branch versioning as the main [Godot Engine +repository](https://github.com/godotengine/godot): + +- `master` tracks the current GDExtension development branch for the next Godot + 4.x minor release. +- `3.x` tracks the development of the GDNative plugin for the next 3.x minor + release. +- Other versioned branches (e.g. `4.0`, `3.5`) track the latest stable release + in the corresponding branch. + +Stable releases are also tagged on this repository: +[**Tags**](https://github.com/godotengine/godot-cpp/tags). + +**For any project built against a stable release of Godot, we recommend using +this repository as a Git submodule, checking out the specific tag matching your +Godot version.** + +> As the `master` branch of Godot is constantly getting updated, if you are +> using `godot-cpp` against a more current version of Godot, see the instructions +> in the `gdextension` folder to update the relevant files. + +## Compatibility + +**Warning:** The GDExtension API is brand new in Godot 4.0, and is still +considered in **beta** stage, despite Godot 4.0 itself being released. + +This applies to both the GDExtension interface header, the API JSON, and this +first-party `godot-cpp` extension. + +Some compatibility breakage is to be expected as GDExtension and `godot-cpp` +get more used, documented, and critical issues get resolved. See the +[issue tracker](https://github.com/godotengine/godot/issues) for a list of known +issues, and be sure to provide feedback on issues and PRs which affect your use +of this extension. + +## Contributing + +We greatly appreciate help in maintaining and extending this project. If you +wish to help out, ensure you have an account on GitHub and create a "fork" of +this repository. See [Pull request workflow](https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html) +for instructions. + +Please install clang-format and copy the files in `misc/hooks` into `.git/hooks` +so formatting is done before your changes are submitted. + +## Getting started + +It's a bit similar to what it was for 3.x but also a bit different. +This new approach is much more akin to how core Godot modules are structured. + +Compiling this repository generates a static library to be linked with your shared lib, +just like before. + +To use the shared lib in your Godot project you'll need a `.gdextension` +file, which replaces what was the `.gdnlib` before. +Follow [the example](test/demo/example.gdextension): + +```ini +[configuration] + +entry_symbol = "example_library_init" + +[libraries] + +macos.debug = "bin/libgdexample.macos.debug.framework" +macos.release = "bin/libgdexample.macos.release.framework" +windows.debug.x86_64 = "bin/libgdexample.windows.debug.x86_64.dll" +windows.release.x86_64 = "bin/libgdexample.windows.release.x86_64.dll" +linux.debug.x86_64 = "bin/libgdexample.linux.debug.x86_64.so" +linux.release.x86_64 = "bin/libgdexample.linux.release.x86_64.so" +# Repeat for other architectures to support arm64, rv64, etc. +``` + +The `entry_symbol` is the name of the function that initializes +your library. It should be similar to following layout: + +```cpp +extern "C" { + +// Initialization. + +GDExtensionBool GDE_EXPORT example_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) { + godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization); + + init_obj.register_initializer(initialize_example_module); + init_obj.register_terminator(uninitialize_example_module); + init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE); + + return init_obj.init(); +} +} +``` + +The `initialize_example_module()` should register the classes in ClassDB, very like a Godot module would do. + +```cpp +using namespace godot; +void initialize_example_module(ModuleInitializationLevel p_level) { + if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { + return; + } + ClassDB::register_class(); +} +``` + +Any node and resource you register will be available in the corresponding `Create...` dialog. Any class will be available to scripting as well. + +## Included example + +Check the project in the `test` folder for an example on how to use and register different things. diff --git a/lib/godot-cpp/SConstruct b/lib/godot-cpp/SConstruct new file mode 100644 index 0000000..27ee137 --- /dev/null +++ b/lib/godot-cpp/SConstruct @@ -0,0 +1,261 @@ +#!/usr/bin/env python + +import os +import platform +import sys +import subprocess +from binding_generator import scons_generate_bindings, scons_emit_files +from SCons.Errors import UserError + +EnsureSConsVersion(4, 0) + + +def add_sources(sources, dir, extension): + for f in os.listdir(dir): + if f.endswith("." + extension): + sources.append(dir + "/" + f) + + +def normalize_path(val): + return val if os.path.isabs(val) else os.path.join(env.Dir("#").abspath, val) + + +def validate_api_file(key, val, env): + if not os.path.isfile(normalize_path(val)): + raise UserError("GDExtension API file ('%s') does not exist: %s" % (key, val)) + + +def validate_gdextension_dir(key, val, env): + if not os.path.isdir(normalize_path(val)): + raise UserError("GDExtension directory ('%s') does not exist: %s" % (key, val)) + + +def get_gdextension_dir(env): + return normalize_path(env.get("gdextension_dir", env.Dir("gdextension").abspath)) + + +def get_api_file(env): + return normalize_path(env.get("custom_api_file", os.path.join(get_gdextension_dir(env), "extension_api.json"))) + + +# Try to detect the host platform automatically. +# This is used if no `platform` argument is passed +if sys.platform.startswith("linux"): + default_platform = "linux" +elif sys.platform == "darwin": + default_platform = "macos" +elif sys.platform == "win32" or sys.platform == "msys": + default_platform = "windows" +elif ARGUMENTS.get("platform", ""): + default_platform = ARGUMENTS.get("platform") +else: + raise ValueError("Could not detect platform automatically, please specify with platform=") + +# Default tools with no platform defaults to gnu toolchain. +# We apply platform specific toolchains via our custom tools. +env = Environment(tools=["default"], PLATFORM="") + +# Default num_jobs to local cpu count if not user specified. +# SCons has a peculiarity where user-specified options won't be overridden +# by SetOption, so we can rely on this to know if we should use our default. +initial_num_jobs = env.GetOption("num_jobs") +altered_num_jobs = initial_num_jobs + 1 +env.SetOption("num_jobs", altered_num_jobs) +if env.GetOption("num_jobs") == altered_num_jobs: + cpu_count = os.cpu_count() + if cpu_count is None: + print("Couldn't auto-detect CPU count to configure build parallelism. Specify it with the -j argument.") + else: + safer_cpu_count = cpu_count if cpu_count <= 4 else cpu_count - 1 + print( + "Auto-detected %d CPU cores available for build parallelism. Using %d cores by default. You can override it with the -j argument." + % (cpu_count, safer_cpu_count) + ) + env.SetOption("num_jobs", safer_cpu_count) + +# Custom options and profile flags. +customs = ["custom.py"] +profile = ARGUMENTS.get("profile", "") +if profile: + if os.path.isfile(profile): + customs.append(profile) + elif os.path.isfile(profile + ".py"): + customs.append(profile + ".py") +opts = Variables(customs, ARGUMENTS) + +platforms = ("linux", "macos", "windows", "android", "ios", "javascript") +opts.Add( + EnumVariable( + "platform", + "Target platform", + default_platform, + allowed_values=platforms, + ignorecase=2, + ) +) + +# Editor and template_debug are compatible (i.e. you can use the same binary for Godot editor builds and Godot debug templates). +# Godot release templates are only compatible with "template_release" builds. +# For this reason, we default to template_debug builds, unlike Godot which defaults to editor builds. +opts.Add( + EnumVariable("target", "Compilation target", "template_debug", ("editor", "template_release", "template_debug")) +) +opts.Add( + PathVariable( + "gdextension_dir", + "Path to a custom directory containing GDExtension interface header and API JSON file", + None, + validate_gdextension_dir, + ) +) +opts.Add( + PathVariable( + "custom_api_file", + "Path to a custom GDExtension API JSON file (takes precedence over `gdextension_dir`)", + None, + validate_api_file, + ) +) +opts.Add( + BoolVariable("generate_bindings", "Force GDExtension API bindings generation. Auto-detected by default.", False) +) +opts.Add(BoolVariable("generate_template_get_node", "Generate a template version of the Node class's get_node.", True)) + +opts.Add(BoolVariable("build_library", "Build the godot-cpp library.", True)) +opts.Add(EnumVariable("precision", "Set the floating-point precision level", "single", ("single", "double"))) + +# Add platform options +tools = {} +for pl in platforms: + tool = Tool(pl, toolpath=["tools"]) + if hasattr(tool, "options"): + tool.options(opts) + tools[pl] = tool + +# CPU architecture options. +architecture_array = ["", "universal", "x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc32", "ppc64", "wasm32"] +architecture_aliases = { + "x64": "x86_64", + "amd64": "x86_64", + "armv7": "arm32", + "armv8": "arm64", + "arm64v8": "arm64", + "aarch64": "arm64", + "rv": "rv64", + "riscv": "rv64", + "riscv64": "rv64", + "ppcle": "ppc32", + "ppc": "ppc32", + "ppc64le": "ppc64", +} +opts.Add(EnumVariable("arch", "CPU architecture", "", architecture_array, architecture_aliases)) + +# Targets flags tool (optimizations, debug symbols) +target_tool = Tool("targets", toolpath=["tools"]) +target_tool.options(opts) + +opts.Update(env) +Help(opts.GenerateHelpText(env)) + +# Process CPU architecture argument. +if env["arch"] == "": + # No architecture specified. Default to arm64 if building for Android, + # universal if building for macOS or iOS, wasm32 if building for web, + # otherwise default to the host architecture. + if env["platform"] in ["macos", "ios"]: + env["arch"] = "universal" + elif env["platform"] == "android": + env["arch"] = "arm64" + elif env["platform"] == "javascript": + env["arch"] = "wasm32" + else: + host_machine = platform.machine().lower() + if host_machine in architecture_array: + env["arch"] = host_machine + elif host_machine in architecture_aliases.keys(): + env["arch"] = architecture_aliases[host_machine] + elif "86" in host_machine: + # Catches x86, i386, i486, i586, i686, etc. + env["arch"] = "x86_32" + else: + print("Unsupported CPU architecture: " + host_machine) + Exit() + +tool = Tool(env["platform"], toolpath=["tools"]) + +if tool is None or not tool.exists(env): + raise ValueError("Required toolchain not found for platform " + env["platform"]) + +tool.generate(env) +target_tool.generate(env) + +# Detect and print a warning listing unknown SCons variables to ease troubleshooting. +unknown = opts.UnknownVariables() +if unknown: + print("WARNING: Unknown SCons variables were passed and will be ignored:") + for item in unknown.items(): + print(" " + item[0] + "=" + item[1]) + +print("Building for architecture " + env["arch"] + " on platform " + env["platform"]) + +# Require C++17 +if env.get("is_msvc", False): + env.Append(CXXFLAGS=["/std:c++17"]) +else: + env.Append(CXXFLAGS=["-std=c++17"]) + +if env["precision"] == "double": + env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"]) + +# Generate bindings +env.Append(BUILDERS={"GenerateBindings": Builder(action=scons_generate_bindings, emitter=scons_emit_files)}) + +bindings = env.GenerateBindings( + env.Dir("."), + [get_api_file(env), os.path.join(get_gdextension_dir(env), "gdextension_interface.h"), "binding_generator.py"], +) + +scons_cache_path = os.environ.get("SCONS_CACHE") +if scons_cache_path is not None: + CacheDir(scons_cache_path) + Decider("MD5") + +# Forces bindings regeneration. +if env["generate_bindings"]: + AlwaysBuild(bindings) + NoCache(bindings) + +# Includes +env.Append(CPPPATH=[[env.Dir(d) for d in [get_gdextension_dir(env), "include", os.path.join("gen", "include")]]]) + +# Sources to compile +sources = [] +add_sources(sources, "src", "cpp") +add_sources(sources, "src/classes", "cpp") +add_sources(sources, "src/core", "cpp") +add_sources(sources, "src/variant", "cpp") +sources.extend([f for f in bindings if str(f).endswith(".cpp")]) + +suffix = ".{}.{}".format(env["platform"], env["target"]) +if env.dev_build: + suffix += ".dev" +if env["precision"] == "double": + suffix += ".double" +suffix += "." + env["arch"] +if env["ios_simulator"]: + suffix += ".simulator" + +# Expose it when included from another project +env["suffix"] = suffix + +library = None +env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"] +library_name = "libgodot-cpp{}{}".format(suffix, env["LIBSUFFIX"]) + +if env["build_library"]: + library = env.StaticLibrary(target=env.File("bin/%s" % library_name), source=sources) + Default(library) + +env.Append(LIBPATH=[env.Dir("bin")]) +env.Append(LIBS=library_name) +Return("env") diff --git a/lib/godot-cpp/binding_generator.py b/lib/godot-cpp/binding_generator.py new file mode 100644 index 0000000..7634942 --- /dev/null +++ b/lib/godot-cpp/binding_generator.py @@ -0,0 +1,2319 @@ +#!/usr/bin/env python + +import json +import re +import shutil +from pathlib import Path + + +def generate_mod_version(argcount, const=False, returns=False): + s = """ +#define MODBIND$VER($RETTYPE m_name$ARG) \\ +virtual $RETVAL _##m_name($FUNCARGS) $CONST override; \\ +""" + sproto = str(argcount) + if returns: + sproto += "R" + s = s.replace("$RETTYPE", "m_ret, ") + s = s.replace("$RETVAL", "m_ret") + + else: + s = s.replace("$RETTYPE", "") + s = s.replace("$RETVAL", "void") + + if const: + sproto += "C" + s = s.replace("$CONST", "const") + else: + s = s.replace("$CONST", "") + + s = s.replace("$VER", sproto) + argtext = "" + funcargs = "" + + for i in range(argcount): + if i > 0: + funcargs += ", " + + argtext += ", m_type" + str(i + 1) + funcargs += "m_type" + str(i + 1) + " arg" + str(i + 1) + + if argcount: + s = s.replace("$ARG", argtext) + s = s.replace("$FUNCARGS", funcargs) + else: + s = s.replace("$ARG", "") + s = s.replace("$FUNCARGS", funcargs) + + return s + + +def generate_wrappers(target): + max_versions = 12 + + txt = """ +#ifndef GDEXTENSION_WRAPPERS_GEN_H +#define GDEXTENSION_WRAPPERS_GEN_H + +""" + + for i in range(max_versions + 1): + txt += "\n/* Module Wrapper " + str(i) + " Arguments */\n" + txt += generate_mod_version(i, False, False) + txt += generate_mod_version(i, False, True) + txt += generate_mod_version(i, True, False) + txt += generate_mod_version(i, True, True) + + txt += "\n#endif\n" + + with open(target, "w") as f: + f.write(txt) + + +def get_file_list(api_filepath, output_dir, headers=False, sources=False): + api = {} + files = [] + with open(api_filepath) as api_file: + api = json.load(api_file) + + core_gen_folder = Path(output_dir) / "gen" / "include" / "godot_cpp" / "core" + include_gen_folder = Path(output_dir) / "gen" / "include" / "godot_cpp" + source_gen_folder = Path(output_dir) / "gen" / "src" + + files.append(str((core_gen_folder / "ext_wrappers.gen.inc").as_posix())) + + for builtin_class in api["builtin_classes"]: + if is_pod_type(builtin_class["name"]): + continue + + if is_included_type(builtin_class["name"]): + continue + + header_filename = include_gen_folder / "variant" / (camel_to_snake(builtin_class["name"]) + ".hpp") + source_filename = source_gen_folder / "variant" / (camel_to_snake(builtin_class["name"]) + ".cpp") + if headers: + files.append(str(header_filename.as_posix())) + if sources: + files.append(str(source_filename.as_posix())) + + for engine_class in api["classes"]: + # TODO: Properly setup this singleton since it conflicts with ClassDB in the bindings. + if engine_class["name"] == "ClassDB": + continue + header_filename = include_gen_folder / "classes" / (camel_to_snake(engine_class["name"]) + ".hpp") + source_filename = source_gen_folder / "classes" / (camel_to_snake(engine_class["name"]) + ".cpp") + if headers: + files.append(str(header_filename.as_posix())) + if sources: + files.append(str(source_filename.as_posix())) + + for native_struct in api["native_structures"]: + struct_name = native_struct["name"] + snake_struct_name = camel_to_snake(struct_name) + + header_filename = include_gen_folder / "classes" / (snake_struct_name + ".hpp") + if headers: + files.append(str(header_filename.as_posix())) + + if headers: + for path in [ + include_gen_folder / "variant" / "builtin_types.hpp", + include_gen_folder / "variant" / "builtin_binds.hpp", + include_gen_folder / "variant" / "utility_functions.hpp", + include_gen_folder / "variant" / "variant_size.hpp", + include_gen_folder / "classes" / "global_constants.hpp", + include_gen_folder / "classes" / "global_constants_binds.hpp", + ]: + files.append(str(path.as_posix())) + if sources: + utility_functions_source_path = source_gen_folder / "variant" / "utility_functions.cpp" + files.append(str(utility_functions_source_path.as_posix())) + + return files + + +def print_file_list(api_filepath, output_dir, headers=False, sources=False): + end = ";" + for f in get_file_list(api_filepath, output_dir, headers, sources): + print(f, end=end) + + +def scons_emit_files(target, source, env): + files = [env.File(f) for f in get_file_list(str(source[0]), target[0].abspath, True, True)] + env.Clean(target, files) + env["godot_cpp_gen_dir"] = target[0].abspath + return files, source + + +def scons_generate_bindings(target, source, env): + generate_bindings( + str(source[0]), + env["generate_template_get_node"], + "32" if "32" in env["arch"] else "64", + env["precision"], + env["godot_cpp_gen_dir"], + ) + return None + + +def generate_bindings(api_filepath, use_template_get_node, bits="64", precision="single", output_dir="."): + api = None + + target_dir = Path(output_dir) / "gen" + + with open(api_filepath) as api_file: + api = json.load(api_file) + + shutil.rmtree(target_dir, ignore_errors=True) + target_dir.mkdir(parents=True) + + real_t = "double" if precision == "double" else "float" + print("Built-in type config: " + real_t + "_" + bits) + + generate_global_constants(api, target_dir) + generate_global_constant_binds(api, target_dir) + generate_builtin_bindings(api, target_dir, real_t + "_" + bits) + generate_engine_classes_bindings(api, target_dir, use_template_get_node) + generate_utility_functions(api, target_dir) + + +builtin_classes = [] + +# Key is class name, value is boolean where True means the class is refcounted. +engine_classes = {} + +# Type names of native structures +native_structures = [] + +singletons = [] + + +def generate_builtin_bindings(api, output_dir, build_config): + global builtin_classes + + core_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "core" + include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "variant" + source_gen_folder = Path(output_dir) / "src" / "variant" + + core_gen_folder.mkdir(parents=True, exist_ok=True) + include_gen_folder.mkdir(parents=True, exist_ok=True) + source_gen_folder.mkdir(parents=True, exist_ok=True) + + generate_wrappers(core_gen_folder / "ext_wrappers.gen.inc") + + # Store types beforehand. + for builtin_api in api["builtin_classes"]: + if is_pod_type(builtin_api["name"]): + continue + builtin_classes.append(builtin_api["name"]) + + builtin_sizes = {} + + for size_list in api["builtin_class_sizes"]: + if size_list["build_configuration"] == build_config: + for size in size_list["sizes"]: + builtin_sizes[size["name"]] = size["size"] + break + + # Create a file for Variant size, since that class isn't generated. + variant_size_filename = include_gen_folder / "variant_size.hpp" + with variant_size_filename.open("+w") as variant_size_file: + variant_size_source = [] + add_header("variant_size.hpp", variant_size_source) + + header_guard = "GODOT_CPP_VARIANT_SIZE_HPP" + variant_size_source.append(f"#ifndef {header_guard}") + variant_size_source.append(f"#define {header_guard}") + variant_size_source.append(f'#define GODOT_CPP_VARIANT_SIZE {builtin_sizes["Variant"]}') + variant_size_source.append(f"#endif // ! {header_guard}") + + variant_size_file.write("\n".join(variant_size_source)) + + for builtin_api in api["builtin_classes"]: + if is_pod_type(builtin_api["name"]): + continue + if is_included_type(builtin_api["name"]): + continue + + size = builtin_sizes[builtin_api["name"]] + + header_filename = include_gen_folder / (camel_to_snake(builtin_api["name"]) + ".hpp") + source_filename = source_gen_folder / (camel_to_snake(builtin_api["name"]) + ".cpp") + + # Check used classes for header include + used_classes = set() + fully_used_classes = set() + + class_name = builtin_api["name"] + + if "constructors" in builtin_api: + for constructor in builtin_api["constructors"]: + if "arguments" in constructor: + for argument in constructor["arguments"]: + if is_included(argument["type"], class_name): + if "default_value" in argument and argument["type"] != "Variant": + fully_used_classes.add(argument["type"]) + else: + used_classes.add(argument["type"]) + + if "methods" in builtin_api: + for method in builtin_api["methods"]: + if "arguments" in method: + for argument in method["arguments"]: + if is_included(argument["type"], class_name): + if "default_value" in argument and argument["type"] != "Variant": + fully_used_classes.add(argument["type"]) + else: + used_classes.add(argument["type"]) + if "return_type" in method: + if is_included(method["return_type"], class_name): + used_classes.add(method["return_type"]) + + if "members" in builtin_api: + for member in builtin_api["members"]: + if is_included(member["type"], class_name): + used_classes.add(member["type"]) + + if "indexing_return_type" in builtin_api: + if is_included(builtin_api["indexing_return_type"], class_name): + used_classes.add(builtin_api["indexing_return_type"]) + + if "operators" in builtin_api: + for operator in builtin_api["operators"]: + if "right_type" in operator: + if is_included(operator["right_type"], class_name): + used_classes.add(operator["right_type"]) + + for type_name in fully_used_classes: + if type_name in used_classes: + used_classes.remove(type_name) + + used_classes = list(used_classes) + used_classes.sort() + fully_used_classes = list(fully_used_classes) + fully_used_classes.sort() + + with header_filename.open("w+") as header_file: + header_file.write(generate_builtin_class_header(builtin_api, size, used_classes, fully_used_classes)) + + with source_filename.open("w+") as source_file: + source_file.write(generate_builtin_class_source(builtin_api, size, used_classes, fully_used_classes)) + + # Create a header with all builtin types for convenience. + builtin_header_filename = include_gen_folder / "builtin_types.hpp" + with builtin_header_filename.open("w+") as builtin_header_file: + builtin_header = [] + add_header("builtin_types.hpp", builtin_header) + + builtin_header.append("#ifndef GODOT_CPP_BUILTIN_TYPES_HPP") + builtin_header.append("#define GODOT_CPP_BUILTIN_TYPES_HPP") + + builtin_header.append("") + + for builtin in builtin_classes: + builtin_header.append(f"#include ") + + builtin_header.append("") + + builtin_header.append("#endif // ! GODOT_CPP_BUILTIN_TYPES_HPP") + + builtin_header_file.write("\n".join(builtin_header)) + + # Create a header with bindings for builtin types. + builtin_binds_filename = include_gen_folder / "builtin_binds.hpp" + with builtin_binds_filename.open("w+") as builtin_binds_file: + builtin_binds = [] + add_header("builtin_binds.hpp", builtin_binds) + + builtin_binds.append("#ifndef GODOT_CPP_BUILTIN_BINDS_HPP") + builtin_binds.append("#define GODOT_CPP_BUILTIN_BINDS_HPP") + builtin_binds.append("") + builtin_binds.append("#include ") + builtin_binds.append("") + + for builtin_api in api["builtin_classes"]: + if is_included_type(builtin_api["name"]): + if "enums" in builtin_api: + for enum_api in builtin_api["enums"]: + builtin_binds.append(f"VARIANT_ENUM_CAST({builtin_api['name']}::{enum_api['name']});") + + builtin_binds.append("") + builtin_binds.append("#endif // ! GODOT_CPP_BUILTIN_BINDS_HPP") + + builtin_binds_file.write("\n".join(builtin_binds)) + + +def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_classes): + result = [] + + class_name = builtin_api["name"] + snake_class_name = camel_to_snake(class_name).upper() + + header_guard = f"GODOT_CPP_{snake_class_name}_HPP" + + add_header(f"{snake_class_name.lower()}.hpp", result) + + result.append(f"#ifndef {header_guard}") + result.append(f"#define {header_guard}") + + result.append("") + result.append("#include ") + result.append("") + + # Special cases. + if class_name == "String": + result.append("#include ") + result.append("#include ") + + if class_name == "PackedStringArray": + result.append("#include ") + if class_name == "PackedColorArray": + result.append("#include ") + if class_name == "PackedVector2Array": + result.append("#include ") + if class_name == "PackedVector3Array": + result.append("#include ") + + if class_name == "Array": + result.append("#include ") + + for include in fully_used_classes: + if include == "TypedArray": + result.append("#include ") + else: + result.append(f"#include ") + + if len(fully_used_classes) > 0: + result.append("") + + result.append("#include ") + result.append("") + result.append("namespace godot {") + result.append("") + + for type_name in used_classes: + if is_struct_type(type_name): + result.append(f"struct {type_name};") + else: + result.append(f"class {type_name};") + + if len(used_classes) > 0: + result.append("") + + result.append(f"class {class_name} {{") + result.append(f"\tstatic constexpr size_t {snake_class_name}_SIZE = {size};") + result.append(f"\tuint8_t opaque[{snake_class_name}_SIZE] = {{}};") + + result.append("") + result.append("\tfriend class Variant;") + if class_name == "String": + result.append("\tfriend class StringName;") + + result.append("") + result.append("\tstatic struct _MethodBindings {") + + if "constructors" in builtin_api: + for constructor in builtin_api["constructors"]: + result.append(f'\t\tGDExtensionPtrConstructor constructor_{constructor["index"]};') + + if builtin_api["has_destructor"]: + result.append("\t\tGDExtensionPtrDestructor destructor;") + + if "methods" in builtin_api: + for method in builtin_api["methods"]: + result.append(f'\t\tGDExtensionPtrBuiltInMethod method_{method["name"]};') + + if "members" in builtin_api: + for member in builtin_api["members"]: + result.append(f'\t\tGDExtensionPtrSetter member_{member["name"]}_setter;') + result.append(f'\t\tGDExtensionPtrGetter member_{member["name"]}_getter;') + + if "indexing_return_type" in builtin_api: + result.append("\t\tGDExtensionPtrIndexedSetter indexed_setter;") + result.append("\t\tGDExtensionPtrIndexedGetter indexed_getter;") + + if "is_keyed" in builtin_api and builtin_api["is_keyed"]: + result.append("\t\tGDExtensionPtrKeyedSetter keyed_setter;") + result.append("\t\tGDExtensionPtrKeyedGetter keyed_getter;") + result.append("\t\tGDExtensionPtrKeyedChecker keyed_checker;") + + if "operators" in builtin_api: + for operator in builtin_api["operators"]: + if "right_type" in operator: + result.append( + f'\t\tGDExtensionPtrOperatorEvaluator operator_{get_operator_id_name(operator["name"])}_{operator["right_type"]};' + ) + else: + result.append(f'\t\tGDExtensionPtrOperatorEvaluator operator_{get_operator_id_name(operator["name"])};') + + result.append("\t} _method_bindings;") + + result.append("") + result.append("\tstatic void init_bindings();") + result.append("\tstatic void _init_bindings_constructors_destructor();") + + result.append("") + result.append("public:") + + result.append( + f"\t_FORCE_INLINE_ GDExtensionTypePtr _native_ptr() const {{ return const_cast(&opaque); }}" + ) + + copy_constructor_index = -1 + + if "constructors" in builtin_api: + for constructor in builtin_api["constructors"]: + method_signature = f"\t{class_name}(" + if "arguments" in constructor: + method_signature += make_function_parameters( + constructor["arguments"], include_default=True, for_builtin=True + ) + if len(constructor["arguments"]) == 1 and constructor["arguments"][0]["type"] == class_name: + copy_constructor_index = constructor["index"] + method_signature += ");" + + result.append(method_signature) + + # Move constructor. + result.append(f"\t{class_name}({class_name} &&other);") + + # Special cases. + if class_name == "String" or class_name == "StringName" or class_name == "NodePath": + result.append(f"\t{class_name}(const char *from);") + result.append(f"\t{class_name}(const wchar_t *from);") + result.append(f"\t{class_name}(const char16_t *from);") + result.append(f"\t{class_name}(const char32_t *from);") + + if "constants" in builtin_api: + axis_constants_count = 0 + for constant in builtin_api["constants"]: + # Special case: Vector3.Axis is the only enum in the bindings. + # It's technically not supported by Variant but works for direct access. + if class_name == "Vector3" and constant["name"].startswith("AXIS"): + if axis_constants_count == 0: + result.append("\tenum Axis {") + result.append(f'\t\t{constant["name"]} = {constant["value"]},') + axis_constants_count += 1 + if axis_constants_count == 3: + result.append("\t};") + else: + result.append(f'\tstatic const {correct_type(constant["type"])} {constant["name"]};') + + if builtin_api["has_destructor"]: + result.append(f"\t~{class_name}();") + + method_list = [] + + if "methods" in builtin_api: + for method in builtin_api["methods"]: + method_list.append(method["name"]) + + vararg = method["is_vararg"] + if vararg: + result.append("\ttemplate") + + method_signature = "\t" + if "is_static" in method and method["is_static"]: + method_signature += "static " + + if "return_type" in method: + method_signature += f'{correct_type(method["return_type"])} ' + else: + method_signature += "void " + + method_signature += f'{method["name"]}(' + + method_arguments = [] + if "arguments" in method: + method_arguments = method["arguments"] + + method_signature += make_function_parameters( + method_arguments, include_default=True, for_builtin=True, is_vararg=vararg + ) + + method_signature += ")" + if method["is_const"]: + method_signature += " const" + method_signature += ";" + + result.append(method_signature) + + # Special cases. + if class_name == "String": + result.append("\tstatic String utf8(const char *from, int len = -1);") + result.append("\tvoid parse_utf8(const char *from, int len = -1);") + result.append("\tstatic String utf16(const char16_t *from, int len = -1);") + result.append("\tvoid parse_utf16(const char16_t *from, int len = -1);") + result.append("\tCharString utf8() const;") + result.append("\tCharString ascii() const;") + result.append("\tChar16String utf16() const;") + result.append("\tChar32String utf32() const;") + result.append("\tCharWideString wide_string() const;") + result.append("\tstatic String num_real(double p_num, bool p_trailing = true);") + + if "members" in builtin_api: + for member in builtin_api["members"]: + if f'get_{member["name"]}' not in method_list: + result.append(f'\t{correct_type(member["type"])} get_{member["name"]}() const;') + if f'set_{member["name"]}' not in method_list: + result.append(f'\tvoid set_{member["name"]}({type_for_parameter(member["type"])}value);') + + if "operators" in builtin_api: + for operator in builtin_api["operators"]: + if operator["name"] not in ["in", "xor"]: + if "right_type" in operator: + result.append( + f'\t{correct_type(operator["return_type"])} operator{operator["name"]}({type_for_parameter(operator["right_type"])}other) const;' + ) + else: + result.append( + f'\t{correct_type(operator["return_type"])} operator{operator["name"].replace("unary", "")}() const;' + ) + + # Copy assignment. + if copy_constructor_index >= 0: + result.append(f"\t{class_name} &operator=(const {class_name} &other);") + + # Move assignment. + result.append(f"\t{class_name} &operator=({class_name} &&other);") + + # Special cases. + if class_name == "String": + result.append("\tString &operator=(const char *p_str);") + result.append("\tString &operator=(const wchar_t *p_str);") + result.append("\tString &operator=(const char16_t *p_str);") + result.append("\tString &operator=(const char32_t *p_str);") + result.append("\tbool operator==(const char *p_str) const;") + result.append("\tbool operator==(const wchar_t *p_str) const;") + result.append("\tbool operator==(const char16_t *p_str) const;") + result.append("\tbool operator==(const char32_t *p_str) const;") + result.append("\tbool operator!=(const char *p_str) const;") + result.append("\tbool operator!=(const wchar_t *p_str) const;") + result.append("\tbool operator!=(const char16_t *p_str) const;") + result.append("\tbool operator!=(const char32_t *p_str) const;") + result.append("\tString operator+(const char *p_str);") + result.append("\tString operator+(const wchar_t *p_str);") + result.append("\tString operator+(const char16_t *p_str);") + result.append("\tString operator+(const char32_t *p_str);") + result.append("\tString operator+(char32_t p_char);") + result.append("\tString &operator+=(const String &p_str);") + result.append("\tString &operator+=(char32_t p_char);") + result.append("\tString &operator+=(const char *p_str);") + result.append("\tString &operator+=(const wchar_t *p_str);") + result.append("\tString &operator+=(const char32_t *p_str);") + + result.append("\tconst char32_t &operator[](int p_index) const;") + result.append("\tchar32_t &operator[](int p_index);") + result.append("\tconst char32_t *ptr() const;") + result.append("\tchar32_t *ptrw();") + + if class_name == "Array": + result.append("\ttemplate ") + result.append("\tstatic Array make(Args... args) {") + result.append("\t\treturn helpers::append_all(Array(), args...);") + result.append("\t}") + + if is_packed_array(class_name): + return_type = correct_type(builtin_api["indexing_return_type"]) + if class_name == "PackedByteArray": + return_type = "uint8_t" + elif class_name == "PackedInt32Array": + return_type = "int32_t" + elif class_name == "PackedFloat32Array": + return_type = "float" + result.append(f"\tconst {return_type} &operator[](int p_index) const;") + result.append(f"\t{return_type} &operator[](int p_index);") + result.append(f"\tconst {return_type} *ptr() const;") + result.append(f"\t{return_type} *ptrw();") + iterators = """ + struct Iterator { + _FORCE_INLINE_ $TYPE &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ $TYPE *operator->() const { return elem_ptr; } + _FORCE_INLINE_ Iterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return elem_ptr != b.elem_ptr; } + + Iterator($TYPE *p_ptr) { elem_ptr = p_ptr; } + Iterator() {} + Iterator(const Iterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + $TYPE *elem_ptr = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const $TYPE &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ const $TYPE *operator->() const { return elem_ptr; } + _FORCE_INLINE_ ConstIterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return elem_ptr != b.elem_ptr; } + + ConstIterator(const $TYPE *p_ptr) { elem_ptr = p_ptr; } + ConstIterator() {} + ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + const $TYPE *elem_ptr = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(ptrw()); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(ptrw() + size()); + } + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(ptr()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(ptr() + size()); + } +""" + result.append(iterators.replace("$TYPE", return_type)) + + if class_name == "Array": + result.append("\tconst Variant &operator[](int p_index) const;") + result.append("\tVariant &operator[](int p_index);") + result.append("\tvoid set_typed(uint32_t p_type, const StringName &p_class_name, const Variant &p_script);") + result.append("\tvoid _ref(const Array &p_from) const;") + + if class_name == "Dictionary": + result.append("\tconst Variant &operator[](const Variant &p_key) const;") + result.append("\tVariant &operator[](const Variant &p_key);") + + result.append("};") + + if class_name == "String": + result.append("") + result.append("bool operator==(const char *p_chr, const String &p_str);") + result.append("bool operator==(const wchar_t *p_chr, const String &p_str);") + result.append("bool operator==(const char16_t *p_chr, const String &p_str);") + result.append("bool operator==(const char32_t *p_chr, const String &p_str);") + result.append("bool operator!=(const char *p_chr, const String &p_str);") + result.append("bool operator!=(const wchar_t *p_chr, const String &p_str);") + result.append("bool operator!=(const char16_t *p_chr, const String &p_str);") + result.append("bool operator!=(const char32_t *p_chr, const String &p_str);") + result.append("String operator+(const char *p_chr, const String &p_str);") + result.append("String operator+(const wchar_t *p_chr, const String &p_str);") + result.append("String operator+(const char16_t *p_chr, const String &p_str);") + result.append("String operator+(const char32_t *p_chr, const String &p_str);") + result.append("String operator+(char32_t p_char, const String &p_str);") + + result.append("String itos(int64_t p_val);") + result.append("String uitos(uint64_t p_val);") + result.append("String rtos(double p_val);") + result.append("String rtoss(double p_val);") + + result.append("") + result.append("} // namespace godot") + + result.append(f"#endif // ! {header_guard}") + + return "\n".join(result) + + +def generate_builtin_class_source(builtin_api, size, used_classes, fully_used_classes): + result = [] + + class_name = builtin_api["name"] + snake_class_name = camel_to_snake(class_name) + enum_type_name = f"GDEXTENSION_VARIANT_TYPE_{snake_class_name.upper()}" + + add_header(f"{snake_class_name}.cpp", result) + + result.append("") + result.append(f"#include ") + result.append("") + result.append("#include ") + result.append("") + result.append("#include ") + result.append("") + + # Only used since the "fully used" is included in header already. + for include in used_classes: + result.append(f"#include ") + + if len(used_classes) > 0: + result.append("") + + result.append("#include ") + result.append("") + result.append("#include ") + result.append("") + result.append("namespace godot {") + result.append("") + + result.append(f"{class_name}::_MethodBindings {class_name}::_method_bindings;") + result.append("") + + result.append(f"void {class_name}::_init_bindings_constructors_destructor() {{") + + if "constructors" in builtin_api: + for constructor in builtin_api["constructors"]: + result.append( + f'\t_method_bindings.constructor_{constructor["index"]} = internal::gde_interface->variant_get_ptr_constructor({enum_type_name}, {constructor["index"]});' + ) + + if builtin_api["has_destructor"]: + result.append( + f"\t_method_bindings.destructor = internal::gde_interface->variant_get_ptr_destructor({enum_type_name});" + ) + + result.append("}") + + result.append(f"void {class_name}::init_bindings() {{") + + # StringName's constructor internally uses String, so it constructor must be ready ! + if class_name == "StringName": + result.append("\tString::_init_bindings_constructors_destructor();") + result.append(f"\t{class_name}::_init_bindings_constructors_destructor();") + + result.append("\tStringName __name;") + + if "methods" in builtin_api: + for method in builtin_api["methods"]: + # TODO: Add error check for hash mismatch. + result.append(f'\t__name = StringName("{method["name"]}");') + result.append( + f'\t_method_bindings.method_{method["name"]} = internal::gde_interface->variant_get_ptr_builtin_method({enum_type_name}, __name._native_ptr(), {method["hash"]});' + ) + + if "members" in builtin_api: + for member in builtin_api["members"]: + result.append(f'\t__name = StringName("{member["name"]}");') + result.append( + f'\t_method_bindings.member_{member["name"]}_setter = internal::gde_interface->variant_get_ptr_setter({enum_type_name}, __name._native_ptr());' + ) + result.append( + f'\t_method_bindings.member_{member["name"]}_getter = internal::gde_interface->variant_get_ptr_getter({enum_type_name}, __name._native_ptr());' + ) + + if "indexing_return_type" in builtin_api: + result.append( + f"\t_method_bindings.indexed_setter = internal::gde_interface->variant_get_ptr_indexed_setter({enum_type_name});" + ) + result.append( + f"\t_method_bindings.indexed_getter = internal::gde_interface->variant_get_ptr_indexed_getter({enum_type_name});" + ) + + if "is_keyed" in builtin_api and builtin_api["is_keyed"]: + result.append( + f"\t_method_bindings.keyed_setter = internal::gde_interface->variant_get_ptr_keyed_setter({enum_type_name});" + ) + result.append( + f"\t_method_bindings.keyed_getter = internal::gde_interface->variant_get_ptr_keyed_getter({enum_type_name});" + ) + result.append( + f"\t_method_bindings.keyed_checker = internal::gde_interface->variant_get_ptr_keyed_checker({enum_type_name});" + ) + + if "operators" in builtin_api: + for operator in builtin_api["operators"]: + if "right_type" in operator: + if operator["right_type"] == "Variant": + right_type_variant_type = "GDEXTENSION_VARIANT_TYPE_NIL" + else: + right_type_variant_type = ( + f"GDEXTENSION_VARIANT_TYPE_{camel_to_snake(operator['right_type']).upper()}" + ) + result.append( + f'\t_method_bindings.operator_{get_operator_id_name(operator["name"])}_{operator["right_type"]} = internal::gde_interface->variant_get_ptr_operator_evaluator(GDEXTENSION_VARIANT_OP_{get_operator_id_name(operator["name"]).upper()}, {enum_type_name}, {right_type_variant_type});' + ) + else: + result.append( + f'\t_method_bindings.operator_{get_operator_id_name(operator["name"])} = internal::gde_interface->variant_get_ptr_operator_evaluator(GDEXTENSION_VARIANT_OP_{get_operator_id_name(operator["name"]).upper()}, {enum_type_name}, GDEXTENSION_VARIANT_TYPE_NIL);' + ) + + result.append("}") + result.append("") + + copy_constructor_index = -1 + + if "constructors" in builtin_api: + for constructor in builtin_api["constructors"]: + method_signature = f"{class_name}::{class_name}(" + if "arguments" in constructor: + method_signature += make_function_parameters( + constructor["arguments"], include_default=False, for_builtin=True + ) + method_signature += ") {" + + result.append(method_signature) + + method_call = ( + f'\tinternal::_call_builtin_constructor(_method_bindings.constructor_{constructor["index"]}, &opaque' + ) + if "arguments" in constructor: + if len(constructor["arguments"]) == 1 and constructor["arguments"][0]["type"] == class_name: + copy_constructor_index = constructor["index"] + method_call += ", " + arguments = [] + for argument in constructor["arguments"]: + (encode, arg_name) = get_encoded_arg( + argument["name"], + argument["type"], + argument["meta"] if "meta" in argument else None, + ) + result += encode + arguments.append(arg_name) + method_call += ", ".join(arguments) + method_call += ");" + + result.append(method_call) + result.append("}") + result.append("") + + # Move constructor. + result.append(f"{class_name}::{class_name}({class_name} &&other) {{") + if needs_copy_instead_of_move(class_name) and copy_constructor_index >= 0: + result.append( + f"\tinternal::_call_builtin_constructor(_method_bindings.constructor_{copy_constructor_index}, &opaque, &other);" + ) + else: + result.append("\tstd::swap(opaque, other.opaque);") + result.append("}") + result.append("") + + if builtin_api["has_destructor"]: + result.append(f"{class_name}::~{class_name}() {{") + result.append("\t_method_bindings.destructor(&opaque);") + result.append("}") + result.append("") + + method_list = [] + + if "methods" in builtin_api: + for method in builtin_api["methods"]: + method_list.append(method["name"]) + + if "is_vararg" in method and method["is_vararg"]: + # Done in the header because of the template. + continue + + method_signature = make_signature(class_name, method, for_builtin=True) + result.append(method_signature + "{") + + method_call = "\t" + if "return_type" in method: + method_call += f'return internal::_call_builtin_method_ptr_ret<{correct_type(method["return_type"])}>(' + else: + method_call += "internal::_call_builtin_method_ptr_no_ret(" + method_call += f'_method_bindings.method_{method["name"]}, ' + if "is_static" in method and method["is_static"]: + method_call += "nullptr" + else: + method_call += "(GDExtensionTypePtr)&opaque" + + if "arguments" in method: + arguments = [] + method_call += ", " + for argument in method["arguments"]: + (encode, arg_name) = get_encoded_arg( + argument["name"], + argument["type"], + argument["meta"] if "meta" in argument else None, + ) + result += encode + arguments.append(arg_name) + method_call += ", ".join(arguments) + method_call += ");" + + result.append(method_call) + result.append("}") + result.append("") + + if "members" in builtin_api: + for member in builtin_api["members"]: + if f'get_{member["name"]}' not in method_list: + result.append(f'{correct_type(member["type"])} {class_name}::get_{member["name"]}() const {{') + result.append( + f'\treturn internal::_call_builtin_ptr_getter<{correct_type(member["type"])}>(_method_bindings.member_{member["name"]}_getter, (GDExtensionConstTypePtr)&opaque);' + ) + result.append("}") + + if f'set_{member["name"]}' not in method_list: + result.append(f'void {class_name}::set_{member["name"]}({type_for_parameter(member["type"])}value) {{') + (encode, arg_name) = get_encoded_arg("value", member["type"], None) + result += encode + result.append( + f'\t_method_bindings.member_{member["name"]}_setter((GDExtensionConstTypePtr)&opaque, (GDExtensionConstTypePtr){arg_name});' + ) + + result.append("}") + result.append("") + + if "operators" in builtin_api: + for operator in builtin_api["operators"]: + if operator["name"] not in ["in", "xor"]: + if "right_type" in operator: + result.append( + f'{correct_type(operator["return_type"])} {class_name}::operator{operator["name"]}({type_for_parameter(operator["right_type"])}other) const {{' + ) + (encode, arg_name) = get_encoded_arg("other", operator["right_type"], None) + result += encode + result.append( + f'\treturn internal::_call_builtin_operator_ptr<{get_gdextension_type(correct_type(operator["return_type"]))}>(_method_bindings.operator_{get_operator_id_name(operator["name"])}_{operator["right_type"]}, (GDExtensionConstTypePtr)&opaque, (GDExtensionConstTypePtr){arg_name});' + ) + result.append("}") + else: + result.append( + f'{correct_type(operator["return_type"])} {class_name}::operator{operator["name"].replace("unary", "")}() const {{' + ) + result.append( + f'\treturn internal::_call_builtin_operator_ptr<{get_gdextension_type(correct_type(operator["return_type"]))}>(_method_bindings.operator_{get_operator_id_name(operator["name"])}, (GDExtensionConstTypePtr)&opaque, (GDExtensionConstTypePtr)nullptr);' + ) + result.append("}") + result.append("") + + # Copy assignment. + if copy_constructor_index >= 0: + result.append(f"{class_name} &{class_name}::operator=(const {class_name} &other) {{") + if builtin_api["has_destructor"]: + result.append("\t_method_bindings.destructor(&opaque);") + (encode, arg_name) = get_encoded_arg( + "other", + class_name, + None, + ) + result += encode + result.append( + f"\tinternal::_call_builtin_constructor(_method_bindings.constructor_{copy_constructor_index}, &opaque, {arg_name});" + ) + result.append("\treturn *this;") + result.append("}") + result.append("") + + # Move assignment. + result.append(f"{class_name} &{class_name}::operator=({class_name} &&other) {{") + if needs_copy_instead_of_move(class_name) and copy_constructor_index >= 0: + result.append( + f"\tinternal::_call_builtin_constructor(_method_bindings.constructor_{copy_constructor_index}, &opaque, &other);" + ) + else: + result.append("\tstd::swap(opaque, other.opaque);") + result.append("\treturn *this;") + result.append("}") + + result.append("") + result.append("} //namespace godot") + + return "\n".join(result) + + +def generate_engine_classes_bindings(api, output_dir, use_template_get_node): + global engine_classes + global singletons + global native_structures + + include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "classes" + source_gen_folder = Path(output_dir) / "src" / "classes" + + include_gen_folder.mkdir(parents=True, exist_ok=True) + source_gen_folder.mkdir(parents=True, exist_ok=True) + + # First create map of classes and singletons. + for class_api in api["classes"]: + # TODO: Properly setup this singleton since it conflicts with ClassDB in the bindings. + if class_api["name"] == "ClassDB": + continue + engine_classes[class_api["name"]] = class_api["is_refcounted"] + for native_struct in api["native_structures"]: + engine_classes[native_struct["name"]] = False + native_structures.append(native_struct["name"]) + + for singleton in api["singletons"]: + singletons.append(singleton["name"]) + + for class_api in api["classes"]: + # TODO: Properly setup this singleton since it conflicts with ClassDB in the bindings. + if class_api["name"] == "ClassDB": + continue + # Check used classes for header include. + used_classes = set() + fully_used_classes = set() + + class_name = class_api["name"] + + header_filename = include_gen_folder / (camel_to_snake(class_api["name"]) + ".hpp") + source_filename = source_gen_folder / (camel_to_snake(class_api["name"]) + ".cpp") + + if "methods" in class_api: + for method in class_api["methods"]: + if "arguments" in method: + for argument in method["arguments"]: + type_name = argument["type"] + if type_name.startswith("const "): + type_name = type_name[6:] + if type_name.endswith("*"): + type_name = type_name[:-1] + if is_included(type_name, class_name): + if type_name.startswith("typedarray::"): + fully_used_classes.add("TypedArray") + array_type_name = type_name.replace("typedarray::", "") + if array_type_name.startswith("const "): + array_type_name = array_type_name[6:] + if array_type_name.endswith("*"): + array_type_name = array_type_name[:-1] + if is_included(array_type_name, class_name): + if is_enum(array_type_name): + fully_used_classes.add(get_enum_class(array_type_name)) + elif "default_value" in argument: + fully_used_classes.add(array_type_name) + else: + used_classes.add(array_type_name) + elif is_enum(type_name): + fully_used_classes.add(get_enum_class(type_name)) + elif "default_value" in argument: + fully_used_classes.add(type_name) + else: + used_classes.add(type_name) + if is_refcounted(type_name): + fully_used_classes.add("Ref") + if "return_value" in method: + type_name = method["return_value"]["type"] + if type_name.startswith("const "): + type_name = type_name[6:] + if type_name.endswith("*"): + type_name = type_name[:-1] + if is_included(type_name, class_name): + if type_name.startswith("typedarray::"): + fully_used_classes.add("TypedArray") + array_type_name = type_name.replace("typedarray::", "") + if array_type_name.startswith("const "): + array_type_name = array_type_name[6:] + if array_type_name.endswith("*"): + array_type_name = array_type_name[:-1] + if is_included(array_type_name, class_name): + if is_enum(array_type_name): + fully_used_classes.add(get_enum_class(array_type_name)) + elif is_variant(array_type_name): + fully_used_classes.add(array_type_name) + else: + used_classes.add(array_type_name) + elif is_enum(type_name): + fully_used_classes.add(get_enum_class(type_name)) + elif is_variant(type_name): + fully_used_classes.add(type_name) + else: + used_classes.add(type_name) + if is_refcounted(type_name): + fully_used_classes.add("Ref") + + if "members" in class_api: + for member in class_api["members"]: + if is_included(member["type"], class_name): + if is_enum(member["type"]): + fully_used_classes.add(get_enum_class(member["type"])) + else: + used_classes.add(member["type"]) + if is_refcounted(member["type"]): + fully_used_classes.add("Ref") + + if "inherits" in class_api: + if is_included(class_api["inherits"], class_name): + fully_used_classes.add(class_api["inherits"]) + if is_refcounted(class_api["name"]): + fully_used_classes.add("Ref") + else: + fully_used_classes.add("Wrapped") + + for type_name in fully_used_classes: + if type_name in used_classes: + used_classes.remove(type_name) + + used_classes = list(used_classes) + used_classes.sort() + fully_used_classes = list(fully_used_classes) + fully_used_classes.sort() + + with header_filename.open("w+") as header_file: + header_file.write( + generate_engine_class_header(class_api, used_classes, fully_used_classes, use_template_get_node) + ) + + with source_filename.open("w+") as source_file: + source_file.write( + generate_engine_class_source(class_api, used_classes, fully_used_classes, use_template_get_node) + ) + + for native_struct in api["native_structures"]: + struct_name = native_struct["name"] + snake_struct_name = camel_to_snake(struct_name) + + header_filename = include_gen_folder / (snake_struct_name + ".hpp") + + result = [] + add_header(f"{snake_struct_name}.hpp", result) + + header_guard = f"GODOT_CPP_{snake_struct_name.upper()}_HPP" + result.append(f"#ifndef {header_guard}") + result.append(f"#define {header_guard}") + + used_classes = [] + expanded_format = native_struct["format"].replace("(", " ").replace(")", ";").replace(",", ";") + for field in expanded_format.split(";"): + field_type = field.strip().split(" ")[0].split("::")[0] + if field_type != "" and not is_included_type(field_type) and not is_pod_type(field_type): + if not field_type in used_classes: + used_classes.append(field_type) + + result.append("") + + for included in used_classes: + result.append(f"#include ") + + if len(used_classes) > 0: + result.append("") + + result.append("namespace godot {") + result.append("") + + result.append(f"struct {struct_name} {{") + for field in native_struct["format"].split(";"): + if field != "": + result.append(f"\t{field};") + result.append("};") + + result.append("") + result.append(f"GDVIRTUAL_NATIVE_PTR({struct_name});") + result.append("") + result.append("} // namespace godot") + result.append("") + result.append(f"#endif // ! {header_guard}") + + with header_filename.open("w+") as header_file: + header_file.write("\n".join(result)) + + +def generate_engine_class_header(class_api, used_classes, fully_used_classes, use_template_get_node): + global singletons + result = [] + + class_name = class_api["name"] + snake_class_name = camel_to_snake(class_name).upper() + is_singleton = class_name in singletons + + add_header(f"{snake_class_name.lower()}.hpp", result) + + header_guard = f"GODOT_CPP_{snake_class_name}_HPP" + + result.append(f"#ifndef {header_guard}") + result.append(f"#define {header_guard}") + + result.append("") + + for included in fully_used_classes: + if included == "TypedArray": + result.append("#include ") + else: + result.append(f"#include ") + + if len(fully_used_classes) > 0: + result.append("") + + if class_name != "Object": + result.append("#include ") + result.append("") + result.append("#include ") + result.append("") + + result.append("namespace godot {") + result.append("") + + for type_name in used_classes: + if is_struct_type(type_name): + result.append(f"struct {type_name};") + else: + result.append(f"class {type_name};") + + if len(used_classes) > 0: + result.append("") + + inherits = class_api["inherits"] if "inherits" in class_api else "Wrapped" + result.append(f"class {class_name} : public {inherits} {{") + + result.append(f"\tGDEXTENSION_CLASS({class_name}, {inherits})") + result.append("") + + result.append("public:") + result.append("") + + if "enums" in class_api: + for enum_api in class_api["enums"]: + result.append(f'\tenum {enum_api["name"]} {{') + for value in enum_api["values"]: + result.append(f'\t\t{value["name"]} = {value["value"]},') + result.append("\t};") + result.append("") + + if "constants" in class_api: + for value in class_api["constants"]: + if "type" not in value: + value["type"] = "int" + result.append(f'\tstatic const {value["type"]} {value["name"]} = {value["value"]};') + result.append("") + + if is_singleton: + result.append(f"\tstatic {class_name} *get_singleton();") + result.append("") + + if "methods" in class_api: + for method in class_api["methods"]: + if method["is_virtual"]: + # Will be done later. + continue + + vararg = "is_vararg" in method and method["is_vararg"] + + method_signature = "\t" + if vararg: + method_signature += "private: " + method_signature += make_signature( + class_name, method, for_header=True, use_template_get_node=use_template_get_node + ) + result.append(method_signature + ";") + + if vararg: + # Add templated version. + result += make_varargs_template(method) + + # Virtuals now. + for method in class_api["methods"]: + if not method["is_virtual"]: + continue + + method_signature = "\t" + method_signature += make_signature( + class_name, method, for_header=True, use_template_get_node=use_template_get_node + ) + result.append(method_signature + ";") + + result.append("protected:") + # T is the custom class we want to register (from which the call initiates, going up the inheritance chain), + # B is its base class (can be a custom class too, that's why we pass it). + result.append("\ttemplate ") + result.append("\tstatic void register_virtuals() {") + if class_name != "Object": + result.append(f"\t\t{inherits}::register_virtuals();") + if "methods" in class_api: + for method in class_api["methods"]: + if not method["is_virtual"]: + continue + method_name = escape_identifier(method["name"]) + result.append( + # If the method is different from the base class, it means T overrides it, so it needs to be bound. + # Note that with an `if constexpr`, the code inside the `if` will not even be compiled if the + # condition returns false (in such cases it can't compile due to ambiguity). + f"\t\tif constexpr (!std::is_same_v) {{" + ) + result.append(f"\t\t\tBIND_VIRTUAL_METHOD(T, {method_name});") + result.append("\t\t}") + + result.append("\t}") + result.append("") + result.append("public:") + + # Special cases. + if class_name == "XMLParser": + result.append("\tError _open_buffer(const uint8_t *p_buffer, size_t p_size);") + + if class_name == "FileAccess": + result.append("\tuint64_t get_buffer(uint8_t *p_dst, uint64_t p_length) const;") + result.append("\tvoid store_buffer(const uint8_t *p_src, uint64_t p_length);") + + if class_name == "WorkerThreadPool": + result.append("\tenum {") + result.append("\tINVALID_TASK_ID = -1") + result.append("\t};") + result.append("\ttypedef int64_t TaskID;") + result.append("\ttypedef int64_t GroupID;") + result.append( + "\tTaskID add_native_task(void (*p_func)(void *), void *p_userdata, bool p_high_priority = false, const String &p_description = String());" + ) + result.append( + "\tGroupID add_native_group_task(void (*p_func)(void *, uint32_t), void *p_userdata, int p_elements, int p_tasks = -1, bool p_high_priority = false, const String &p_description = String());" + ) + + if class_name == "Object": + result.append("") + + result.append("\ttemplate") + result.append("\tstatic T *cast_to(Object *p_object);") + + result.append("\ttemplate") + result.append("\tstatic const T *cast_to(const Object *p_object);") + + result.append("\tvirtual ~Object() = default;") + + elif use_template_get_node and class_name == "Node": + result.append("\ttemplate") + result.append( + "\tT *get_node(const NodePath &p_path) const { return Object::cast_to(get_node_internal(p_path)); }" + ) + + result.append("") + result.append("};") + result.append("") + + result.append("} // namespace godot") + result.append("") + + if "enums" in class_api and class_name != "Object": + for enum_api in class_api["enums"]: + if enum_api["is_bitfield"]: + result.append(f'VARIANT_BITFIELD_CAST({class_name}::{enum_api["name"]});') + else: + result.append(f'VARIANT_ENUM_CAST({class_name}::{enum_api["name"]});') + result.append("") + + result.append(f"#endif // ! {header_guard}") + + return "\n".join(result) + + +def generate_engine_class_source(class_api, used_classes, fully_used_classes, use_template_get_node): + global singletons + result = [] + + class_name = class_api["name"] + snake_class_name = camel_to_snake(class_name) + is_singleton = class_name in singletons + + add_header(f"{snake_class_name}.cpp", result) + + result.append(f"#include ") + result.append("") + result.append("#include ") + result.append("#include ") + result.append("") + + for included in used_classes: + result.append(f"#include ") + + if len(used_classes) > 0: + result.append("") + + result.append("namespace godot {") + result.append("") + + if is_singleton: + result.append(f"{class_name} *{class_name}::get_singleton() {{") + result.append(f"\tconst StringName __class_name = {class_name}::get_class_static();") + result.append( + "\tstatic GDExtensionObjectPtr singleton_obj = internal::gde_interface->global_get_singleton(__class_name._native_ptr());" + ) + result.append("#ifdef DEBUG_ENABLED") + result.append("\tERR_FAIL_COND_V(singleton_obj == nullptr, nullptr);") + result.append("#endif // DEBUG_ENABLED") + result.append( + f"\tstatic {class_name} *singleton = reinterpret_cast<{class_name} *>(internal::gde_interface->object_get_instance_binding(singleton_obj, internal::token, &{class_name}::___binding_callbacks));" + ) + result.append("\treturn singleton;") + result.append("}") + result.append("") + + if "methods" in class_api: + for method in class_api["methods"]: + if method["is_virtual"]: + # Will be done later + continue + + vararg = "is_vararg" in method and method["is_vararg"] + + # Method signature. + method_signature = make_signature(class_name, method, use_template_get_node=use_template_get_node) + result.append(method_signature + " {") + + # Method body. + result.append(f"\tconst StringName __class_name = {class_name}::get_class_static();") + result.append(f'\tconst StringName __method_name = "{method["name"]}";') + result.append( + f'\tstatic GDExtensionMethodBindPtr ___method_bind = internal::gde_interface->classdb_get_method_bind(__class_name._native_ptr(), __method_name._native_ptr(), {method["hash"]});' + ) + method_call = "\t" + has_return = "return_value" in method and method["return_value"]["type"] != "void" + + if has_return: + result.append( + f'\tCHECK_METHOD_BIND_RET(___method_bind, {get_default_value_for_type(method["return_value"]["type"])});' + ) + else: + result.append("\tCHECK_METHOD_BIND(___method_bind);") + + is_ref = False + if not vararg: + if has_return: + return_type = method["return_value"]["type"] + meta_type = method["return_value"]["meta"] if "meta" in method["return_value"] else None + if is_enum(return_type): + if method["is_static"]: + method_call += f"return ({get_gdextension_type(correct_type(return_type, meta_type))})internal::_call_native_mb_ret(___method_bind, nullptr" + else: + method_call += f"return ({get_gdextension_type(correct_type(return_type, meta_type))})internal::_call_native_mb_ret(___method_bind, _owner" + elif is_pod_type(return_type) or is_variant(return_type): + if method["is_static"]: + method_call += f"return internal::_call_native_mb_ret<{get_gdextension_type(correct_type(return_type, meta_type))}>(___method_bind, nullptr" + else: + method_call += f"return internal::_call_native_mb_ret<{get_gdextension_type(correct_type(return_type, meta_type))}>(___method_bind, _owner" + elif is_refcounted(return_type): + if method["is_static"]: + method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr" + else: + method_call += f"return Ref<{return_type}>::___internal_constructor(internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner" + is_ref = True + else: + if method["is_static"]: + method_call += ( + f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, nullptr" + ) + else: + method_call += ( + f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner" + ) + else: + if method["is_static"]: + method_call += "internal::_call_native_mb_no_ret(___method_bind, nullptr" + else: + method_call += "internal::_call_native_mb_no_ret(___method_bind, _owner" + + if "arguments" in method: + method_call += ", " + arguments = [] + for argument in method["arguments"]: + (encode, arg_name) = get_encoded_arg( + argument["name"], + argument["type"], + argument["meta"] if "meta" in argument else None, + ) + result += encode + arguments.append(arg_name) + method_call += ", ".join(arguments) + else: # vararg. + result.append("\tGDExtensionCallError error;") + result.append("\tVariant ret;") + method_call += "internal::gde_interface->object_method_bind_call(___method_bind, _owner, reinterpret_cast(args), arg_count, &ret, &error" + + if is_ref: + method_call += ")" # Close Ref<> constructor. + method_call += ");" + result.append(method_call) + + if vararg and ("return_value" in method and method["return_value"]["type"] != "void"): + return_type = get_enum_fullname(method["return_value"]["type"]) + if return_type != "Variant": + result.append(f"\treturn VariantCaster<{return_type}>::cast(ret);") + else: + result.append("\treturn ret;") + + result.append("}") + result.append("") + + # Virtuals now. + for method in class_api["methods"]: + if not method["is_virtual"]: + continue + + method_signature = make_signature(class_name, method, use_template_get_node=use_template_get_node) + method_signature += " {" + if "return_value" in method and correct_type(method["return_value"]["type"]) != "void": + result.append(method_signature) + result.append(f'\treturn {get_default_value_for_type(method["return_value"]["type"])};') + result.append("}") + else: + method_signature += "}" + result.append(method_signature) + result.append("") + + result.append("") + result.append("} // namespace godot ") + + return "\n".join(result) + + +def generate_global_constants(api, output_dir): + include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "classes" + source_gen_folder = Path(output_dir) / "src" / "classes" + + include_gen_folder.mkdir(parents=True, exist_ok=True) + source_gen_folder.mkdir(parents=True, exist_ok=True) + + # Generate header + + header = [] + add_header("global_constants.hpp", header) + + header_filename = include_gen_folder / "global_constants.hpp" + + header_guard = "GODOT_CPP_GLOBAL_CONSTANTS_HPP" + header.append(f"#ifndef {header_guard}") + header.append(f"#define {header_guard}") + header.append("") + header.append("namespace godot {") + header.append("") + + for constant in api["global_constants"]: + header.append(f'\tconst int {escape_identifier(constant["name"])} = {constant["value"]};') + + header.append("") + + for enum_def in api["global_enums"]: + if enum_def["name"].startswith("Variant."): + continue + + header.append(f'\tenum {enum_def["name"]} {{') + for value in enum_def["values"]: + header.append(f'\t\t{value["name"]} = {value["value"]},') + header.append("\t};") + header.append("") + + header.append("} // namespace godot") + + header.append("") + header.append(f"#endif // ! {header_guard}") + + with header_filename.open("w+") as header_file: + header_file.write("\n".join(header)) + + +def generate_global_constant_binds(api, output_dir): + include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "classes" + source_gen_folder = Path(output_dir) / "src" / "classes" + + include_gen_folder.mkdir(parents=True, exist_ok=True) + source_gen_folder.mkdir(parents=True, exist_ok=True) + + # Generate header + + header = [] + add_header("global_constants_binds.hpp", header) + + header_filename = include_gen_folder / "global_constants_binds.hpp" + + header_guard = "GODOT_CPP_GLOBAL_CONSTANTS_BINDS_HPP" + header.append(f"#ifndef {header_guard}") + header.append(f"#define {header_guard}") + header.append("") + header.append("#include ") + header.append("") + + for enum_def in api["global_enums"]: + if enum_def["name"].startswith("Variant."): + continue + + if enum_def["is_bitfield"]: + header.append(f'VARIANT_BITFIELD_CAST(godot::{enum_def["name"]});') + else: + header.append(f'VARIANT_ENUM_CAST(godot::{enum_def["name"]});') + + # Variant::Type is not a global enum, but only one line, it is worth to place in this file instead of creating new file. + header.append(f"VARIANT_ENUM_CAST(godot::Variant::Type);") + + header.append("") + + header.append(f"#endif // ! {header_guard}") + + with header_filename.open("w+") as header_file: + header_file.write("\n".join(header)) + + +def generate_utility_functions(api, output_dir): + include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "variant" + source_gen_folder = Path(output_dir) / "src" / "variant" + + include_gen_folder.mkdir(parents=True, exist_ok=True) + source_gen_folder.mkdir(parents=True, exist_ok=True) + + # Generate header. + + header = [] + add_header("utility_functions.hpp", header) + + header_filename = include_gen_folder / "utility_functions.hpp" + + header_guard = "GODOT_CPP_UTILITY_FUNCTIONS_HPP" + header.append(f"#ifndef {header_guard}") + header.append(f"#define {header_guard}") + header.append("") + header.append("#include ") + header.append("#include ") + header.append("") + header.append("#include ") + header.append("") + header.append("namespace godot {") + header.append("") + header.append("class UtilityFunctions {") + header.append("public:") + + for function in api["utility_functions"]: + vararg = "is_vararg" in function and function["is_vararg"] + + function_signature = "\t" + function_signature += make_signature("UtilityFunctions", function, for_header=True, static=True) + header.append(function_signature + ";") + + if vararg: + # Add templated version. + header += make_varargs_template(function, static=True) + + header.append("};") + header.append("") + header.append("} // namespace godot") + header.append("") + header.append(f"#endif // ! {header_guard}") + + with header_filename.open("w+") as header_file: + header_file.write("\n".join(header)) + + # Generate source. + + source = [] + add_header("utility_functions.cpp", source) + source_filename = source_gen_folder / "utility_functions.cpp" + + source.append("#include ") + source.append("") + source.append("#include ") + source.append("#include ") + source.append("") + source.append("namespace godot {") + source.append("") + + for function in api["utility_functions"]: + vararg = "is_vararg" in function and function["is_vararg"] + + function_signature = make_signature("UtilityFunctions", function) + source.append(function_signature + " {") + + # Function body. + + source.append(f'\tconst StringName __function_name = "{function["name"]}";') + source.append( + f'\tstatic GDExtensionPtrUtilityFunction ___function = internal::gde_interface->variant_get_ptr_utility_function(__function_name._native_ptr(), {function["hash"]});' + ) + has_return = "return_type" in function and function["return_type"] != "void" + if has_return: + source.append( + f'\tCHECK_METHOD_BIND_RET(___function, {get_default_value_for_type(function["return_type"])});' + ) + else: + source.append("\tCHECK_METHOD_BIND(___function);") + + function_call = "\t" + if not vararg: + if has_return: + function_call += "return " + if function["return_type"] == "Object": + function_call += "internal::_call_utility_ret_obj(___function" + else: + function_call += f'internal::_call_utility_ret<{get_gdextension_type(correct_type(function["return_type"]))}>(___function' + else: + function_call += "internal::_call_utility_no_ret(___function" + + if "arguments" in function: + function_call += ", " + arguments = [] + for argument in function["arguments"]: + (encode, arg_name) = get_encoded_arg( + argument["name"], + argument["type"], + argument["meta"] if "meta" in argument else None, + ) + source += encode + arguments.append(arg_name) + function_call += ", ".join(arguments) + else: + source.append("\tVariant ret;") + function_call += "___function(&ret, reinterpret_cast(args), arg_count" + + function_call += ");" + source.append(function_call) + + if vararg and has_return: + source.append("\treturn ret;") + + source.append("}") + source.append("") + + source.append("} // namespace godot") + + with source_filename.open("w+") as source_file: + source_file.write("\n".join(source)) + + +# Helper functions. + + +def camel_to_snake(name): + name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name) + name = re.sub("([a-z0-9])([A-Z])", r"\1_\2", name) + return name.replace("2_D", "2D").replace("3_D", "3D").lower() + + +def make_function_parameters(parameters, include_default=False, for_builtin=False, is_vararg=False): + signature = [] + + for index, par in enumerate(parameters): + parameter = type_for_parameter(par["type"], par["meta"] if "meta" in par else None) + parameter_name = escape_identifier(par["name"]) + if len(parameter_name) == 0: + parameter_name = "arg_" + str(index + 1) + parameter += parameter_name + + if include_default and "default_value" in par and (not for_builtin or par["type"] != "Variant"): + parameter += " = " + if is_enum(par["type"]): + parameter_type = correct_type(par["type"]) + if parameter_type == "void": + parameter_type = "Variant" + parameter += f"({parameter_type})" + parameter += correct_default_value(par["default_value"], par["type"]) + signature.append(parameter) + + if is_vararg: + signature.append("const Args&... args") + + return ", ".join(signature) + + +def type_for_parameter(type_name, meta=None): + if type_name == "void": + return "Variant " + elif is_pod_type(type_name) and type_name != "Nil" or is_enum(type_name): + return f"{correct_type(type_name, meta)} " + elif is_variant(type_name) or is_refcounted(type_name): + return f"const {correct_type(type_name)} &" + else: + return f"{correct_type(type_name)}" + + +def get_include_path(type_name): + base_dir = "" + if type_name == "Object": + base_dir = "core" + elif is_variant(type_name): + base_dir = "variant" + else: + base_dir = "classes" + + return f"{base_dir}/{camel_to_snake(type_name)}.hpp" + + +def get_encoded_arg(arg_name, type_name, type_meta): + result = [] + + name = escape_identifier(arg_name) + arg_type = correct_type(type_name) + if is_pod_type(arg_type): + result.append(f"\t{get_gdextension_type(arg_type)} {name}_encoded;") + result.append(f"\tPtrToArg<{correct_type(type_name)}>::encode({name}, &{name}_encoded);") + name = f"&{name}_encoded" + elif is_engine_class(type_name): + # `{name}` is a C++ wrapper, it contains a field which is the object's pointer Godot expects. + # We have to check `nullptr` because when the caller sends `nullptr`, the wrapper itself will be null. + name = f"({name} != nullptr ? {name}->_owner : nullptr)" + else: + name = f"&{name}" + + return (result, name) + + +def make_signature( + class_name, function_data, for_header=False, use_template_get_node=True, for_builtin=False, static=False +): + function_signature = "" + + is_vararg = "is_vararg" in function_data and function_data["is_vararg"] + + if for_header: + if "is_virtual" in function_data and function_data["is_virtual"]: + function_signature += "virtual " + + if is_vararg: + function_signature += "private: " + + if static: + function_signature += "static " + + return_type = "void" + return_meta = None + if "return_type" in function_data: + return_type = correct_type(function_data["return_type"]) + elif "return_value" in function_data: + return_type = function_data["return_value"]["type"] + return_meta = function_data["return_value"]["meta"] if "meta" in function_data["return_value"] else None + + function_signature += correct_type( + return_type, + return_meta, + ) + + if not function_signature.endswith("*"): + function_signature += " " + + if not for_header: + function_signature += f"{class_name}::" + + function_signature += escape_identifier(function_data["name"]) + + if is_vararg or ( + not for_builtin and use_template_get_node and class_name == "Node" and function_data["name"] == "get_node" + ): + function_signature += "_internal" + + function_signature += "(" + + arguments = function_data["arguments"] if "arguments" in function_data else [] + + if not is_vararg: + function_signature += make_function_parameters(arguments, for_header, for_builtin, is_vararg) + else: + function_signature += "const Variant **args, GDExtensionInt arg_count" + + function_signature += ")" + + if "is_static" in function_data and function_data["is_static"] and for_header: + function_signature = "static " + function_signature + elif "is_const" in function_data and function_data["is_const"]: + function_signature += " const" + + return function_signature + + +def make_varargs_template(function_data, static=False): + result = [] + + function_signature = "\tpublic: template " + + if static: + function_signature += "static " + + return_type = "void" + return_meta = None + if "return_type" in function_data: + return_type = correct_type(function_data["return_type"]) + elif "return_value" in function_data: + return_type = function_data["return_value"]["type"] + return_meta = function_data["return_value"]["meta"] if "meta" in function_data["return_value"] else None + + function_signature += correct_type( + return_type, + return_meta, + ) + + if not function_signature.endswith("*"): + function_signature += " " + + function_signature += f'{escape_identifier(function_data["name"])}' + + method_arguments = [] + if "arguments" in function_data: + method_arguments = function_data["arguments"] + + function_signature += "(" + + is_vararg = "is_vararg" in function_data and function_data["is_vararg"] + + function_signature += make_function_parameters(method_arguments, include_default=True, is_vararg=is_vararg) + + function_signature += ")" + + if "is_const" in function_data and function_data["is_const"]: + function_signature += " const" + + function_signature += " {" + result.append(function_signature) + + args_array = f"\t\tstd::array variant_args {{ " + for argument in method_arguments: + if argument["type"] == "Variant": + args_array += argument["name"] + else: + args_array += f'Variant({argument["name"]})' + args_array += ", " + + args_array += "Variant(args)... };" + result.append(args_array) + result.append(f"\t\tstd::array call_args;") + result.append("\t\tfor(size_t i = 0; i < variant_args.size(); i++) {") + result.append("\t\t\tcall_args[i] = &variant_args[i];") + result.append("\t\t}") + + call_line = "\t\t" + + if return_type != "void": + call_line += "return " + + call_line += f'{escape_identifier(function_data["name"])}_internal(call_args.data(), variant_args.size());' + result.append(call_line) + result.append("\t}") + + return result + + +# Engine idiosyncrasies. + + +def is_pod_type(type_name): + """ + Those are types for which no class should be generated. + """ + return type_name in [ + "Nil", + "void", + "bool", + "real_t", + "float", + "double", + "int", + "int8_t", + "uint8_t", + "int16_t", + "uint16_t", + "int32_t", + "int64_t", + "uint32_t", + "uint64_t", + ] + + +def is_included_type(type_name): + # Types which we already have implemented. + return is_included_struct_type(type_name) or type_name in ["ObjectID"] + + +def is_included_struct_type(type_name): + # Struct types which we already have implemented. + return type_name in [ + "AABB", + "Basis", + "Color", + "Plane", + "Projection", + "Quaternion", + "Rect2", + "Rect2i", + "Transform2D", + "Transform3D", + "Vector2", + "Vector2i", + "Vector3", + "Vector3i", + "Vector4", + "Vector4i", + ] + + +def is_packed_array(type_name): + """ + Those are types for which we add our extra packed array functions. + """ + return type_name in [ + "PackedByteArray", + "PackedColorArray", + "PackedFloat32Array", + "PackedFloat64Array", + "PackedInt32Array", + "PackedInt64Array", + "PackedStringArray", + "PackedVector2Array", + "PackedVector3Array", + ] + + +def needs_copy_instead_of_move(type_name): + """ + Those are types which need initialised data or we'll get warning spam so need a copy instead of move. + """ + return type_name in [ + "Dictionary", + ] + + +def is_enum(type_name): + return type_name.startswith("enum::") or type_name.startswith("bitfield::") + + +def is_bitfield(type_name): + return type_name.startswith("bitfield::") + + +def get_enum_class(enum_name: str): + if "." in enum_name: + if is_bitfield(enum_name): + return enum_name.replace("bitfield::", "").split(".")[0] + else: + return enum_name.replace("enum::", "").split(".")[0] + else: + return "GlobalConstants" + + +def get_enum_fullname(enum_name: str): + if is_bitfield(enum_name): + return enum_name.replace("bitfield::", "BitField<") + ">" + else: + return enum_name.replace("enum::", "") + + +def get_enum_name(enum_name: str): + if is_bitfield(enum_name): + return enum_name.replace("bitfield::", "").split(".")[-1] + else: + return enum_name.replace("enum::", "").split(".")[-1] + + +def is_variant(type_name): + return ( + type_name == "Variant" + or type_name in builtin_classes + or type_name == "Nil" + or type_name.startswith("typedarray::") + ) + + +def is_engine_class(type_name): + global engine_classes + return type_name == "Object" or type_name in engine_classes + + +def is_struct_type(type_name): + # This is used to determine which keyword to use for forward declarations. + global native_structures + return is_included_struct_type(type_name) or type_name in native_structures + + +def is_refcounted(type_name): + return type_name in engine_classes and engine_classes[type_name] + + +def is_included(type_name, current_type): + """ + Check if a builtin type should be included. + This removes Variant and POD types from inclusion, and the current type. + """ + if type_name.startswith("typedarray::"): + return True + to_include = get_enum_class(type_name) if is_enum(type_name) else type_name + if to_include == current_type or is_pod_type(to_include): + return False + if to_include == "GlobalConstants" or to_include == "UtilityFunctions": + return True + return is_engine_class(to_include) or is_variant(to_include) + + +def correct_default_value(value, type_name): + value_map = { + "null": "nullptr", + '""': "String()", + '&""': "StringName()", + "[]": "Array()", + "{}": "Dictionary()", + "Transform2D(1, 0, 0, 1, 0, 0)": "Transform2D()", # Default transform. + "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)": "Transform3D()", # Default transform. + } + if value in value_map: + return value_map[value] + if value == "": + return f"{type_name}()" + if value.startswith("Array["): + return f"{{}}" + return value + + +def correct_typed_array(type_name): + if type_name.startswith("typedarray::"): + return type_name.replace("typedarray::", "TypedArray<") + ">" + return type_name + + +def correct_type(type_name, meta=None): + type_conversion = {"float": "double", "int": "int64_t", "Nil": "Variant"} + if meta != None: + if "int" in meta: + return f"{meta}_t" + elif meta in type_conversion: + return type_conversion[type_name] + else: + return meta + if type_name in type_conversion: + return type_conversion[type_name] + if type_name.startswith("typedarray::"): + return type_name.replace("typedarray::", "TypedArray<") + ">" + if is_enum(type_name): + if is_bitfield(type_name): + base_class = get_enum_class(type_name) + if base_class == "GlobalConstants": + return f"BitField<{get_enum_name(type_name)}>" + return f"BitField<{base_class}::{get_enum_name(type_name)}>" + else: + base_class = get_enum_class(type_name) + if base_class == "GlobalConstants": + return f"{get_enum_name(type_name)}" + return f"{base_class}::{get_enum_name(type_name)}" + if is_refcounted(type_name): + return f"Ref<{type_name}>" + if type_name == "Object" or is_engine_class(type_name): + return f"{type_name} *" + if type_name.endswith("*"): + return f"{type_name[:-1]} *" + return type_name + + +def get_gdextension_type(type_name): + type_conversion_map = { + "bool": "int8_t", + "uint8_t": "int64_t", + "int8_t": "int64_t", + "uint16_t": "int64_t", + "int16_t": "int64_t", + "uint32_t": "int64_t", + "int32_t": "int64_t", + "int": "int64_t", + "float": "double", + } + + if type_name.startswith("BitField<"): + return "int64_t" + + if type_name in type_conversion_map: + return type_conversion_map[type_name] + return type_name + + +def escape_identifier(id): + cpp_keywords_map = { + "class": "_class", + "char": "_char", + "short": "_short", + "bool": "_bool", + "int": "_int", + "default": "_default", + "case": "_case", + "switch": "_switch", + "export": "_export", + "template": "_template", + "new": "new_", + "operator": "_operator", + "typeof": "type_of", + "typename": "type_name", + } + if id in cpp_keywords_map: + return cpp_keywords_map[id] + return id + + +def get_operator_id_name(op): + op_id_map = { + "==": "equal", + "!=": "not_equal", + "<": "less", + "<=": "less_equal", + ">": "greater", + ">=": "greater_equal", + "+": "add", + "-": "subtract", + "*": "multiply", + "/": "divide", + "unary-": "negate", + "unary+": "positive", + "%": "module", + "<<": "shift_left", + ">>": "shift_right", + "&": "bit_and", + "|": "bit_or", + "^": "bit_xor", + "~": "bit_negate", + "and": "and", + "or": "or", + "xor": "xor", + "not": "not", + "and": "and", + "in": "in", + } + return op_id_map[op] + + +def get_default_value_for_type(type_name): + if type_name == "int": + return "0" + if type_name == "float": + return "0.0" + if type_name == "bool": + return "false" + if type_name.startswith("typedarray::"): + return f"{correct_type(type_name)}()" + if is_enum(type_name): + return f"{correct_type(type_name)}(0)" + if is_variant(type_name): + return f"{type_name}()" + if is_refcounted(type_name): + return f"Ref<{type_name}>()" + return "nullptr" + + +header = """\ +/**************************************************************************/ +/* $filename */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ +""" + + +def add_header(filename, lines): + desired_length = len(header.split("\n")[0]) + pad_spaces = desired_length - 6 - len(filename) + + for num, line in enumerate(header.split("\n")): + if num == 1: + new_line = f"/* {filename}{' ' * pad_spaces}*/" + lines.append(new_line) + else: + lines.append(line) + + lines.append("// THIS FILE IS GENERATED. EDITS WILL BE LOST.") + lines.append("") diff --git a/lib/godot-cpp/cmake/GodotCompilerWarnings.cmake b/lib/godot-cpp/cmake/GodotCompilerWarnings.cmake new file mode 100644 index 0000000..423e636 --- /dev/null +++ b/lib/godot-cpp/cmake/GodotCompilerWarnings.cmake @@ -0,0 +1,94 @@ +# Add warnings based on compiler & version +# Set some helper variables for readability +set( compiler_less_than_v8 "$,8>" ) +set( compiler_greater_than_or_equal_v9 "$,9>" ) +set( compiler_greater_than_or_equal_v11 "$,11>" ) +set( compiler_less_than_v11 "$,11>" ) +set( compiler_greater_than_or_equal_v12 "$,12>" ) + +# These compiler options reflect what is in godot/SConstruct. +target_compile_options( ${PROJECT_NAME} PRIVATE + # MSVC only + $<${compiler_is_msvc}: + /W4 + + # Disable warnings which we don't plan to fix. + /wd4100 # C4100 (unreferenced formal parameter): Doesn't play nice with polymorphism. + /wd4127 # C4127 (conditional expression is constant) + /wd4201 # C4201 (non-standard nameless struct/union): Only relevant for C89. + /wd4244 # C4244 C4245 C4267 (narrowing conversions): Unavoidable at this scale. + /wd4245 + /wd4267 + /wd4305 # C4305 (truncation): double to float or real_t, too hard to avoid. + /wd4514 # C4514 (unreferenced inline function has been removed) + /wd4714 # C4714 (function marked as __forceinline not inlined) + /wd4820 # C4820 (padding added after construct) + > + + # Clang and GNU common options + $<$: + -Wall + -Wctor-dtor-privacy + -Wextra + -Wno-unused-parameter + -Wnon-virtual-dtor + -Wwrite-strings + > + + # Clang only + $<${compiler_is_clang}: + -Wimplicit-fallthrough + -Wno-ordered-compare-function-pointers + > + + # GNU only + $<${compiler_is_gnu}: + -Walloc-zero + -Wduplicated-branches + -Wduplicated-cond + -Wno-misleading-indentation + -Wplacement-new=1 + -Wshadow-local + -Wstringop-overflow=4 + > + $<$: + # Bogus warning fixed in 8+. + -Wno-strict-overflow + > + $<$: + -Wattribute-alias=2 + > + $<$: + # Broke on MethodBind templates before GCC 11. + -Wlogical-op + > + $<$: + # Regression in GCC 9/10, spams so much in our variadic templates that we need to outright disable it. + -Wno-type-limits + > + $<$: + # False positives in our error macros, see GH-58747. + -Wno-return-type + > +) + +# Treat warnings as errors +function( set_warning_as_error ) + message( STATUS "[${PROJECT_NAME}] Treating warnings as errors") + if ( CMAKE_VERSION VERSION_GREATER_EQUAL "3.24" ) + set_target_properties( ${PROJECT_NAME} + PROPERTIES + COMPILE_WARNING_AS_ERROR ON + ) + else() + target_compile_options( ${PROJECT_NAME} + PRIVATE + $<${compiler_is_msvc}:/WX> + $<$:-Werror> + ) + endif() +endfunction() + +if ( GODOT_CPP_WARNING_AS_ERROR ) + set_warning_as_error() +endif() diff --git a/lib/godot-cpp/gdextension/README.md b/lib/godot-cpp/gdextension/README.md new file mode 100644 index 0000000..1e11f9a --- /dev/null +++ b/lib/godot-cpp/gdextension/README.md @@ -0,0 +1,20 @@ +# GDExtension header and API + +This repository contains the C header and API JSON for +[**Godot Engine**](https://github.com/godotengine/godot)'s *GDExtensions* API. + +## Updating header and API + +If the current branch is not up-to-date for your needs, or if you want to sync +the header and API JSON with your own modified version of Godot, here is the +update procedure used to sync this repository with upstream releases: + +- Compile [Godot Engine](https://github.com/godotengine/godot) at the specific + version/commit which you are using. + * Or if you use an official release, download that version of the Godot editor. +- Use the compiled or downloaded executable to generate the `extension_api.json` + and `gdextension_interface.h` files with: + +``` +godot --dump-extension-api --dump-gdextension-interface +``` diff --git a/lib/godot-cpp/gdextension/extension_api.json b/lib/godot-cpp/gdextension/extension_api.json new file mode 100644 index 0000000..eae10aa --- /dev/null +++ b/lib/godot-cpp/gdextension/extension_api.json @@ -0,0 +1,267358 @@ +{ + "header": { + "version_major": 4, + "version_minor": 0, + "version_patch": 0, + "version_status": "stable", + "version_build": "official", + "version_full_name": "Godot Engine v4.0.stable.official" + }, + "builtin_class_sizes": [ + { + "build_configuration": "float_32", + "sizes": [ + { + "name": "Nil", + "size": 0 + }, + { + "name": "bool", + "size": 1 + }, + { + "name": "int", + "size": 8 + }, + { + "name": "float", + "size": 8 + }, + { + "name": "String", + "size": 4 + }, + { + "name": "Vector2", + "size": 8 + }, + { + "name": "Vector2i", + "size": 8 + }, + { + "name": "Rect2", + "size": 16 + }, + { + "name": "Rect2i", + "size": 16 + }, + { + "name": "Vector3", + "size": 12 + }, + { + "name": "Vector3i", + "size": 12 + }, + { + "name": "Transform2D", + "size": 24 + }, + { + "name": "Vector4", + "size": 16 + }, + { + "name": "Vector4i", + "size": 16 + }, + { + "name": "Plane", + "size": 16 + }, + { + "name": "Quaternion", + "size": 16 + }, + { + "name": "AABB", + "size": 24 + }, + { + "name": "Basis", + "size": 36 + }, + { + "name": "Transform3D", + "size": 48 + }, + { + "name": "Projection", + "size": 64 + }, + { + "name": "Color", + "size": 16 + }, + { + "name": "StringName", + "size": 4 + }, + { + "name": "NodePath", + "size": 4 + }, + { + "name": "RID", + "size": 8 + }, + { + "name": "Object", + "size": 4 + }, + { + "name": "Callable", + "size": 16 + }, + { + "name": "Signal", + "size": 16 + }, + { + "name": "Dictionary", + "size": 4 + }, + { + "name": "Array", + "size": 4 + }, + { + "name": "PackedByteArray", + "size": 8 + }, + { + "name": "PackedInt32Array", + "size": 8 + }, + { + "name": "PackedInt64Array", + "size": 8 + }, + { + "name": "PackedFloat32Array", + "size": 8 + }, + { + "name": "PackedFloat64Array", + "size": 8 + }, + { + "name": "PackedStringArray", + "size": 8 + }, + { + "name": "PackedVector2Array", + "size": 8 + }, + { + "name": "PackedVector3Array", + "size": 8 + }, + { + "name": "PackedColorArray", + "size": 8 + }, + { + "name": "Variant", + "size": 24 + } + ] + }, + { + "build_configuration": "float_64", + "sizes": [ + { + "name": "Nil", + "size": 0 + }, + { + "name": "bool", + "size": 1 + }, + { + "name": "int", + "size": 8 + }, + { + "name": "float", + "size": 8 + }, + { + "name": "String", + "size": 8 + }, + { + "name": "Vector2", + "size": 8 + }, + { + "name": "Vector2i", + "size": 8 + }, + { + "name": "Rect2", + "size": 16 + }, + { + "name": "Rect2i", + "size": 16 + }, + { + "name": "Vector3", + "size": 12 + }, + { + "name": "Vector3i", + "size": 12 + }, + { + "name": "Transform2D", + "size": 24 + }, + { + "name": "Vector4", + "size": 16 + }, + { + "name": "Vector4i", + "size": 16 + }, + { + "name": "Plane", + "size": 16 + }, + { + "name": "Quaternion", + "size": 16 + }, + { + "name": "AABB", + "size": 24 + }, + { + "name": "Basis", + "size": 36 + }, + { + "name": "Transform3D", + "size": 48 + }, + { + "name": "Projection", + "size": 64 + }, + { + "name": "Color", + "size": 16 + }, + { + "name": "StringName", + "size": 8 + }, + { + "name": "NodePath", + "size": 8 + }, + { + "name": "RID", + "size": 8 + }, + { + "name": "Object", + "size": 8 + }, + { + "name": "Callable", + "size": 16 + }, + { + "name": "Signal", + "size": 16 + }, + { + "name": "Dictionary", + "size": 8 + }, + { + "name": "Array", + "size": 8 + }, + { + "name": "PackedByteArray", + "size": 16 + }, + { + "name": "PackedInt32Array", + "size": 16 + }, + { + "name": "PackedInt64Array", + "size": 16 + }, + { + "name": "PackedFloat32Array", + "size": 16 + }, + { + "name": "PackedFloat64Array", + "size": 16 + }, + { + "name": "PackedStringArray", + "size": 16 + }, + { + "name": "PackedVector2Array", + "size": 16 + }, + { + "name": "PackedVector3Array", + "size": 16 + }, + { + "name": "PackedColorArray", + "size": 16 + }, + { + "name": "Variant", + "size": 24 + } + ] + }, + { + "build_configuration": "double_32", + "sizes": [ + { + "name": "Nil", + "size": 0 + }, + { + "name": "bool", + "size": 1 + }, + { + "name": "int", + "size": 8 + }, + { + "name": "float", + "size": 8 + }, + { + "name": "String", + "size": 4 + }, + { + "name": "Vector2", + "size": 16 + }, + { + "name": "Vector2i", + "size": 8 + }, + { + "name": "Rect2", + "size": 32 + }, + { + "name": "Rect2i", + "size": 16 + }, + { + "name": "Vector3", + "size": 24 + }, + { + "name": "Vector3i", + "size": 12 + }, + { + "name": "Transform2D", + "size": 48 + }, + { + "name": "Vector4", + "size": 32 + }, + { + "name": "Vector4i", + "size": 16 + }, + { + "name": "Plane", + "size": 32 + }, + { + "name": "Quaternion", + "size": 32 + }, + { + "name": "AABB", + "size": 48 + }, + { + "name": "Basis", + "size": 72 + }, + { + "name": "Transform3D", + "size": 96 + }, + { + "name": "Projection", + "size": 128 + }, + { + "name": "Color", + "size": 16 + }, + { + "name": "StringName", + "size": 4 + }, + { + "name": "NodePath", + "size": 4 + }, + { + "name": "RID", + "size": 8 + }, + { + "name": "Object", + "size": 4 + }, + { + "name": "Callable", + "size": 16 + }, + { + "name": "Signal", + "size": 16 + }, + { + "name": "Dictionary", + "size": 4 + }, + { + "name": "Array", + "size": 4 + }, + { + "name": "PackedByteArray", + "size": 8 + }, + { + "name": "PackedInt32Array", + "size": 8 + }, + { + "name": "PackedInt64Array", + "size": 8 + }, + { + "name": "PackedFloat32Array", + "size": 8 + }, + { + "name": "PackedFloat64Array", + "size": 8 + }, + { + "name": "PackedStringArray", + "size": 8 + }, + { + "name": "PackedVector2Array", + "size": 8 + }, + { + "name": "PackedVector3Array", + "size": 8 + }, + { + "name": "PackedColorArray", + "size": 8 + }, + { + "name": "Variant", + "size": 40 + } + ] + }, + { + "build_configuration": "double_64", + "sizes": [ + { + "name": "Nil", + "size": 0 + }, + { + "name": "bool", + "size": 1 + }, + { + "name": "int", + "size": 8 + }, + { + "name": "float", + "size": 8 + }, + { + "name": "String", + "size": 8 + }, + { + "name": "Vector2", + "size": 16 + }, + { + "name": "Vector2i", + "size": 8 + }, + { + "name": "Rect2", + "size": 32 + }, + { + "name": "Rect2i", + "size": 16 + }, + { + "name": "Vector3", + "size": 24 + }, + { + "name": "Vector3i", + "size": 12 + }, + { + "name": "Transform2D", + "size": 48 + }, + { + "name": "Vector4", + "size": 32 + }, + { + "name": "Vector4i", + "size": 16 + }, + { + "name": "Plane", + "size": 32 + }, + { + "name": "Quaternion", + "size": 32 + }, + { + "name": "AABB", + "size": 48 + }, + { + "name": "Basis", + "size": 72 + }, + { + "name": "Transform3D", + "size": 96 + }, + { + "name": "Projection", + "size": 128 + }, + { + "name": "Color", + "size": 16 + }, + { + "name": "StringName", + "size": 8 + }, + { + "name": "NodePath", + "size": 8 + }, + { + "name": "RID", + "size": 8 + }, + { + "name": "Object", + "size": 8 + }, + { + "name": "Callable", + "size": 16 + }, + { + "name": "Signal", + "size": 16 + }, + { + "name": "Dictionary", + "size": 8 + }, + { + "name": "Array", + "size": 8 + }, + { + "name": "PackedByteArray", + "size": 16 + }, + { + "name": "PackedInt32Array", + "size": 16 + }, + { + "name": "PackedInt64Array", + "size": 16 + }, + { + "name": "PackedFloat32Array", + "size": 16 + }, + { + "name": "PackedFloat64Array", + "size": 16 + }, + { + "name": "PackedStringArray", + "size": 16 + }, + { + "name": "PackedVector2Array", + "size": 16 + }, + { + "name": "PackedVector3Array", + "size": 16 + }, + { + "name": "PackedColorArray", + "size": 16 + }, + { + "name": "Variant", + "size": 40 + } + ] + } + ], + "builtin_class_member_offsets": [ + { + "build_configuration": "float_32", + "classes": [ + { + "name": "Vector2", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + } + ] + }, + { + "name": "Vector2i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + } + ] + }, + { + "name": "Rect2", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2" + } + ] + }, + { + "name": "Rect2i", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2i" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2i" + } + ] + }, + { + "name": "Vector3", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + } + ] + }, + { + "name": "Vector3i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + } + ] + }, + { + "name": "Transform2D", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "y", + "offset": 8, + "meta": "Vector2" + }, + { + "member": "origin", + "offset": 16, + "meta": "Vector2" + } + ] + }, + { + "name": "Vector4", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + }, + { + "member": "w", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "Vector4i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + }, + { + "member": "w", + "offset": 12, + "meta": "int32" + } + ] + }, + { + "name": "Plane", + "members": [ + { + "member": "normal", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "d", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "Quaternion", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + }, + { + "member": "w", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "AABB", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "size", + "offset": 12, + "meta": "Vector3" + } + ] + }, + { + "name": "Basis", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "y", + "offset": 12, + "meta": "Vector3" + }, + { + "member": "z", + "offset": 24, + "meta": "Vector3" + } + ] + }, + { + "name": "Transform3D", + "members": [ + { + "member": "basis", + "offset": 0, + "meta": "Basis" + }, + { + "member": "origin", + "offset": 36, + "meta": "Vector3" + } + ] + }, + { + "name": "Projection", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector4" + }, + { + "member": "y", + "offset": 16, + "meta": "Vector4" + }, + { + "member": "z", + "offset": 32, + "meta": "Vector4" + }, + { + "member": "w", + "offset": 48, + "meta": "Vector4" + } + ] + }, + { + "name": "Color", + "members": [ + { + "member": "r", + "offset": 0, + "meta": "float" + }, + { + "member": "g", + "offset": 4, + "meta": "float" + }, + { + "member": "b", + "offset": 8, + "meta": "float" + }, + { + "member": "a", + "offset": 12, + "meta": "float" + } + ] + } + ] + }, + { + "build_configuration": "float_64", + "classes": [ + { + "name": "Vector2", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + } + ] + }, + { + "name": "Vector2i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + } + ] + }, + { + "name": "Rect2", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2" + } + ] + }, + { + "name": "Rect2i", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2i" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2i" + } + ] + }, + { + "name": "Vector3", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + } + ] + }, + { + "name": "Vector3i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + } + ] + }, + { + "name": "Transform2D", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "y", + "offset": 8, + "meta": "Vector2" + }, + { + "member": "origin", + "offset": 16, + "meta": "Vector2" + } + ] + }, + { + "name": "Vector4", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + }, + { + "member": "w", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "Vector4i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + }, + { + "member": "w", + "offset": 12, + "meta": "int32" + } + ] + }, + { + "name": "Plane", + "members": [ + { + "member": "normal", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "d", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "Quaternion", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "float" + }, + { + "member": "y", + "offset": 4, + "meta": "float" + }, + { + "member": "z", + "offset": 8, + "meta": "float" + }, + { + "member": "w", + "offset": 12, + "meta": "float" + } + ] + }, + { + "name": "AABB", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "size", + "offset": 12, + "meta": "Vector3" + } + ] + }, + { + "name": "Basis", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "y", + "offset": 12, + "meta": "Vector3" + }, + { + "member": "z", + "offset": 24, + "meta": "Vector3" + } + ] + }, + { + "name": "Transform3D", + "members": [ + { + "member": "basis", + "offset": 0, + "meta": "Basis" + }, + { + "member": "origin", + "offset": 36, + "meta": "Vector3" + } + ] + }, + { + "name": "Projection", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector4" + }, + { + "member": "y", + "offset": 16, + "meta": "Vector4" + }, + { + "member": "z", + "offset": 32, + "meta": "Vector4" + }, + { + "member": "w", + "offset": 48, + "meta": "Vector4" + } + ] + }, + { + "name": "Color", + "members": [ + { + "member": "r", + "offset": 0, + "meta": "float" + }, + { + "member": "g", + "offset": 4, + "meta": "float" + }, + { + "member": "b", + "offset": 8, + "meta": "float" + }, + { + "member": "a", + "offset": 12, + "meta": "float" + } + ] + } + ] + }, + { + "build_configuration": "double_32", + "classes": [ + { + "name": "Vector2", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + } + ] + }, + { + "name": "Vector2i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + } + ] + }, + { + "name": "Rect2", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "size", + "offset": 16, + "meta": "Vector2" + } + ] + }, + { + "name": "Rect2i", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2i" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2i" + } + ] + }, + { + "name": "Vector3", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + } + ] + }, + { + "name": "Vector3i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + } + ] + }, + { + "name": "Transform2D", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "y", + "offset": 16, + "meta": "Vector2" + }, + { + "member": "origin", + "offset": 32, + "meta": "Vector2" + } + ] + }, + { + "name": "Vector4", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + }, + { + "member": "w", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "Vector4i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + }, + { + "member": "w", + "offset": 12, + "meta": "int32" + } + ] + }, + { + "name": "Plane", + "members": [ + { + "member": "normal", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "d", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "Quaternion", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + }, + { + "member": "w", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "AABB", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "size", + "offset": 24, + "meta": "Vector3" + } + ] + }, + { + "name": "Basis", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "y", + "offset": 24, + "meta": "Vector3" + }, + { + "member": "z", + "offset": 48, + "meta": "Vector3" + } + ] + }, + { + "name": "Transform3D", + "members": [ + { + "member": "basis", + "offset": 0, + "meta": "Basis" + }, + { + "member": "origin", + "offset": 72, + "meta": "Vector3" + } + ] + }, + { + "name": "Projection", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector4" + }, + { + "member": "y", + "offset": 32, + "meta": "Vector4" + }, + { + "member": "z", + "offset": 64, + "meta": "Vector4" + }, + { + "member": "w", + "offset": 96, + "meta": "Vector4" + } + ] + }, + { + "name": "Color", + "members": [ + { + "member": "r", + "offset": 0, + "meta": "float" + }, + { + "member": "g", + "offset": 4, + "meta": "float" + }, + { + "member": "b", + "offset": 8, + "meta": "float" + }, + { + "member": "a", + "offset": 12, + "meta": "float" + } + ] + } + ] + }, + { + "build_configuration": "double_64", + "classes": [ + { + "name": "Vector2", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + } + ] + }, + { + "name": "Vector2i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + } + ] + }, + { + "name": "Rect2", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "size", + "offset": 16, + "meta": "Vector2" + } + ] + }, + { + "name": "Rect2i", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector2i" + }, + { + "member": "size", + "offset": 8, + "meta": "Vector2i" + } + ] + }, + { + "name": "Vector3", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + } + ] + }, + { + "name": "Vector3i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + } + ] + }, + { + "name": "Transform2D", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector2" + }, + { + "member": "y", + "offset": 16, + "meta": "Vector2" + }, + { + "member": "origin", + "offset": 32, + "meta": "Vector2" + } + ] + }, + { + "name": "Vector4", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + }, + { + "member": "w", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "Vector4i", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "int32" + }, + { + "member": "y", + "offset": 4, + "meta": "int32" + }, + { + "member": "z", + "offset": 8, + "meta": "int32" + }, + { + "member": "w", + "offset": 12, + "meta": "int32" + } + ] + }, + { + "name": "Plane", + "members": [ + { + "member": "normal", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "d", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "Quaternion", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "double" + }, + { + "member": "y", + "offset": 8, + "meta": "double" + }, + { + "member": "z", + "offset": 16, + "meta": "double" + }, + { + "member": "w", + "offset": 24, + "meta": "double" + } + ] + }, + { + "name": "AABB", + "members": [ + { + "member": "position", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "size", + "offset": 24, + "meta": "Vector3" + } + ] + }, + { + "name": "Basis", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector3" + }, + { + "member": "y", + "offset": 24, + "meta": "Vector3" + }, + { + "member": "z", + "offset": 48, + "meta": "Vector3" + } + ] + }, + { + "name": "Transform3D", + "members": [ + { + "member": "basis", + "offset": 0, + "meta": "Basis" + }, + { + "member": "origin", + "offset": 72, + "meta": "Vector3" + } + ] + }, + { + "name": "Projection", + "members": [ + { + "member": "x", + "offset": 0, + "meta": "Vector4" + }, + { + "member": "y", + "offset": 32, + "meta": "Vector4" + }, + { + "member": "z", + "offset": 64, + "meta": "Vector4" + }, + { + "member": "w", + "offset": 96, + "meta": "Vector4" + } + ] + }, + { + "name": "Color", + "members": [ + { + "member": "r", + "offset": 0, + "meta": "float" + }, + { + "member": "g", + "offset": 4, + "meta": "float" + }, + { + "member": "b", + "offset": 8, + "meta": "float" + }, + { + "member": "a", + "offset": 12, + "meta": "float" + } + ] + } + ] + } + ], + "global_constants": [ + + ], + "global_enums": [ + { + "name": "Side", + "is_bitfield": false, + "values": [ + { + "name": "SIDE_LEFT", + "value": 0 + }, + { + "name": "SIDE_TOP", + "value": 1 + }, + { + "name": "SIDE_RIGHT", + "value": 2 + }, + { + "name": "SIDE_BOTTOM", + "value": 3 + } + ] + }, + { + "name": "Corner", + "is_bitfield": false, + "values": [ + { + "name": "CORNER_TOP_LEFT", + "value": 0 + }, + { + "name": "CORNER_TOP_RIGHT", + "value": 1 + }, + { + "name": "CORNER_BOTTOM_RIGHT", + "value": 2 + }, + { + "name": "CORNER_BOTTOM_LEFT", + "value": 3 + } + ] + }, + { + "name": "Orientation", + "is_bitfield": false, + "values": [ + { + "name": "VERTICAL", + "value": 1 + }, + { + "name": "HORIZONTAL", + "value": 0 + } + ] + }, + { + "name": "ClockDirection", + "is_bitfield": false, + "values": [ + { + "name": "CLOCKWISE", + "value": 0 + }, + { + "name": "COUNTERCLOCKWISE", + "value": 1 + } + ] + }, + { + "name": "HorizontalAlignment", + "is_bitfield": false, + "values": [ + { + "name": "HORIZONTAL_ALIGNMENT_LEFT", + "value": 0 + }, + { + "name": "HORIZONTAL_ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "HORIZONTAL_ALIGNMENT_RIGHT", + "value": 2 + }, + { + "name": "HORIZONTAL_ALIGNMENT_FILL", + "value": 3 + } + ] + }, + { + "name": "VerticalAlignment", + "is_bitfield": false, + "values": [ + { + "name": "VERTICAL_ALIGNMENT_TOP", + "value": 0 + }, + { + "name": "VERTICAL_ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "VERTICAL_ALIGNMENT_BOTTOM", + "value": 2 + }, + { + "name": "VERTICAL_ALIGNMENT_FILL", + "value": 3 + } + ] + }, + { + "name": "InlineAlignment", + "is_bitfield": false, + "values": [ + { + "name": "INLINE_ALIGNMENT_TOP_TO", + "value": 0 + }, + { + "name": "INLINE_ALIGNMENT_CENTER_TO", + "value": 1 + }, + { + "name": "INLINE_ALIGNMENT_BASELINE_TO", + "value": 3 + }, + { + "name": "INLINE_ALIGNMENT_BOTTOM_TO", + "value": 2 + }, + { + "name": "INLINE_ALIGNMENT_TO_TOP", + "value": 0 + }, + { + "name": "INLINE_ALIGNMENT_TO_CENTER", + "value": 4 + }, + { + "name": "INLINE_ALIGNMENT_TO_BASELINE", + "value": 8 + }, + { + "name": "INLINE_ALIGNMENT_TO_BOTTOM", + "value": 12 + }, + { + "name": "INLINE_ALIGNMENT_TOP", + "value": 0 + }, + { + "name": "INLINE_ALIGNMENT_CENTER", + "value": 5 + }, + { + "name": "INLINE_ALIGNMENT_BOTTOM", + "value": 14 + }, + { + "name": "INLINE_ALIGNMENT_IMAGE_MASK", + "value": 3 + }, + { + "name": "INLINE_ALIGNMENT_TEXT_MASK", + "value": 12 + } + ] + }, + { + "name": "EulerOrder", + "is_bitfield": false, + "values": [ + { + "name": "EULER_ORDER_XYZ", + "value": 0 + }, + { + "name": "EULER_ORDER_XZY", + "value": 1 + }, + { + "name": "EULER_ORDER_YXZ", + "value": 2 + }, + { + "name": "EULER_ORDER_YZX", + "value": 3 + }, + { + "name": "EULER_ORDER_ZXY", + "value": 4 + }, + { + "name": "EULER_ORDER_ZYX", + "value": 5 + } + ] + }, + { + "name": "Key", + "is_bitfield": false, + "values": [ + { + "name": "KEY_NONE", + "value": 0 + }, + { + "name": "KEY_SPECIAL", + "value": 4194304 + }, + { + "name": "KEY_ESCAPE", + "value": 4194305 + }, + { + "name": "KEY_TAB", + "value": 4194306 + }, + { + "name": "KEY_BACKTAB", + "value": 4194307 + }, + { + "name": "KEY_BACKSPACE", + "value": 4194308 + }, + { + "name": "KEY_ENTER", + "value": 4194309 + }, + { + "name": "KEY_KP_ENTER", + "value": 4194310 + }, + { + "name": "KEY_INSERT", + "value": 4194311 + }, + { + "name": "KEY_DELETE", + "value": 4194312 + }, + { + "name": "KEY_PAUSE", + "value": 4194313 + }, + { + "name": "KEY_PRINT", + "value": 4194314 + }, + { + "name": "KEY_SYSREQ", + "value": 4194315 + }, + { + "name": "KEY_CLEAR", + "value": 4194316 + }, + { + "name": "KEY_HOME", + "value": 4194317 + }, + { + "name": "KEY_END", + "value": 4194318 + }, + { + "name": "KEY_LEFT", + "value": 4194319 + }, + { + "name": "KEY_UP", + "value": 4194320 + }, + { + "name": "KEY_RIGHT", + "value": 4194321 + }, + { + "name": "KEY_DOWN", + "value": 4194322 + }, + { + "name": "KEY_PAGEUP", + "value": 4194323 + }, + { + "name": "KEY_PAGEDOWN", + "value": 4194324 + }, + { + "name": "KEY_SHIFT", + "value": 4194325 + }, + { + "name": "KEY_CTRL", + "value": 4194326 + }, + { + "name": "KEY_META", + "value": 4194327 + }, + { + "name": "KEY_ALT", + "value": 4194328 + }, + { + "name": "KEY_CAPSLOCK", + "value": 4194329 + }, + { + "name": "KEY_NUMLOCK", + "value": 4194330 + }, + { + "name": "KEY_SCROLLLOCK", + "value": 4194331 + }, + { + "name": "KEY_F1", + "value": 4194332 + }, + { + "name": "KEY_F2", + "value": 4194333 + }, + { + "name": "KEY_F3", + "value": 4194334 + }, + { + "name": "KEY_F4", + "value": 4194335 + }, + { + "name": "KEY_F5", + "value": 4194336 + }, + { + "name": "KEY_F6", + "value": 4194337 + }, + { + "name": "KEY_F7", + "value": 4194338 + }, + { + "name": "KEY_F8", + "value": 4194339 + }, + { + "name": "KEY_F9", + "value": 4194340 + }, + { + "name": "KEY_F10", + "value": 4194341 + }, + { + "name": "KEY_F11", + "value": 4194342 + }, + { + "name": "KEY_F12", + "value": 4194343 + }, + { + "name": "KEY_F13", + "value": 4194344 + }, + { + "name": "KEY_F14", + "value": 4194345 + }, + { + "name": "KEY_F15", + "value": 4194346 + }, + { + "name": "KEY_F16", + "value": 4194347 + }, + { + "name": "KEY_F17", + "value": 4194348 + }, + { + "name": "KEY_F18", + "value": 4194349 + }, + { + "name": "KEY_F19", + "value": 4194350 + }, + { + "name": "KEY_F20", + "value": 4194351 + }, + { + "name": "KEY_F21", + "value": 4194352 + }, + { + "name": "KEY_F22", + "value": 4194353 + }, + { + "name": "KEY_F23", + "value": 4194354 + }, + { + "name": "KEY_F24", + "value": 4194355 + }, + { + "name": "KEY_F25", + "value": 4194356 + }, + { + "name": "KEY_F26", + "value": 4194357 + }, + { + "name": "KEY_F27", + "value": 4194358 + }, + { + "name": "KEY_F28", + "value": 4194359 + }, + { + "name": "KEY_F29", + "value": 4194360 + }, + { + "name": "KEY_F30", + "value": 4194361 + }, + { + "name": "KEY_F31", + "value": 4194362 + }, + { + "name": "KEY_F32", + "value": 4194363 + }, + { + "name": "KEY_F33", + "value": 4194364 + }, + { + "name": "KEY_F34", + "value": 4194365 + }, + { + "name": "KEY_F35", + "value": 4194366 + }, + { + "name": "KEY_KP_MULTIPLY", + "value": 4194433 + }, + { + "name": "KEY_KP_DIVIDE", + "value": 4194434 + }, + { + "name": "KEY_KP_SUBTRACT", + "value": 4194435 + }, + { + "name": "KEY_KP_PERIOD", + "value": 4194436 + }, + { + "name": "KEY_KP_ADD", + "value": 4194437 + }, + { + "name": "KEY_KP_0", + "value": 4194438 + }, + { + "name": "KEY_KP_1", + "value": 4194439 + }, + { + "name": "KEY_KP_2", + "value": 4194440 + }, + { + "name": "KEY_KP_3", + "value": 4194441 + }, + { + "name": "KEY_KP_4", + "value": 4194442 + }, + { + "name": "KEY_KP_5", + "value": 4194443 + }, + { + "name": "KEY_KP_6", + "value": 4194444 + }, + { + "name": "KEY_KP_7", + "value": 4194445 + }, + { + "name": "KEY_KP_8", + "value": 4194446 + }, + { + "name": "KEY_KP_9", + "value": 4194447 + }, + { + "name": "KEY_MENU", + "value": 4194370 + }, + { + "name": "KEY_HYPER", + "value": 4194371 + }, + { + "name": "KEY_HELP", + "value": 4194373 + }, + { + "name": "KEY_BACK", + "value": 4194376 + }, + { + "name": "KEY_FORWARD", + "value": 4194377 + }, + { + "name": "KEY_STOP", + "value": 4194378 + }, + { + "name": "KEY_REFRESH", + "value": 4194379 + }, + { + "name": "KEY_VOLUMEDOWN", + "value": 4194380 + }, + { + "name": "KEY_VOLUMEMUTE", + "value": 4194381 + }, + { + "name": "KEY_VOLUMEUP", + "value": 4194382 + }, + { + "name": "KEY_MEDIAPLAY", + "value": 4194388 + }, + { + "name": "KEY_MEDIASTOP", + "value": 4194389 + }, + { + "name": "KEY_MEDIAPREVIOUS", + "value": 4194390 + }, + { + "name": "KEY_MEDIANEXT", + "value": 4194391 + }, + { + "name": "KEY_MEDIARECORD", + "value": 4194392 + }, + { + "name": "KEY_HOMEPAGE", + "value": 4194393 + }, + { + "name": "KEY_FAVORITES", + "value": 4194394 + }, + { + "name": "KEY_SEARCH", + "value": 4194395 + }, + { + "name": "KEY_STANDBY", + "value": 4194396 + }, + { + "name": "KEY_OPENURL", + "value": 4194397 + }, + { + "name": "KEY_LAUNCHMAIL", + "value": 4194398 + }, + { + "name": "KEY_LAUNCHMEDIA", + "value": 4194399 + }, + { + "name": "KEY_LAUNCH0", + "value": 4194400 + }, + { + "name": "KEY_LAUNCH1", + "value": 4194401 + }, + { + "name": "KEY_LAUNCH2", + "value": 4194402 + }, + { + "name": "KEY_LAUNCH3", + "value": 4194403 + }, + { + "name": "KEY_LAUNCH4", + "value": 4194404 + }, + { + "name": "KEY_LAUNCH5", + "value": 4194405 + }, + { + "name": "KEY_LAUNCH6", + "value": 4194406 + }, + { + "name": "KEY_LAUNCH7", + "value": 4194407 + }, + { + "name": "KEY_LAUNCH8", + "value": 4194408 + }, + { + "name": "KEY_LAUNCH9", + "value": 4194409 + }, + { + "name": "KEY_LAUNCHA", + "value": 4194410 + }, + { + "name": "KEY_LAUNCHB", + "value": 4194411 + }, + { + "name": "KEY_LAUNCHC", + "value": 4194412 + }, + { + "name": "KEY_LAUNCHD", + "value": 4194413 + }, + { + "name": "KEY_LAUNCHE", + "value": 4194414 + }, + { + "name": "KEY_LAUNCHF", + "value": 4194415 + }, + { + "name": "KEY_UNKNOWN", + "value": 8388607 + }, + { + "name": "KEY_SPACE", + "value": 32 + }, + { + "name": "KEY_EXCLAM", + "value": 33 + }, + { + "name": "KEY_QUOTEDBL", + "value": 34 + }, + { + "name": "KEY_NUMBERSIGN", + "value": 35 + }, + { + "name": "KEY_DOLLAR", + "value": 36 + }, + { + "name": "KEY_PERCENT", + "value": 37 + }, + { + "name": "KEY_AMPERSAND", + "value": 38 + }, + { + "name": "KEY_APOSTROPHE", + "value": 39 + }, + { + "name": "KEY_PARENLEFT", + "value": 40 + }, + { + "name": "KEY_PARENRIGHT", + "value": 41 + }, + { + "name": "KEY_ASTERISK", + "value": 42 + }, + { + "name": "KEY_PLUS", + "value": 43 + }, + { + "name": "KEY_COMMA", + "value": 44 + }, + { + "name": "KEY_MINUS", + "value": 45 + }, + { + "name": "KEY_PERIOD", + "value": 46 + }, + { + "name": "KEY_SLASH", + "value": 47 + }, + { + "name": "KEY_0", + "value": 48 + }, + { + "name": "KEY_1", + "value": 49 + }, + { + "name": "KEY_2", + "value": 50 + }, + { + "name": "KEY_3", + "value": 51 + }, + { + "name": "KEY_4", + "value": 52 + }, + { + "name": "KEY_5", + "value": 53 + }, + { + "name": "KEY_6", + "value": 54 + }, + { + "name": "KEY_7", + "value": 55 + }, + { + "name": "KEY_8", + "value": 56 + }, + { + "name": "KEY_9", + "value": 57 + }, + { + "name": "KEY_COLON", + "value": 58 + }, + { + "name": "KEY_SEMICOLON", + "value": 59 + }, + { + "name": "KEY_LESS", + "value": 60 + }, + { + "name": "KEY_EQUAL", + "value": 61 + }, + { + "name": "KEY_GREATER", + "value": 62 + }, + { + "name": "KEY_QUESTION", + "value": 63 + }, + { + "name": "KEY_AT", + "value": 64 + }, + { + "name": "KEY_A", + "value": 65 + }, + { + "name": "KEY_B", + "value": 66 + }, + { + "name": "KEY_C", + "value": 67 + }, + { + "name": "KEY_D", + "value": 68 + }, + { + "name": "KEY_E", + "value": 69 + }, + { + "name": "KEY_F", + "value": 70 + }, + { + "name": "KEY_G", + "value": 71 + }, + { + "name": "KEY_H", + "value": 72 + }, + { + "name": "KEY_I", + "value": 73 + }, + { + "name": "KEY_J", + "value": 74 + }, + { + "name": "KEY_K", + "value": 75 + }, + { + "name": "KEY_L", + "value": 76 + }, + { + "name": "KEY_M", + "value": 77 + }, + { + "name": "KEY_N", + "value": 78 + }, + { + "name": "KEY_O", + "value": 79 + }, + { + "name": "KEY_P", + "value": 80 + }, + { + "name": "KEY_Q", + "value": 81 + }, + { + "name": "KEY_R", + "value": 82 + }, + { + "name": "KEY_S", + "value": 83 + }, + { + "name": "KEY_T", + "value": 84 + }, + { + "name": "KEY_U", + "value": 85 + }, + { + "name": "KEY_V", + "value": 86 + }, + { + "name": "KEY_W", + "value": 87 + }, + { + "name": "KEY_X", + "value": 88 + }, + { + "name": "KEY_Y", + "value": 89 + }, + { + "name": "KEY_Z", + "value": 90 + }, + { + "name": "KEY_BRACKETLEFT", + "value": 91 + }, + { + "name": "KEY_BACKSLASH", + "value": 92 + }, + { + "name": "KEY_BRACKETRIGHT", + "value": 93 + }, + { + "name": "KEY_ASCIICIRCUM", + "value": 94 + }, + { + "name": "KEY_UNDERSCORE", + "value": 95 + }, + { + "name": "KEY_QUOTELEFT", + "value": 96 + }, + { + "name": "KEY_BRACELEFT", + "value": 123 + }, + { + "name": "KEY_BAR", + "value": 124 + }, + { + "name": "KEY_BRACERIGHT", + "value": 125 + }, + { + "name": "KEY_ASCIITILDE", + "value": 126 + }, + { + "name": "KEY_YEN", + "value": 165 + }, + { + "name": "KEY_SECTION", + "value": 167 + }, + { + "name": "KEY_GLOBE", + "value": 4194416 + }, + { + "name": "KEY_KEYBOARD", + "value": 4194417 + }, + { + "name": "KEY_JIS_EISU", + "value": 4194418 + }, + { + "name": "KEY_JIS_KANA", + "value": 4194419 + } + ] + }, + { + "name": "KeyModifierMask", + "is_bitfield": true, + "values": [ + { + "name": "KEY_CODE_MASK", + "value": 8388607 + }, + { + "name": "KEY_MODIFIER_MASK", + "value": 532676608 + }, + { + "name": "KEY_MASK_CMD_OR_CTRL", + "value": 16777216 + }, + { + "name": "KEY_MASK_SHIFT", + "value": 33554432 + }, + { + "name": "KEY_MASK_ALT", + "value": 67108864 + }, + { + "name": "KEY_MASK_META", + "value": 134217728 + }, + { + "name": "KEY_MASK_CTRL", + "value": 268435456 + }, + { + "name": "KEY_MASK_KPAD", + "value": 536870912 + }, + { + "name": "KEY_MASK_GROUP_SWITCH", + "value": 1073741824 + } + ] + }, + { + "name": "MouseButton", + "is_bitfield": false, + "values": [ + { + "name": "MOUSE_BUTTON_NONE", + "value": 0 + }, + { + "name": "MOUSE_BUTTON_LEFT", + "value": 1 + }, + { + "name": "MOUSE_BUTTON_RIGHT", + "value": 2 + }, + { + "name": "MOUSE_BUTTON_MIDDLE", + "value": 3 + }, + { + "name": "MOUSE_BUTTON_WHEEL_UP", + "value": 4 + }, + { + "name": "MOUSE_BUTTON_WHEEL_DOWN", + "value": 5 + }, + { + "name": "MOUSE_BUTTON_WHEEL_LEFT", + "value": 6 + }, + { + "name": "MOUSE_BUTTON_WHEEL_RIGHT", + "value": 7 + }, + { + "name": "MOUSE_BUTTON_XBUTTON1", + "value": 8 + }, + { + "name": "MOUSE_BUTTON_XBUTTON2", + "value": 9 + } + ] + }, + { + "name": "MouseButtonMask", + "is_bitfield": true, + "values": [ + { + "name": "MOUSE_BUTTON_MASK_LEFT", + "value": 1 + }, + { + "name": "MOUSE_BUTTON_MASK_RIGHT", + "value": 2 + }, + { + "name": "MOUSE_BUTTON_MASK_MIDDLE", + "value": 4 + }, + { + "name": "MOUSE_BUTTON_MASK_MB_XBUTTON1", + "value": 128 + }, + { + "name": "MOUSE_BUTTON_MASK_MB_XBUTTON2", + "value": 256 + } + ] + }, + { + "name": "JoyButton", + "is_bitfield": false, + "values": [ + { + "name": "JOY_BUTTON_INVALID", + "value": -1 + }, + { + "name": "JOY_BUTTON_A", + "value": 0 + }, + { + "name": "JOY_BUTTON_B", + "value": 1 + }, + { + "name": "JOY_BUTTON_X", + "value": 2 + }, + { + "name": "JOY_BUTTON_Y", + "value": 3 + }, + { + "name": "JOY_BUTTON_BACK", + "value": 4 + }, + { + "name": "JOY_BUTTON_GUIDE", + "value": 5 + }, + { + "name": "JOY_BUTTON_START", + "value": 6 + }, + { + "name": "JOY_BUTTON_LEFT_STICK", + "value": 7 + }, + { + "name": "JOY_BUTTON_RIGHT_STICK", + "value": 8 + }, + { + "name": "JOY_BUTTON_LEFT_SHOULDER", + "value": 9 + }, + { + "name": "JOY_BUTTON_RIGHT_SHOULDER", + "value": 10 + }, + { + "name": "JOY_BUTTON_DPAD_UP", + "value": 11 + }, + { + "name": "JOY_BUTTON_DPAD_DOWN", + "value": 12 + }, + { + "name": "JOY_BUTTON_DPAD_LEFT", + "value": 13 + }, + { + "name": "JOY_BUTTON_DPAD_RIGHT", + "value": 14 + }, + { + "name": "JOY_BUTTON_MISC1", + "value": 15 + }, + { + "name": "JOY_BUTTON_PADDLE1", + "value": 16 + }, + { + "name": "JOY_BUTTON_PADDLE2", + "value": 17 + }, + { + "name": "JOY_BUTTON_PADDLE3", + "value": 18 + }, + { + "name": "JOY_BUTTON_PADDLE4", + "value": 19 + }, + { + "name": "JOY_BUTTON_TOUCHPAD", + "value": 20 + }, + { + "name": "JOY_BUTTON_SDL_MAX", + "value": 21 + }, + { + "name": "JOY_BUTTON_MAX", + "value": 128 + } + ] + }, + { + "name": "JoyAxis", + "is_bitfield": false, + "values": [ + { + "name": "JOY_AXIS_INVALID", + "value": -1 + }, + { + "name": "JOY_AXIS_LEFT_X", + "value": 0 + }, + { + "name": "JOY_AXIS_LEFT_Y", + "value": 1 + }, + { + "name": "JOY_AXIS_RIGHT_X", + "value": 2 + }, + { + "name": "JOY_AXIS_RIGHT_Y", + "value": 3 + }, + { + "name": "JOY_AXIS_TRIGGER_LEFT", + "value": 4 + }, + { + "name": "JOY_AXIS_TRIGGER_RIGHT", + "value": 5 + }, + { + "name": "JOY_AXIS_SDL_MAX", + "value": 6 + }, + { + "name": "JOY_AXIS_MAX", + "value": 10 + } + ] + }, + { + "name": "MIDIMessage", + "is_bitfield": false, + "values": [ + { + "name": "MIDI_MESSAGE_NONE", + "value": 0 + }, + { + "name": "MIDI_MESSAGE_NOTE_OFF", + "value": 8 + }, + { + "name": "MIDI_MESSAGE_NOTE_ON", + "value": 9 + }, + { + "name": "MIDI_MESSAGE_AFTERTOUCH", + "value": 10 + }, + { + "name": "MIDI_MESSAGE_CONTROL_CHANGE", + "value": 11 + }, + { + "name": "MIDI_MESSAGE_PROGRAM_CHANGE", + "value": 12 + }, + { + "name": "MIDI_MESSAGE_CHANNEL_PRESSURE", + "value": 13 + }, + { + "name": "MIDI_MESSAGE_PITCH_BEND", + "value": 14 + }, + { + "name": "MIDI_MESSAGE_SYSTEM_EXCLUSIVE", + "value": 240 + }, + { + "name": "MIDI_MESSAGE_QUARTER_FRAME", + "value": 241 + }, + { + "name": "MIDI_MESSAGE_SONG_POSITION_POINTER", + "value": 242 + }, + { + "name": "MIDI_MESSAGE_SONG_SELECT", + "value": 243 + }, + { + "name": "MIDI_MESSAGE_TUNE_REQUEST", + "value": 246 + }, + { + "name": "MIDI_MESSAGE_TIMING_CLOCK", + "value": 248 + }, + { + "name": "MIDI_MESSAGE_START", + "value": 250 + }, + { + "name": "MIDI_MESSAGE_CONTINUE", + "value": 251 + }, + { + "name": "MIDI_MESSAGE_STOP", + "value": 252 + }, + { + "name": "MIDI_MESSAGE_ACTIVE_SENSING", + "value": 254 + }, + { + "name": "MIDI_MESSAGE_SYSTEM_RESET", + "value": 255 + } + ] + }, + { + "name": "Error", + "is_bitfield": false, + "values": [ + { + "name": "OK", + "value": 0 + }, + { + "name": "FAILED", + "value": 1 + }, + { + "name": "ERR_UNAVAILABLE", + "value": 2 + }, + { + "name": "ERR_UNCONFIGURED", + "value": 3 + }, + { + "name": "ERR_UNAUTHORIZED", + "value": 4 + }, + { + "name": "ERR_PARAMETER_RANGE_ERROR", + "value": 5 + }, + { + "name": "ERR_OUT_OF_MEMORY", + "value": 6 + }, + { + "name": "ERR_FILE_NOT_FOUND", + "value": 7 + }, + { + "name": "ERR_FILE_BAD_DRIVE", + "value": 8 + }, + { + "name": "ERR_FILE_BAD_PATH", + "value": 9 + }, + { + "name": "ERR_FILE_NO_PERMISSION", + "value": 10 + }, + { + "name": "ERR_FILE_ALREADY_IN_USE", + "value": 11 + }, + { + "name": "ERR_FILE_CANT_OPEN", + "value": 12 + }, + { + "name": "ERR_FILE_CANT_WRITE", + "value": 13 + }, + { + "name": "ERR_FILE_CANT_READ", + "value": 14 + }, + { + "name": "ERR_FILE_UNRECOGNIZED", + "value": 15 + }, + { + "name": "ERR_FILE_CORRUPT", + "value": 16 + }, + { + "name": "ERR_FILE_MISSING_DEPENDENCIES", + "value": 17 + }, + { + "name": "ERR_FILE_EOF", + "value": 18 + }, + { + "name": "ERR_CANT_OPEN", + "value": 19 + }, + { + "name": "ERR_CANT_CREATE", + "value": 20 + }, + { + "name": "ERR_QUERY_FAILED", + "value": 21 + }, + { + "name": "ERR_ALREADY_IN_USE", + "value": 22 + }, + { + "name": "ERR_LOCKED", + "value": 23 + }, + { + "name": "ERR_TIMEOUT", + "value": 24 + }, + { + "name": "ERR_CANT_CONNECT", + "value": 25 + }, + { + "name": "ERR_CANT_RESOLVE", + "value": 26 + }, + { + "name": "ERR_CONNECTION_ERROR", + "value": 27 + }, + { + "name": "ERR_CANT_ACQUIRE_RESOURCE", + "value": 28 + }, + { + "name": "ERR_CANT_FORK", + "value": 29 + }, + { + "name": "ERR_INVALID_DATA", + "value": 30 + }, + { + "name": "ERR_INVALID_PARAMETER", + "value": 31 + }, + { + "name": "ERR_ALREADY_EXISTS", + "value": 32 + }, + { + "name": "ERR_DOES_NOT_EXIST", + "value": 33 + }, + { + "name": "ERR_DATABASE_CANT_READ", + "value": 34 + }, + { + "name": "ERR_DATABASE_CANT_WRITE", + "value": 35 + }, + { + "name": "ERR_COMPILATION_FAILED", + "value": 36 + }, + { + "name": "ERR_METHOD_NOT_FOUND", + "value": 37 + }, + { + "name": "ERR_LINK_FAILED", + "value": 38 + }, + { + "name": "ERR_SCRIPT_FAILED", + "value": 39 + }, + { + "name": "ERR_CYCLIC_LINK", + "value": 40 + }, + { + "name": "ERR_INVALID_DECLARATION", + "value": 41 + }, + { + "name": "ERR_DUPLICATE_SYMBOL", + "value": 42 + }, + { + "name": "ERR_PARSE_ERROR", + "value": 43 + }, + { + "name": "ERR_BUSY", + "value": 44 + }, + { + "name": "ERR_SKIP", + "value": 45 + }, + { + "name": "ERR_HELP", + "value": 46 + }, + { + "name": "ERR_BUG", + "value": 47 + }, + { + "name": "ERR_PRINTER_ON_FIRE", + "value": 48 + } + ] + }, + { + "name": "PropertyHint", + "is_bitfield": false, + "values": [ + { + "name": "PROPERTY_HINT_NONE", + "value": 0 + }, + { + "name": "PROPERTY_HINT_RANGE", + "value": 1 + }, + { + "name": "PROPERTY_HINT_ENUM", + "value": 2 + }, + { + "name": "PROPERTY_HINT_ENUM_SUGGESTION", + "value": 3 + }, + { + "name": "PROPERTY_HINT_EXP_EASING", + "value": 4 + }, + { + "name": "PROPERTY_HINT_LINK", + "value": 5 + }, + { + "name": "PROPERTY_HINT_FLAGS", + "value": 6 + }, + { + "name": "PROPERTY_HINT_LAYERS_2D_RENDER", + "value": 7 + }, + { + "name": "PROPERTY_HINT_LAYERS_2D_PHYSICS", + "value": 8 + }, + { + "name": "PROPERTY_HINT_LAYERS_2D_NAVIGATION", + "value": 9 + }, + { + "name": "PROPERTY_HINT_LAYERS_3D_RENDER", + "value": 10 + }, + { + "name": "PROPERTY_HINT_LAYERS_3D_PHYSICS", + "value": 11 + }, + { + "name": "PROPERTY_HINT_LAYERS_3D_NAVIGATION", + "value": 12 + }, + { + "name": "PROPERTY_HINT_FILE", + "value": 13 + }, + { + "name": "PROPERTY_HINT_DIR", + "value": 14 + }, + { + "name": "PROPERTY_HINT_GLOBAL_FILE", + "value": 15 + }, + { + "name": "PROPERTY_HINT_GLOBAL_DIR", + "value": 16 + }, + { + "name": "PROPERTY_HINT_RESOURCE_TYPE", + "value": 17 + }, + { + "name": "PROPERTY_HINT_MULTILINE_TEXT", + "value": 18 + }, + { + "name": "PROPERTY_HINT_EXPRESSION", + "value": 19 + }, + { + "name": "PROPERTY_HINT_PLACEHOLDER_TEXT", + "value": 20 + }, + { + "name": "PROPERTY_HINT_COLOR_NO_ALPHA", + "value": 21 + }, + { + "name": "PROPERTY_HINT_OBJECT_ID", + "value": 22 + }, + { + "name": "PROPERTY_HINT_TYPE_STRING", + "value": 23 + }, + { + "name": "PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE", + "value": 24 + }, + { + "name": "PROPERTY_HINT_OBJECT_TOO_BIG", + "value": 25 + }, + { + "name": "PROPERTY_HINT_NODE_PATH_VALID_TYPES", + "value": 26 + }, + { + "name": "PROPERTY_HINT_SAVE_FILE", + "value": 27 + }, + { + "name": "PROPERTY_HINT_GLOBAL_SAVE_FILE", + "value": 28 + }, + { + "name": "PROPERTY_HINT_INT_IS_OBJECTID", + "value": 29 + }, + { + "name": "PROPERTY_HINT_INT_IS_POINTER", + "value": 30 + }, + { + "name": "PROPERTY_HINT_ARRAY_TYPE", + "value": 31 + }, + { + "name": "PROPERTY_HINT_LOCALE_ID", + "value": 32 + }, + { + "name": "PROPERTY_HINT_LOCALIZABLE_STRING", + "value": 33 + }, + { + "name": "PROPERTY_HINT_NODE_TYPE", + "value": 34 + }, + { + "name": "PROPERTY_HINT_HIDE_QUATERNION_EDIT", + "value": 35 + }, + { + "name": "PROPERTY_HINT_PASSWORD", + "value": 36 + }, + { + "name": "PROPERTY_HINT_MAX", + "value": 37 + } + ] + }, + { + "name": "PropertyUsageFlags", + "is_bitfield": true, + "values": [ + { + "name": "PROPERTY_USAGE_NONE", + "value": 0 + }, + { + "name": "PROPERTY_USAGE_STORAGE", + "value": 2 + }, + { + "name": "PROPERTY_USAGE_EDITOR", + "value": 4 + }, + { + "name": "PROPERTY_USAGE_INTERNAL", + "value": 8 + }, + { + "name": "PROPERTY_USAGE_CHECKABLE", + "value": 16 + }, + { + "name": "PROPERTY_USAGE_CHECKED", + "value": 32 + }, + { + "name": "PROPERTY_USAGE_GROUP", + "value": 64 + }, + { + "name": "PROPERTY_USAGE_CATEGORY", + "value": 128 + }, + { + "name": "PROPERTY_USAGE_SUBGROUP", + "value": 256 + }, + { + "name": "PROPERTY_USAGE_CLASS_IS_BITFIELD", + "value": 512 + }, + { + "name": "PROPERTY_USAGE_NO_INSTANCE_STATE", + "value": 1024 + }, + { + "name": "PROPERTY_USAGE_RESTART_IF_CHANGED", + "value": 2048 + }, + { + "name": "PROPERTY_USAGE_SCRIPT_VARIABLE", + "value": 4096 + }, + { + "name": "PROPERTY_USAGE_STORE_IF_NULL", + "value": 8192 + }, + { + "name": "PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED", + "value": 16384 + }, + { + "name": "PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE", + "value": 32768 + }, + { + "name": "PROPERTY_USAGE_CLASS_IS_ENUM", + "value": 65536 + }, + { + "name": "PROPERTY_USAGE_NIL_IS_VARIANT", + "value": 131072 + }, + { + "name": "PROPERTY_USAGE_ARRAY", + "value": 262144 + }, + { + "name": "PROPERTY_USAGE_ALWAYS_DUPLICATE", + "value": 524288 + }, + { + "name": "PROPERTY_USAGE_NEVER_DUPLICATE", + "value": 1048576 + }, + { + "name": "PROPERTY_USAGE_HIGH_END_GFX", + "value": 2097152 + }, + { + "name": "PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT", + "value": 4194304 + }, + { + "name": "PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT", + "value": 8388608 + }, + { + "name": "PROPERTY_USAGE_KEYING_INCREMENTS", + "value": 16777216 + }, + { + "name": "PROPERTY_USAGE_DEFERRED_SET_RESOURCE", + "value": 33554432 + }, + { + "name": "PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT", + "value": 67108864 + }, + { + "name": "PROPERTY_USAGE_EDITOR_BASIC_SETTING", + "value": 134217728 + }, + { + "name": "PROPERTY_USAGE_READ_ONLY", + "value": 268435456 + }, + { + "name": "PROPERTY_USAGE_DEFAULT", + "value": 6 + }, + { + "name": "PROPERTY_USAGE_NO_EDITOR", + "value": 2 + } + ] + }, + { + "name": "MethodFlags", + "is_bitfield": true, + "values": [ + { + "name": "METHOD_FLAG_NORMAL", + "value": 1 + }, + { + "name": "METHOD_FLAG_EDITOR", + "value": 2 + }, + { + "name": "METHOD_FLAG_CONST", + "value": 4 + }, + { + "name": "METHOD_FLAG_VIRTUAL", + "value": 8 + }, + { + "name": "METHOD_FLAG_VARARG", + "value": 16 + }, + { + "name": "METHOD_FLAG_STATIC", + "value": 32 + }, + { + "name": "METHOD_FLAG_OBJECT_CORE", + "value": 64 + }, + { + "name": "METHOD_FLAGS_DEFAULT", + "value": 1 + } + ] + }, + { + "name": "Variant.Type", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_NIL", + "value": 0 + }, + { + "name": "TYPE_BOOL", + "value": 1 + }, + { + "name": "TYPE_INT", + "value": 2 + }, + { + "name": "TYPE_FLOAT", + "value": 3 + }, + { + "name": "TYPE_STRING", + "value": 4 + }, + { + "name": "TYPE_VECTOR2", + "value": 5 + }, + { + "name": "TYPE_VECTOR2I", + "value": 6 + }, + { + "name": "TYPE_RECT2", + "value": 7 + }, + { + "name": "TYPE_RECT2I", + "value": 8 + }, + { + "name": "TYPE_VECTOR3", + "value": 9 + }, + { + "name": "TYPE_VECTOR3I", + "value": 10 + }, + { + "name": "TYPE_TRANSFORM2D", + "value": 11 + }, + { + "name": "TYPE_VECTOR4", + "value": 12 + }, + { + "name": "TYPE_VECTOR4I", + "value": 13 + }, + { + "name": "TYPE_PLANE", + "value": 14 + }, + { + "name": "TYPE_QUATERNION", + "value": 15 + }, + { + "name": "TYPE_AABB", + "value": 16 + }, + { + "name": "TYPE_BASIS", + "value": 17 + }, + { + "name": "TYPE_TRANSFORM3D", + "value": 18 + }, + { + "name": "TYPE_PROJECTION", + "value": 19 + }, + { + "name": "TYPE_COLOR", + "value": 20 + }, + { + "name": "TYPE_STRING_NAME", + "value": 21 + }, + { + "name": "TYPE_NODE_PATH", + "value": 22 + }, + { + "name": "TYPE_RID", + "value": 23 + }, + { + "name": "TYPE_OBJECT", + "value": 24 + }, + { + "name": "TYPE_CALLABLE", + "value": 25 + }, + { + "name": "TYPE_SIGNAL", + "value": 26 + }, + { + "name": "TYPE_DICTIONARY", + "value": 27 + }, + { + "name": "TYPE_ARRAY", + "value": 28 + }, + { + "name": "TYPE_PACKED_BYTE_ARRAY", + "value": 29 + }, + { + "name": "TYPE_PACKED_INT32_ARRAY", + "value": 30 + }, + { + "name": "TYPE_PACKED_INT64_ARRAY", + "value": 31 + }, + { + "name": "TYPE_PACKED_FLOAT32_ARRAY", + "value": 32 + }, + { + "name": "TYPE_PACKED_FLOAT64_ARRAY", + "value": 33 + }, + { + "name": "TYPE_PACKED_STRING_ARRAY", + "value": 34 + }, + { + "name": "TYPE_PACKED_VECTOR2_ARRAY", + "value": 35 + }, + { + "name": "TYPE_PACKED_VECTOR3_ARRAY", + "value": 36 + }, + { + "name": "TYPE_PACKED_COLOR_ARRAY", + "value": 37 + }, + { + "name": "TYPE_MAX", + "value": 38 + } + ] + }, + { + "name": "Variant.Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_EQUAL", + "value": 0 + }, + { + "name": "OP_NOT_EQUAL", + "value": 1 + }, + { + "name": "OP_LESS", + "value": 2 + }, + { + "name": "OP_LESS_EQUAL", + "value": 3 + }, + { + "name": "OP_GREATER", + "value": 4 + }, + { + "name": "OP_GREATER_EQUAL", + "value": 5 + }, + { + "name": "OP_ADD", + "value": 6 + }, + { + "name": "OP_SUBTRACT", + "value": 7 + }, + { + "name": "OP_MULTIPLY", + "value": 8 + }, + { + "name": "OP_DIVIDE", + "value": 9 + }, + { + "name": "OP_NEGATE", + "value": 10 + }, + { + "name": "OP_POSITIVE", + "value": 11 + }, + { + "name": "OP_MODULE", + "value": 12 + }, + { + "name": "OP_POWER", + "value": 13 + }, + { + "name": "OP_SHIFT_LEFT", + "value": 14 + }, + { + "name": "OP_SHIFT_RIGHT", + "value": 15 + }, + { + "name": "OP_BIT_AND", + "value": 16 + }, + { + "name": "OP_BIT_OR", + "value": 17 + }, + { + "name": "OP_BIT_XOR", + "value": 18 + }, + { + "name": "OP_BIT_NEGATE", + "value": 19 + }, + { + "name": "OP_AND", + "value": 20 + }, + { + "name": "OP_OR", + "value": 21 + }, + { + "name": "OP_XOR", + "value": 22 + }, + { + "name": "OP_NOT", + "value": 23 + }, + { + "name": "OP_IN", + "value": 24 + }, + { + "name": "OP_MAX", + "value": 25 + } + ] + } + ], + "utility_functions": [ + { + "name": "sin", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "angle_rad", + "type": "float" + } + ] + }, + { + "name": "cos", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "angle_rad", + "type": "float" + } + ] + }, + { + "name": "tan", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "angle_rad", + "type": "float" + } + ] + }, + { + "name": "sinh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "cosh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "tanh", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "asin", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "acos", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "atan", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "atan2", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "y", + "type": "float" + }, + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "sqrt", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "fmod", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ] + }, + { + "name": "fposmod", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ] + }, + { + "name": "posmod", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 3133453818, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + } + ] + }, + { + "name": "floor", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "x", + "type": "Variant" + } + ] + }, + { + "name": "floorf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "floori", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2780425386, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "ceil", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "x", + "type": "Variant" + } + ] + }, + { + "name": "ceilf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "ceili", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2780425386, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "round", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "x", + "type": "Variant" + } + ] + }, + { + "name": "roundf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "roundi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2780425386, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "abs", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "x", + "type": "Variant" + } + ] + }, + { + "name": "absf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "absi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2157319888, + "arguments": [ + { + "name": "x", + "type": "int" + } + ] + }, + { + "name": "sign", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "x", + "type": "Variant" + } + ] + }, + { + "name": "signf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "signi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2157319888, + "arguments": [ + { + "name": "x", + "type": "int" + } + ] + }, + { + "name": "snapped", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 459914704, + "arguments": [ + { + "name": "x", + "type": "Variant" + }, + { + "name": "step", + "type": "Variant" + } + ] + }, + { + "name": "snappedf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "step", + "type": "float" + } + ] + }, + { + "name": "snappedi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 3570758393, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "step", + "type": "int" + } + ] + }, + { + "name": "pow", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "base", + "type": "float" + }, + { + "name": "exp", + "type": "float" + } + ] + }, + { + "name": "log", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "exp", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "is_nan", + "return_type": "bool", + "category": "math", + "is_vararg": false, + "hash": 3569215213, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "is_inf", + "return_type": "bool", + "category": "math", + "is_vararg": false, + "hash": 3569215213, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "category": "math", + "is_vararg": false, + "hash": 1400789633, + "arguments": [ + { + "name": "a", + "type": "float" + }, + { + "name": "b", + "type": "float" + } + ] + }, + { + "name": "is_zero_approx", + "return_type": "bool", + "category": "math", + "is_vararg": false, + "hash": 3569215213, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "category": "math", + "is_vararg": false, + "hash": 3569215213, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "ease", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "curve", + "type": "float" + } + ] + }, + { + "name": "step_decimals", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2780425386, + "arguments": [ + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "lerp", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 3389874542, + "arguments": [ + { + "name": "from", + "type": "Variant" + }, + { + "name": "to", + "type": "Variant" + }, + { + "name": "weight", + "type": "Variant" + } + ] + }, + { + "name": "lerpf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "pre", + "type": "float" + }, + { + "name": "post", + "type": "float" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_angle", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "pre", + "type": "float" + }, + { + "name": "post", + "type": "float" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_in_time", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 388121036, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "pre", + "type": "float" + }, + { + "name": "post", + "type": "float" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "to_t", + "type": "float" + }, + { + "name": "pre_t", + "type": "float" + }, + { + "name": "post_t", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_angle_in_time", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 388121036, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "pre", + "type": "float" + }, + { + "name": "post", + "type": "float" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "to_t", + "type": "float" + }, + { + "name": "pre_t", + "type": "float" + }, + { + "name": "post_t", + "type": "float" + } + ] + }, + { + "name": "bezier_interpolate", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "start", + "type": "float" + }, + { + "name": "control_1", + "type": "float" + }, + { + "name": "control_2", + "type": "float" + }, + { + "name": "end", + "type": "float" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "bezier_derivative", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "start", + "type": "float" + }, + { + "name": "control_1", + "type": "float" + }, + { + "name": "control_2", + "type": "float" + }, + { + "name": "end", + "type": "float" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "lerp_angle", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "inverse_lerp", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "remap", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 1090965791, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "istart", + "type": "float" + }, + { + "name": "istop", + "type": "float" + }, + { + "name": "ostart", + "type": "float" + }, + { + "name": "ostop", + "type": "float" + } + ] + }, + { + "name": "smoothstep", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "x", + "type": "float" + } + ] + }, + { + "name": "move_toward", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + }, + { + "name": "delta", + "type": "float" + } + ] + }, + { + "name": "deg_to_rad", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "deg", + "type": "float" + } + ] + }, + { + "name": "rad_to_deg", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "rad", + "type": "float" + } + ] + }, + { + "name": "linear_to_db", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "lin", + "type": "float" + } + ] + }, + { + "name": "db_to_linear", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 2140049587, + "arguments": [ + { + "name": "db", + "type": "float" + } + ] + }, + { + "name": "wrap", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 3389874542, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "min", + "type": "Variant" + }, + { + "name": "max", + "type": "Variant" + } + ] + }, + { + "name": "wrapi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 650295447, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ] + }, + { + "name": "wrapf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ] + }, + { + "name": "max", + "return_type": "Variant", + "category": "math", + "is_vararg": true, + "hash": 3896050336, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + }, + { + "name": "arg2", + "type": "Variant" + } + ] + }, + { + "name": "maxi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 3133453818, + "arguments": [ + { + "name": "a", + "type": "int" + }, + { + "name": "b", + "type": "int" + } + ] + }, + { + "name": "maxf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "a", + "type": "float" + }, + { + "name": "b", + "type": "float" + } + ] + }, + { + "name": "min", + "return_type": "Variant", + "category": "math", + "is_vararg": true, + "hash": 3896050336, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + }, + { + "name": "arg2", + "type": "Variant" + } + ] + }, + { + "name": "mini", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 3133453818, + "arguments": [ + { + "name": "a", + "type": "int" + }, + { + "name": "b", + "type": "int" + } + ] + }, + { + "name": "minf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "a", + "type": "float" + }, + { + "name": "b", + "type": "float" + } + ] + }, + { + "name": "clamp", + "return_type": "Variant", + "category": "math", + "is_vararg": false, + "hash": 3389874542, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "min", + "type": "Variant" + }, + { + "name": "max", + "type": "Variant" + } + ] + }, + { + "name": "clampi", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 650295447, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "min", + "type": "int" + }, + { + "name": "max", + "type": "int" + } + ] + }, + { + "name": "clampf", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 998901048, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "min", + "type": "float" + }, + { + "name": "max", + "type": "float" + } + ] + }, + { + "name": "nearest_po2", + "return_type": "int", + "category": "math", + "is_vararg": false, + "hash": 2157319888, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "pingpong", + "return_type": "float", + "category": "math", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "length", + "type": "float" + } + ] + }, + { + "name": "randomize", + "category": "random", + "is_vararg": false, + "hash": 1691721052 + }, + { + "name": "randi", + "return_type": "int", + "category": "random", + "is_vararg": false, + "hash": 701202648 + }, + { + "name": "randf", + "return_type": "float", + "category": "random", + "is_vararg": false, + "hash": 2086227845 + }, + { + "name": "randi_range", + "return_type": "int", + "category": "random", + "is_vararg": false, + "hash": 3133453818, + "arguments": [ + { + "name": "from", + "type": "int" + }, + { + "name": "to", + "type": "int" + } + ] + }, + { + "name": "randf_range", + "return_type": "float", + "category": "random", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "from", + "type": "float" + }, + { + "name": "to", + "type": "float" + } + ] + }, + { + "name": "randfn", + "return_type": "float", + "category": "random", + "is_vararg": false, + "hash": 92296394, + "arguments": [ + { + "name": "mean", + "type": "float" + }, + { + "name": "deviation", + "type": "float" + } + ] + }, + { + "name": "seed", + "category": "random", + "is_vararg": false, + "hash": 382931173, + "arguments": [ + { + "name": "base", + "type": "int" + } + ] + }, + { + "name": "rand_from_seed", + "return_type": "PackedInt64Array", + "category": "random", + "is_vararg": false, + "hash": 1391063685, + "arguments": [ + { + "name": "seed", + "type": "int" + } + ] + }, + { + "name": "weakref", + "return_type": "Variant", + "category": "general", + "is_vararg": false, + "hash": 4776452, + "arguments": [ + { + "name": "obj", + "type": "Variant" + } + ] + }, + { + "name": "typeof", + "return_type": "int", + "category": "general", + "is_vararg": false, + "hash": 326422594, + "arguments": [ + { + "name": "variable", + "type": "Variant" + } + ] + }, + { + "name": "str", + "return_type": "String", + "category": "general", + "is_vararg": true, + "hash": 32569176, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "error_string", + "return_type": "String", + "category": "general", + "is_vararg": false, + "hash": 942708242, + "arguments": [ + { + "name": "error", + "type": "int" + } + ] + }, + { + "name": "print", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "print_rich", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "printerr", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "printt", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "prints", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "printraw", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "print_verbose", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "push_error", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "push_warning", + "category": "general", + "is_vararg": true, + "hash": 2648703342, + "arguments": [ + { + "name": "arg1", + "type": "Variant" + } + ] + }, + { + "name": "var_to_str", + "return_type": "String", + "category": "general", + "is_vararg": false, + "hash": 866625479, + "arguments": [ + { + "name": "variable", + "type": "Variant" + } + ] + }, + { + "name": "str_to_var", + "return_type": "Variant", + "category": "general", + "is_vararg": false, + "hash": 1891498491, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "var_to_bytes", + "return_type": "PackedByteArray", + "category": "general", + "is_vararg": false, + "hash": 2947269930, + "arguments": [ + { + "name": "variable", + "type": "Variant" + } + ] + }, + { + "name": "bytes_to_var", + "return_type": "Variant", + "category": "general", + "is_vararg": false, + "hash": 4249819452, + "arguments": [ + { + "name": "bytes", + "type": "PackedByteArray" + } + ] + }, + { + "name": "var_to_bytes_with_objects", + "return_type": "PackedByteArray", + "category": "general", + "is_vararg": false, + "hash": 2947269930, + "arguments": [ + { + "name": "variable", + "type": "Variant" + } + ] + }, + { + "name": "bytes_to_var_with_objects", + "return_type": "Variant", + "category": "general", + "is_vararg": false, + "hash": 4249819452, + "arguments": [ + { + "name": "bytes", + "type": "PackedByteArray" + } + ] + }, + { + "name": "hash", + "return_type": "int", + "category": "general", + "is_vararg": false, + "hash": 326422594, + "arguments": [ + { + "name": "variable", + "type": "Variant" + } + ] + }, + { + "name": "instance_from_id", + "return_type": "Object", + "category": "general", + "is_vararg": false, + "hash": 1156694636, + "arguments": [ + { + "name": "instance_id", + "type": "int" + } + ] + }, + { + "name": "is_instance_id_valid", + "return_type": "bool", + "category": "general", + "is_vararg": false, + "hash": 2232439758, + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "is_instance_valid", + "return_type": "bool", + "category": "general", + "is_vararg": false, + "hash": 996128841, + "arguments": [ + { + "name": "instance", + "type": "Variant" + } + ] + }, + { + "name": "rid_allocate_id", + "return_type": "int", + "category": "general", + "is_vararg": false, + "hash": 701202648 + }, + { + "name": "rid_from_int64", + "return_type": "RID", + "category": "general", + "is_vararg": false, + "hash": 3426892196, + "arguments": [ + { + "name": "base", + "type": "int" + } + ] + }, + { + "name": "is_same", + "return_type": "bool", + "category": "general", + "is_vararg": false, + "hash": 1409423524, + "arguments": [ + { + "name": "a", + "type": "Variant" + }, + { + "name": "b", + "type": "Variant" + } + ] + } + ], + "builtin_classes": [ + { + "name": "Nil", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "not", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Rect2", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Rect2", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Rect2i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Rect2i", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Transform2D", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Transform2D", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Plane", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Plane", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Quaternion", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Quaternion", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "AABB", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "AABB", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Basis", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Basis", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Transform3D", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Transform3D", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Projection", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Projection", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Color", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Color", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "NodePath", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "NodePath", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Callable", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Callable", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Signal", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Signal", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedFloat64Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedFloat64Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector2Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector2Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector3Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector3Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedColorArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedColorArray", + "return_type": "bool" + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Variant" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "bool", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "not", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "bool" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "int" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "from", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "int", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "int" + }, + { + "name": "unary+", + "return_type": "int" + }, + { + "name": "~", + "return_type": "int" + }, + { + "name": "and", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "not", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "int", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "int", + "return_type": "int" + }, + { + "name": "-", + "right_type": "int", + "return_type": "int" + }, + { + "name": "*", + "right_type": "int", + "return_type": "int" + }, + { + "name": "/", + "right_type": "int", + "return_type": "int" + }, + { + "name": "%", + "right_type": "int", + "return_type": "int" + }, + { + "name": "**", + "right_type": "int", + "return_type": "int" + }, + { + "name": "<<", + "right_type": "int", + "return_type": "int" + }, + { + "name": ">>", + "right_type": "int", + "return_type": "int" + }, + { + "name": "&", + "right_type": "int", + "return_type": "int" + }, + { + "name": "|", + "right_type": "int", + "return_type": "int" + }, + { + "name": "^", + "right_type": "int", + "return_type": "int" + }, + { + "name": "and", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "float", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "float", + "return_type": "float" + }, + { + "name": "-", + "right_type": "float", + "return_type": "float" + }, + { + "name": "*", + "right_type": "float", + "return_type": "float" + }, + { + "name": "/", + "right_type": "float", + "return_type": "float" + }, + { + "name": "**", + "right_type": "float", + "return_type": "float" + }, + { + "name": "and", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "*", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "*", + "right_type": "Quaternion", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "and", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedFloat64Array", + "return_type": "bool" + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "int" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "float" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "from", + "type": "bool" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "from", + "type": "String" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "float", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "float" + }, + { + "name": "unary+", + "return_type": "float" + }, + { + "name": "and", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "not", + "return_type": "bool" + }, + { + "name": "and", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "bool", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "int", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "int", + "return_type": "float" + }, + { + "name": "-", + "right_type": "int", + "return_type": "float" + }, + { + "name": "*", + "right_type": "int", + "return_type": "float" + }, + { + "name": "/", + "right_type": "int", + "return_type": "float" + }, + { + "name": "**", + "right_type": "int", + "return_type": "float" + }, + { + "name": "and", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "int", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "float", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "float", + "return_type": "float" + }, + { + "name": "-", + "right_type": "float", + "return_type": "float" + }, + { + "name": "*", + "right_type": "float", + "return_type": "float" + }, + { + "name": "/", + "right_type": "float", + "return_type": "float" + }, + { + "name": "**", + "right_type": "float", + "return_type": "float" + }, + { + "name": "and", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "float", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Vector2i", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Vector3i", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "Vector4i", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "Quaternion", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "and", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "or", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "xor", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedFloat64Array", + "return_type": "bool" + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "float" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "int" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "from", + "type": "bool" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "from", + "type": "String" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "String", + "indexing_return_type": "String", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Variant", + "return_type": "String" + }, + { + "name": "%", + "right_type": "bool", + "return_type": "String" + }, + { + "name": "%", + "right_type": "int", + "return_type": "String" + }, + { + "name": "%", + "right_type": "float", + "return_type": "String" + }, + { + "name": "==", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "String", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "String", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "String", + "return_type": "String" + }, + { + "name": "%", + "right_type": "String", + "return_type": "String" + }, + { + "name": "in", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Vector2", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector2i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Rect2", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Rect2i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector3", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector3i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Transform2D", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector4", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector4i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Plane", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Quaternion", + "return_type": "String" + }, + { + "name": "%", + "right_type": "AABB", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Basis", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Transform3D", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Projection", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Color", + "return_type": "String" + }, + { + "name": "==", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "StringName", + "return_type": "String" + }, + { + "name": "%", + "right_type": "StringName", + "return_type": "String" + }, + { + "name": "in", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "NodePath", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Object", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Callable", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Signal", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Dictionary", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Array", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "PackedByteArray", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedInt32Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedInt64Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedFloat32Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedFloat64Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedStringArray", + "return_type": "String" + }, + { + "name": "in", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "PackedVector2Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedVector3Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedColorArray", + "return_type": "String" + } + ], + "methods": [ + { + "name": "casecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "nocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "naturalnocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "length", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "substr", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 787537301, + "arguments": [ + { + "name": "from", + "type": "int" + }, + { + "name": "len", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "get_slice", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3535100402, + "arguments": [ + { + "name": "delimiter", + "type": "String" + }, + { + "name": "slice", + "type": "int" + } + ] + }, + { + "name": "get_slicec", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 787537301, + "arguments": [ + { + "name": "delimiter", + "type": "int" + }, + { + "name": "slice", + "type": "int" + } + ] + }, + { + "name": "get_slice_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "delimiter", + "type": "String" + } + ] + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2343087891, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + }, + { + "name": "to", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "countn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2343087891, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + }, + { + "name": "to", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "findn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "rfindn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "match", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "expr", + "type": "String" + } + ] + }, + { + "name": "matchn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "expr", + "type": "String" + } + ] + }, + { + "name": "begins_with", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "ends_with", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "is_subsequence_of", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "is_subsequence_ofn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "bigrams", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 747180633 + }, + { + "name": "similarity", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2697460964, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "format", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3212199029, + "arguments": [ + { + "name": "values", + "type": "Variant" + }, + { + "name": "placeholder", + "type": "String", + "default_value": "\"{_}\"" + } + ] + }, + { + "name": "replace", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1340436205, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "forwhat", + "type": "String" + } + ] + }, + { + "name": "replacen", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1340436205, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "forwhat", + "type": "String" + } + ] + }, + { + "name": "repeat", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "count", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "position", + "type": "int" + }, + { + "name": "what", + "type": "String" + } + ] + }, + { + "name": "capitalize", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_camel_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_pascal_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_snake_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "split", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1252735785, + "arguments": [ + { + "name": "delimiter", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + }, + { + "name": "maxsplit", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rsplit", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1252735785, + "arguments": [ + { + "name": "delimiter", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + }, + { + "name": "maxsplit", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "split_floats", + "return_type": "PackedFloat64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2092079095, + "arguments": [ + { + "name": "delimiter", + "type": "String" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "join", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3595973238, + "arguments": [ + { + "name": "parts", + "type": "PackedStringArray" + } + ] + }, + { + "name": "to_upper", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_lower", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "left", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "length", + "type": "int" + } + ] + }, + { + "name": "right", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "length", + "type": "int" + } + ] + }, + { + "name": "strip_edges", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 907855311, + "arguments": [ + { + "name": "left", + "type": "bool", + "default_value": "true" + }, + { + "name": "right", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "strip_escapes", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "lstrip", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "chars", + "type": "String" + } + ] + }, + { + "name": "rstrip", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "chars", + "type": "String" + } + ] + }, + { + "name": "get_extension", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_basename", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "path_join", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "unicode_at", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "at", + "type": "int" + } + ] + }, + { + "name": "indent", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "prefix", + "type": "String" + } + ] + }, + { + "name": "dedent", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "md5_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "sha1_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "sha256_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "md5_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sha1_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sha256_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "contains", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "what", + "type": "String" + } + ] + }, + { + "name": "is_absolute_path", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_relative_path", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "simplify_path", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_base_dir", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_file", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "xml_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3429816538, + "arguments": [ + { + "name": "escape_quotes", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "xml_unescape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "uri_encode", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "uri_decode", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "c_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "c_unescape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "json_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "validate_node_name", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "validate_filename", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "is_valid_identifier", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_int", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_float", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_hex_number", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 593672999, + "arguments": [ + { + "name": "with_prefix", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_valid_html_color", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_ip_address", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_filename", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_float", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "hex_to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "bin_to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "lpad", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "min_length", + "type": "int" + }, + { + "name": "character", + "type": "String", + "default_value": "\" \"" + } + ] + }, + { + "name": "rpad", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "min_length", + "type": "int" + }, + { + "name": "character", + "type": "String", + "default_value": "\" \"" + } + ] + }, + { + "name": "pad_decimals", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "digits", + "type": "int" + } + ] + }, + { + "name": "pad_zeros", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "digits", + "type": "int" + } + ] + }, + { + "name": "trim_prefix", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "prefix", + "type": "String" + } + ] + }, + { + "name": "trim_suffix", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "suffix", + "type": "String" + } + ] + }, + { + "name": "to_ascii_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf8_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf16_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf32_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "num_scientific", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2710373411, + "arguments": [ + { + "name": "number", + "type": "float" + } + ] + }, + { + "name": "num", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1555901022, + "arguments": [ + { + "name": "number", + "type": "float" + }, + { + "name": "decimals", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "num_int64", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2111271071, + "arguments": [ + { + "name": "number", + "type": "int" + }, + { + "name": "base", + "type": "int", + "default_value": "10" + }, + { + "name": "capitalize_hex", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "num_uint64", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2111271071, + "arguments": [ + { + "name": "number", + "type": "int" + }, + { + "name": "base", + "type": "int", + "default_value": "10" + }, + { + "name": "capitalize_hex", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "chr", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 897497541, + "arguments": [ + { + "name": "char", + "type": "int" + } + ] + }, + { + "name": "humanize_size", + "return_type": "String", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 897497541, + "arguments": [ + { + "name": "size", + "type": "int" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "String" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "StringName" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "from", + "type": "NodePath" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "Vector2", + "indexing_return_type": "float", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "ZERO", + "type": "Vector2", + "value": "Vector2(0, 0)" + }, + { + "name": "ONE", + "type": "Vector2", + "value": "Vector2(1, 1)" + }, + { + "name": "INF", + "type": "Vector2", + "value": "Vector2(inf, inf)" + }, + { + "name": "LEFT", + "type": "Vector2", + "value": "Vector2(-1, 0)" + }, + { + "name": "RIGHT", + "type": "Vector2", + "value": "Vector2(1, 0)" + }, + { + "name": "UP", + "type": "Vector2", + "value": "Vector2(0, -1)" + }, + { + "name": "DOWN", + "type": "Vector2", + "value": "Vector2(0, 1)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector2" + }, + { + "name": "unary+", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector2" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector2" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector2" + }, + { + "name": "==", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector2", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "-", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "/", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Transform2D", + "return_type": "Vector2" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedVector2Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "angle", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "angle_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "angle_to_point", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "direction_to", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "limit_length", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "length", + "type": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "normalized", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "is_normalized", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3190634762, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "is_zero_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "posmod", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "mod", + "type": "float" + } + ] + }, + { + "name": "posmodv", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "modv", + "type": "Vector2" + } + ] + }, + { + "name": "project", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "b", + "type": "Vector2" + } + ] + }, + { + "name": "lerp", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4250033116, + "arguments": [ + { + "name": "to", + "type": "Vector2" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "slerp", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4250033116, + "arguments": [ + { + "name": "to", + "type": "Vector2" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 193522989, + "arguments": [ + { + "name": "b", + "type": "Vector2" + }, + { + "name": "pre_a", + "type": "Vector2" + }, + { + "name": "post_b", + "type": "Vector2" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_in_time", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1957055074, + "arguments": [ + { + "name": "b", + "type": "Vector2" + }, + { + "name": "pre_a", + "type": "Vector2" + }, + { + "name": "post_b", + "type": "Vector2" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "b_t", + "type": "float" + }, + { + "name": "pre_a_t", + "type": "float" + }, + { + "name": "post_b_t", + "type": "float" + } + ] + }, + { + "name": "bezier_interpolate", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 193522989, + "arguments": [ + { + "name": "control_1", + "type": "Vector2" + }, + { + "name": "control_2", + "type": "Vector2" + }, + { + "name": "end", + "type": "Vector2" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "bezier_derivative", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 193522989, + "arguments": [ + { + "name": "control_1", + "type": "Vector2" + }, + { + "name": "control_2", + "type": "Vector2" + }, + { + "name": "end", + "type": "Vector2" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "move_toward", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4250033116, + "arguments": [ + { + "name": "to", + "type": "Vector2" + }, + { + "name": "delta", + "type": "float" + } + ] + }, + { + "name": "rotated", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2544004089, + "arguments": [ + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "orthogonal", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "floor", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "ceil", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "round", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "aspect", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "dot", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "with", + "type": "Vector2" + } + ] + }, + { + "name": "slide", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "n", + "type": "Vector2" + } + ] + }, + { + "name": "bounce", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "n", + "type": "Vector2" + } + ] + }, + { + "name": "reflect", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "n", + "type": "Vector2" + } + ] + }, + { + "name": "cross", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3819070308, + "arguments": [ + { + "name": "with", + "type": "Vector2" + } + ] + }, + { + "name": "abs", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "sign", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "clamp", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 318031021, + "arguments": [ + { + "name": "min", + "type": "Vector2" + }, + { + "name": "max", + "type": "Vector2" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "step", + "type": "Vector2" + } + ] + }, + { + "name": "from_angle", + "return_type": "Vector2", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 889263119, + "arguments": [ + { + "name": "angle", + "type": "float" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector2" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector2i" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Vector2i", + "indexing_return_type": "int", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "ZERO", + "type": "Vector2i", + "value": "Vector2i(0, 0)" + }, + { + "name": "ONE", + "type": "Vector2i", + "value": "Vector2i(1, 1)" + }, + { + "name": "LEFT", + "type": "Vector2i", + "value": "Vector2i(-1, 0)" + }, + { + "name": "RIGHT", + "type": "Vector2i", + "value": "Vector2i(1, 0)" + }, + { + "name": "UP", + "type": "Vector2i", + "value": "Vector2i(0, -1)" + }, + { + "name": "DOWN", + "type": "Vector2i", + "value": "Vector2i(0, 1)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector2i" + }, + { + "name": "unary+", + "return_type": "Vector2i" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector2i" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector2i" + }, + { + "name": "%", + "right_type": "int", + "return_type": "Vector2i" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector2" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector2" + }, + { + "name": "==", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector2i", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "-", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "*", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "/", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "%", + "right_type": "Vector2i", + "return_type": "Vector2i" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "aspect", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "sign", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3444277866 + }, + { + "name": "abs", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3444277866 + }, + { + "name": "clamp", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 186568249, + "arguments": [ + { + "name": "min", + "type": "Vector2i" + }, + { + "name": "max", + "type": "Vector2i" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1735278196, + "arguments": [ + { + "name": "step", + "type": "Vector2i" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector2i" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector2" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Rect2", + "is_keyed": false, + "members": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "end", + "type": "Vector2" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Rect2", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Rect2", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform2D", + "return_type": "Rect2" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "get_center", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "get_area", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "has_area", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "has_point", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3190634762, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1908192260, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "intersects", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 819294880, + "arguments": [ + { + "name": "b", + "type": "Rect2" + }, + { + "name": "include_borders", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "encloses", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1908192260, + "arguments": [ + { + "name": "b", + "type": "Rect2" + } + ] + }, + { + "name": "intersection", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2282977743, + "arguments": [ + { + "name": "b", + "type": "Rect2" + } + ] + }, + { + "name": "merge", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2282977743, + "arguments": [ + { + "name": "b", + "type": "Rect2" + } + ] + }, + { + "name": "expand", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 293272265, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "grow", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 39664498, + "arguments": [ + { + "name": "amount", + "type": "float" + } + ] + }, + { + "name": "grow_side", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4177736158, + "arguments": [ + { + "name": "side", + "type": "int" + }, + { + "name": "amount", + "type": "float" + } + ] + }, + { + "name": "grow_individual", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3203390369, + "arguments": [ + { + "name": "left", + "type": "float" + }, + { + "name": "top", + "type": "float" + }, + { + "name": "right", + "type": "float" + }, + { + "name": "bottom", + "type": "float" + } + ] + }, + { + "name": "abs", + "return_type": "Rect2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3107653634 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Rect2" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Rect2i" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "width", + "type": "float" + }, + { + "name": "height", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Rect2i", + "is_keyed": false, + "members": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "end", + "type": "Vector2i" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Rect2i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Rect2i", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "get_center", + "return_type": "Vector2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3444277866 + }, + { + "name": "get_area", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "has_area", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "has_point", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 328189994, + "arguments": [ + { + "name": "point", + "type": "Vector2i" + } + ] + }, + { + "name": "intersects", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3434691493, + "arguments": [ + { + "name": "b", + "type": "Rect2i" + } + ] + }, + { + "name": "encloses", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3434691493, + "arguments": [ + { + "name": "b", + "type": "Rect2i" + } + ] + }, + { + "name": "intersection", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 717431873, + "arguments": [ + { + "name": "b", + "type": "Rect2i" + } + ] + }, + { + "name": "merge", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 717431873, + "arguments": [ + { + "name": "b", + "type": "Rect2i" + } + ] + }, + { + "name": "expand", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1355196872, + "arguments": [ + { + "name": "to", + "type": "Vector2i" + } + ] + }, + { + "name": "grow", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1578070074, + "arguments": [ + { + "name": "amount", + "type": "int" + } + ] + }, + { + "name": "grow_side", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3191154199, + "arguments": [ + { + "name": "side", + "type": "int" + }, + { + "name": "amount", + "type": "int" + } + ] + }, + { + "name": "grow_individual", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1893743416, + "arguments": [ + { + "name": "left", + "type": "int" + }, + { + "name": "top", + "type": "int" + }, + { + "name": "right", + "type": "int" + }, + { + "name": "bottom", + "type": "int" + } + ] + }, + { + "name": "abs", + "return_type": "Rect2i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1469025700 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Rect2i" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Rect2" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "width", + "type": "int" + }, + { + "name": "height", + "type": "int" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Vector3", + "indexing_return_type": "float", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "AXIS_Z", + "type": "int", + "value": "2" + }, + { + "name": "ZERO", + "type": "Vector3", + "value": "Vector3(0, 0, 0)" + }, + { + "name": "ONE", + "type": "Vector3", + "value": "Vector3(1, 1, 1)" + }, + { + "name": "INF", + "type": "Vector3", + "value": "Vector3(inf, inf, inf)" + }, + { + "name": "LEFT", + "type": "Vector3", + "value": "Vector3(-1, 0, 0)" + }, + { + "name": "RIGHT", + "type": "Vector3", + "value": "Vector3(1, 0, 0)" + }, + { + "name": "UP", + "type": "Vector3", + "value": "Vector3(0, 1, 0)" + }, + { + "name": "DOWN", + "type": "Vector3", + "value": "Vector3(0, -1, 0)" + }, + { + "name": "FORWARD", + "type": "Vector3", + "value": "Vector3(0, 0, -1)" + }, + { + "name": "BACK", + "type": "Vector3", + "value": "Vector3(0, 0, 1)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + }, + { + "name": "AXIS_Z", + "value": 2 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector3" + }, + { + "name": "unary+", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector3" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector3" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector3" + }, + { + "name": "==", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector3", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "-", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "/", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Quaternion", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Basis", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Transform3D", + "return_type": "Vector3" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedVector3Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "angle_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "signed_angle_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2781412522, + "arguments": [ + { + "name": "to", + "type": "Vector3" + }, + { + "name": "axis", + "type": "Vector3" + } + ] + }, + { + "name": "direction_to", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "limit_length", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 514930144, + "arguments": [ + { + "name": "length", + "type": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "normalized", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "is_normalized", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1749054343, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "is_zero_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "inverse", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "clamp", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4145107892, + "arguments": [ + { + "name": "min", + "type": "Vector3" + }, + { + "name": "max", + "type": "Vector3" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "step", + "type": "Vector3" + } + ] + }, + { + "name": "rotated", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682608829, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "lerp", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682608829, + "arguments": [ + { + "name": "to", + "type": "Vector3" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "slerp", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682608829, + "arguments": [ + { + "name": "to", + "type": "Vector3" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2597922253, + "arguments": [ + { + "name": "b", + "type": "Vector3" + }, + { + "name": "pre_a", + "type": "Vector3" + }, + { + "name": "post_b", + "type": "Vector3" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_in_time", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3256682901, + "arguments": [ + { + "name": "b", + "type": "Vector3" + }, + { + "name": "pre_a", + "type": "Vector3" + }, + { + "name": "post_b", + "type": "Vector3" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "b_t", + "type": "float" + }, + { + "name": "pre_a_t", + "type": "float" + }, + { + "name": "post_b_t", + "type": "float" + } + ] + }, + { + "name": "bezier_interpolate", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2597922253, + "arguments": [ + { + "name": "control_1", + "type": "Vector3" + }, + { + "name": "control_2", + "type": "Vector3" + }, + { + "name": "end", + "type": "Vector3" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "bezier_derivative", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2597922253, + "arguments": [ + { + "name": "control_1", + "type": "Vector3" + }, + { + "name": "control_2", + "type": "Vector3" + }, + { + "name": "end", + "type": "Vector3" + }, + { + "name": "t", + "type": "float" + } + ] + }, + { + "name": "move_toward", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682608829, + "arguments": [ + { + "name": "to", + "type": "Vector3" + }, + { + "name": "delta", + "type": "float" + } + ] + }, + { + "name": "dot", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "cross", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "outer", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3934786792, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "abs", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "floor", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "ceil", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "round", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "posmod", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 514930144, + "arguments": [ + { + "name": "mod", + "type": "float" + } + ] + }, + { + "name": "posmodv", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "modv", + "type": "Vector3" + } + ] + }, + { + "name": "project", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "b", + "type": "Vector3" + } + ] + }, + { + "name": "slide", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "n", + "type": "Vector3" + } + ] + }, + { + "name": "bounce", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "n", + "type": "Vector3" + } + ] + }, + { + "name": "reflect", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "n", + "type": "Vector3" + } + ] + }, + { + "name": "sign", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "octahedron_encode", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "octahedron_decode", + "return_type": "Vector3", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3991820552, + "arguments": [ + { + "name": "uv", + "type": "Vector2" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector3" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector3i" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Vector3i", + "indexing_return_type": "int", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "z", + "type": "int" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "AXIS_Z", + "type": "int", + "value": "2" + }, + { + "name": "ZERO", + "type": "Vector3i", + "value": "Vector3i(0, 0, 0)" + }, + { + "name": "ONE", + "type": "Vector3i", + "value": "Vector3i(1, 1, 1)" + }, + { + "name": "LEFT", + "type": "Vector3i", + "value": "Vector3i(-1, 0, 0)" + }, + { + "name": "RIGHT", + "type": "Vector3i", + "value": "Vector3i(1, 0, 0)" + }, + { + "name": "UP", + "type": "Vector3i", + "value": "Vector3i(0, 1, 0)" + }, + { + "name": "DOWN", + "type": "Vector3i", + "value": "Vector3i(0, -1, 0)" + }, + { + "name": "FORWARD", + "type": "Vector3i", + "value": "Vector3i(0, 0, -1)" + }, + { + "name": "BACK", + "type": "Vector3i", + "value": "Vector3i(0, 0, 1)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + }, + { + "name": "AXIS_Z", + "value": 2 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector3i" + }, + { + "name": "unary+", + "return_type": "Vector3i" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector3i" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector3i" + }, + { + "name": "%", + "right_type": "int", + "return_type": "Vector3i" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector3" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector3" + }, + { + "name": "==", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector3i", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "-", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "*", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "/", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "%", + "right_type": "Vector3i", + "return_type": "Vector3i" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "sign", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3729604559 + }, + { + "name": "abs", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3729604559 + }, + { + "name": "clamp", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1086892323, + "arguments": [ + { + "name": "min", + "type": "Vector3i" + }, + { + "name": "max", + "type": "Vector3i" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector3i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1989319750, + "arguments": [ + { + "name": "step", + "type": "Vector3i" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector3i" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector3" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "z", + "type": "int" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Transform2D", + "indexing_return_type": "Vector2", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "Vector2" + }, + { + "name": "y", + "type": "Vector2" + }, + { + "name": "origin", + "type": "Vector2" + } + ], + "constants": [ + { + "name": "IDENTITY", + "type": "Transform2D", + "value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "FLIP_X", + "type": "Transform2D", + "value": "Transform2D(-1, 0, 0, 1, 0, 0)" + }, + { + "name": "FLIP_Y", + "type": "Transform2D", + "value": "Transform2D(1, 0, 0, -1, 0, 0)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Transform2D" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Transform2D" + }, + { + "name": "*", + "right_type": "Vector2", + "return_type": "Vector2" + }, + { + "name": "*", + "right_type": "Rect2", + "return_type": "Rect2" + }, + { + "name": "==", + "right_type": "Transform2D", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Transform2D", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform2D", + "return_type": "Transform2D" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "PackedVector2Array", + "return_type": "PackedVector2Array" + } + ], + "methods": [ + { + "name": "inverse", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1420440541 + }, + { + "name": "affine_inverse", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1420440541 + }, + { + "name": "get_rotation", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_origin", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "get_scale", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "get_skew", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "orthonormalized", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1420440541 + }, + { + "name": "rotated", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 729597514, + "arguments": [ + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "rotated_local", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 729597514, + "arguments": [ + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "scaled", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1446323263, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "scaled_local", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1446323263, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "translated", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1446323263, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "translated_local", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1446323263, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "basis_xform", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "v", + "type": "Vector2" + } + ] + }, + { + "name": "basis_xform_inv", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2026743667, + "arguments": [ + { + "name": "v", + "type": "Vector2" + } + ] + }, + { + "name": "interpolate_with", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 359399686, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3837431929, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "looking_at", + "return_type": "Transform2D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1446323263, + "arguments": [ + { + "name": "target", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Transform2D" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "rotation", + "type": "float" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "rotation", + "type": "float" + }, + { + "name": "scale", + "type": "Vector2" + }, + { + "name": "skew", + "type": "float" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "x_axis", + "type": "Vector2" + }, + { + "name": "y_axis", + "type": "Vector2" + }, + { + "name": "origin", + "type": "Vector2" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Vector4", + "indexing_return_type": "float", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "AXIS_Z", + "type": "int", + "value": "2" + }, + { + "name": "AXIS_W", + "type": "int", + "value": "3" + }, + { + "name": "ZERO", + "type": "Vector4", + "value": "Vector4(0, 0, 0, 0)" + }, + { + "name": "ONE", + "type": "Vector4", + "value": "Vector4(1, 1, 1, 1)" + }, + { + "name": "INF", + "type": "Vector4", + "value": "Vector4(inf, inf, inf, inf)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + }, + { + "name": "AXIS_Z", + "value": 2 + }, + { + "name": "AXIS_W", + "value": 3 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector4" + }, + { + "name": "unary+", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector4" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector4" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector4" + }, + { + "name": "==", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector4", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "-", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "/", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "*", + "right_type": "Projection", + "return_type": "Vector4" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "abs", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "sign", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "floor", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "ceil", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "round", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "lerp", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2329757942, + "arguments": [ + { + "name": "to", + "type": "Vector4" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 726768410, + "arguments": [ + { + "name": "b", + "type": "Vector4" + }, + { + "name": "pre_a", + "type": "Vector4" + }, + { + "name": "post_b", + "type": "Vector4" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "cubic_interpolate_in_time", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 681631873, + "arguments": [ + { + "name": "b", + "type": "Vector4" + }, + { + "name": "pre_a", + "type": "Vector4" + }, + { + "name": "post_b", + "type": "Vector4" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "b_t", + "type": "float" + }, + { + "name": "pre_a_t", + "type": "float" + }, + { + "name": "post_b_t", + "type": "float" + } + ] + }, + { + "name": "posmod", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3129671720, + "arguments": [ + { + "name": "mod", + "type": "float" + } + ] + }, + { + "name": "posmodv", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2031281584, + "arguments": [ + { + "name": "modv", + "type": "Vector4" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2031281584, + "arguments": [ + { + "name": "step", + "type": "Vector4" + } + ] + }, + { + "name": "clamp", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 823915692, + "arguments": [ + { + "name": "min", + "type": "Vector4" + }, + { + "name": "max", + "type": "Vector4" + } + ] + }, + { + "name": "normalized", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "is_normalized", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "direction_to", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2031281584, + "arguments": [ + { + "name": "to", + "type": "Vector4" + } + ] + }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3770801042, + "arguments": [ + { + "name": "to", + "type": "Vector4" + } + ] + }, + { + "name": "distance_squared_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3770801042, + "arguments": [ + { + "name": "to", + "type": "Vector4" + } + ] + }, + { + "name": "dot", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3770801042, + "arguments": [ + { + "name": "with", + "type": "Vector4" + } + ] + }, + { + "name": "inverse", + "return_type": "Vector4", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 80860099 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 88913544, + "arguments": [ + { + "name": "with", + "type": "Vector4" + } + ] + }, + { + "name": "is_zero_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector4" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector4i" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Vector4i", + "indexing_return_type": "int", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "z", + "type": "int" + }, + { + "name": "w", + "type": "int" + } + ], + "constants": [ + { + "name": "AXIS_X", + "type": "int", + "value": "0" + }, + { + "name": "AXIS_Y", + "type": "int", + "value": "1" + }, + { + "name": "AXIS_Z", + "type": "int", + "value": "2" + }, + { + "name": "AXIS_W", + "type": "int", + "value": "3" + }, + { + "name": "ZERO", + "type": "Vector4i", + "value": "Vector4i(0, 0, 0, 0)" + }, + { + "name": "ONE", + "type": "Vector4i", + "value": "Vector4i(1, 1, 1, 1)" + } + ], + "enums": [ + { + "name": "Axis", + "values": [ + { + "name": "AXIS_X", + "value": 0 + }, + { + "name": "AXIS_Y", + "value": 1 + }, + { + "name": "AXIS_Z", + "value": 2 + }, + { + "name": "AXIS_W", + "value": 3 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Vector4i" + }, + { + "name": "unary+", + "return_type": "Vector4i" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Vector4i" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Vector4i" + }, + { + "name": "%", + "right_type": "int", + "return_type": "Vector4i" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Vector4" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Vector4" + }, + { + "name": "==", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Vector4i", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "-", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "*", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "/", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "%", + "right_type": "Vector4i", + "return_type": "Vector4i" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "min_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "max_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "sign", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4134919947 + }, + { + "name": "abs", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4134919947 + }, + { + "name": "clamp", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3046490913, + "arguments": [ + { + "name": "min", + "type": "Vector4i" + }, + { + "name": "max", + "type": "Vector4i" + } + ] + }, + { + "name": "snapped", + "return_type": "Vector4i", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1181693102, + "arguments": [ + { + "name": "step", + "type": "Vector4i" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Vector4i" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Vector4" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x", + "type": "int" + }, + { + "name": "y", + "type": "int" + }, + { + "name": "z", + "type": "int" + }, + { + "name": "w", + "type": "int" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Plane", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "d", + "type": "float" + }, + { + "name": "normal", + "type": "Vector3" + } + ], + "constants": [ + { + "name": "PLANE_YZ", + "type": "Plane", + "value": "Plane(1, 0, 0, 0)" + }, + { + "name": "PLANE_XZ", + "type": "Plane", + "value": "Plane(0, 1, 0, 0)" + }, + { + "name": "PLANE_XY", + "type": "Plane", + "value": "Plane(0, 0, 1, 0)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Plane" + }, + { + "name": "unary+", + "return_type": "Plane" + }, + { + "name": "==", + "right_type": "Plane", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Plane", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform3D", + "return_type": "Plane" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "normalized", + "return_type": "Plane", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1051796340 + }, + { + "name": "get_center", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1150170233, + "arguments": [ + { + "name": "to_plane", + "type": "Plane" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_point_over", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1749054343, + "arguments": [ + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "distance_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "has_point", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1258189072, + "arguments": [ + { + "name": "point", + "type": "Vector3" + }, + { + "name": "tolerance", + "type": "float", + "default_value": "1e-05" + } + ] + }, + { + "name": "project", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "intersect_3", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2012052692, + "arguments": [ + { + "name": "b", + "type": "Plane" + }, + { + "name": "c", + "type": "Plane" + } + ] + }, + { + "name": "intersects_ray", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2048133369, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "dir", + "type": "Vector3" + } + ] + }, + { + "name": "intersects_segment", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2048133369, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Plane" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "normal", + "type": "Vector3" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "normal", + "type": "Vector3" + }, + { + "name": "d", + "type": "float" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "normal", + "type": "Vector3" + }, + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "index": 5, + "arguments": [ + { + "name": "point1", + "type": "Vector3" + }, + { + "name": "point2", + "type": "Vector3" + }, + { + "name": "point3", + "type": "Vector3" + } + ] + }, + { + "index": 6, + "arguments": [ + { + "name": "a", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "c", + "type": "float" + }, + { + "name": "d", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Quaternion", + "indexing_return_type": "float", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ], + "constants": [ + { + "name": "IDENTITY", + "type": "Quaternion", + "value": "Quaternion(0, 0, 0, 1)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Quaternion" + }, + { + "name": "unary+", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Quaternion" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Quaternion" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "==", + "right_type": "Quaternion", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Quaternion", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Quaternion", + "return_type": "Quaternion" + }, + { + "name": "-", + "right_type": "Quaternion", + "return_type": "Quaternion" + }, + { + "name": "*", + "right_type": "Quaternion", + "return_type": "Quaternion" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "length", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "length_squared", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "normalized", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4274879941 + }, + { + "name": "is_normalized", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682156903, + "arguments": [ + { + "name": "to", + "type": "Quaternion" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "inverse", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4274879941 + }, + { + "name": "log", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4274879941 + }, + { + "name": "exp", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4274879941 + }, + { + "name": "angle_to", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3244682419, + "arguments": [ + { + "name": "to", + "type": "Quaternion" + } + ] + }, + { + "name": "dot", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3244682419, + "arguments": [ + { + "name": "with", + "type": "Quaternion" + } + ] + }, + { + "name": "slerp", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1773590316, + "arguments": [ + { + "name": "to", + "type": "Quaternion" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "slerpni", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1773590316, + "arguments": [ + { + "name": "to", + "type": "Quaternion" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "spherical_cubic_interpolate", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2150967576, + "arguments": [ + { + "name": "b", + "type": "Quaternion" + }, + { + "name": "pre_a", + "type": "Quaternion" + }, + { + "name": "post_b", + "type": "Quaternion" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "spherical_cubic_interpolate_in_time", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1436023539, + "arguments": [ + { + "name": "b", + "type": "Quaternion" + }, + { + "name": "pre_a", + "type": "Quaternion" + }, + { + "name": "post_b", + "type": "Quaternion" + }, + { + "name": "weight", + "type": "float" + }, + { + "name": "b_t", + "type": "float" + }, + { + "name": "pre_a_t", + "type": "float" + }, + { + "name": "post_b_t", + "type": "float" + } + ] + }, + { + "name": "get_euler", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1394941017, + "arguments": [ + { + "name": "order", + "type": "int", + "default_value": "2" + } + ] + }, + { + "name": "from_euler", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 4053467903, + "arguments": [ + { + "name": "euler", + "type": "Vector3" + } + ] + }, + { + "name": "get_axis", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "get_angle", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Quaternion" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Basis" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "arc_from", + "type": "Vector3" + }, + { + "name": "arc_to", + "type": "Vector3" + } + ] + }, + { + "index": 5, + "arguments": [ + { + "name": "x", + "type": "float" + }, + { + "name": "y", + "type": "float" + }, + { + "name": "z", + "type": "float" + }, + { + "name": "w", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "AABB", + "is_keyed": false, + "members": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "size", + "type": "Vector3" + }, + { + "name": "end", + "type": "Vector3" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "AABB", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "AABB", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform3D", + "return_type": "AABB" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "abs", + "return_type": "AABB", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1576868580 + }, + { + "name": "get_center", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "get_volume", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "has_volume", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "has_surface", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "has_point", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1749054343, + "arguments": [ + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 299946684, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "intersects", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 299946684, + "arguments": [ + { + "name": "with", + "type": "AABB" + } + ] + }, + { + "name": "encloses", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 299946684, + "arguments": [ + { + "name": "with", + "type": "AABB" + } + ] + }, + { + "name": "intersects_plane", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1150170233, + "arguments": [ + { + "name": "plane", + "type": "Plane" + } + ] + }, + { + "name": "intersection", + "return_type": "AABB", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1271470306, + "arguments": [ + { + "name": "with", + "type": "AABB" + } + ] + }, + { + "name": "merge", + "return_type": "AABB", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1271470306, + "arguments": [ + { + "name": "with", + "type": "AABB" + } + ] + }, + { + "name": "expand", + "return_type": "AABB", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2851643018, + "arguments": [ + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "grow", + "return_type": "AABB", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 239217291, + "arguments": [ + { + "name": "by", + "type": "float" + } + ] + }, + { + "name": "get_support", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2923479887, + "arguments": [ + { + "name": "dir", + "type": "Vector3" + } + ] + }, + { + "name": "get_longest_axis", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "get_longest_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_longest_axis_size", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_shortest_axis", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "get_shortest_axis_index", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_shortest_axis_size", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_endpoint", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1394941017, + "arguments": [ + { + "name": "idx", + "type": "int" + } + ] + }, + { + "name": "intersects_segment", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2048133369, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "intersects_ray", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2048133369, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "dir", + "type": "Vector3" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "AABB" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "size", + "type": "Vector3" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Basis", + "indexing_return_type": "Vector3", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "Vector3" + }, + { + "name": "y", + "type": "Vector3" + }, + { + "name": "z", + "type": "Vector3" + } + ], + "constants": [ + { + "name": "IDENTITY", + "type": "Basis", + "value": "Basis(1, 0, 0, 0, 1, 0, 0, 0, 1)" + }, + { + "name": "FLIP_X", + "type": "Basis", + "value": "Basis(-1, 0, 0, 0, 1, 0, 0, 0, 1)" + }, + { + "name": "FLIP_Y", + "type": "Basis", + "value": "Basis(1, 0, 0, 0, -1, 0, 0, 0, 1)" + }, + { + "name": "FLIP_Z", + "type": "Basis", + "value": "Basis(1, 0, 0, 0, 1, 0, 0, 0, -1)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Basis" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Basis" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "==", + "right_type": "Basis", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Basis", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Basis", + "return_type": "Basis" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "inverse", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 594669093 + }, + { + "name": "transposed", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 594669093 + }, + { + "name": "orthonormalized", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 594669093 + }, + { + "name": "determinant", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "rotated", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1998708965, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "scaled", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3934786792, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_scale", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1776574132 + }, + { + "name": "get_euler", + "return_type": "Vector3", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1394941017, + "arguments": [ + { + "name": "order", + "type": "int", + "default_value": "2" + } + ] + }, + { + "name": "tdotx", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "tdoty", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "tdotz", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1047977935, + "arguments": [ + { + "name": "with", + "type": "Vector3" + } + ] + }, + { + "name": "slerp", + "return_type": "Basis", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3118673011, + "arguments": [ + { + "name": "to", + "type": "Basis" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3165333982, + "arguments": [ + { + "name": "b", + "type": "Basis" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_rotation_quaternion", + "return_type": "Quaternion", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4274879941 + }, + { + "name": "looking_at", + "return_type": "Basis", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 419916660, + "arguments": [ + { + "name": "target", + "type": "Vector3" + }, + { + "name": "up", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "from_scale", + "return_type": "Basis", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3703240166, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "from_euler", + "return_type": "Basis", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2802321791, + "arguments": [ + { + "name": "euler", + "type": "Vector3" + }, + { + "name": "order", + "type": "int", + "default_value": "2" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Basis" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Quaternion" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "x_axis", + "type": "Vector3" + }, + { + "name": "y_axis", + "type": "Vector3" + }, + { + "name": "z_axis", + "type": "Vector3" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Transform3D", + "is_keyed": false, + "members": [ + { + "name": "basis", + "type": "Basis" + }, + { + "name": "origin", + "type": "Vector3" + } + ], + "constants": [ + { + "name": "IDENTITY", + "type": "Transform3D", + "value": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "FLIP_X", + "type": "Transform3D", + "value": "Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "FLIP_Y", + "type": "Transform3D", + "value": "Transform3D(1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "FLIP_Z", + "type": "Transform3D", + "value": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Transform3D" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Transform3D" + }, + { + "name": "*", + "right_type": "Vector3", + "return_type": "Vector3" + }, + { + "name": "*", + "right_type": "Plane", + "return_type": "Plane" + }, + { + "name": "*", + "right_type": "AABB", + "return_type": "AABB" + }, + { + "name": "==", + "right_type": "Transform3D", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Transform3D", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform3D", + "return_type": "Transform3D" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "PackedVector3Array", + "return_type": "PackedVector3Array" + } + ], + "methods": [ + { + "name": "inverse", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3816817146 + }, + { + "name": "affine_inverse", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3816817146 + }, + { + "name": "orthonormalized", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3816817146 + }, + { + "name": "rotated", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1563203923, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "rotated_local", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1563203923, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float" + } + ] + }, + { + "name": "scaled", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1405596198, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "scaled_local", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1405596198, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "translated", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1405596198, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "translated_local", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1405596198, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "looking_at", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 806929180, + "arguments": [ + { + "name": "target", + "type": "Vector3" + }, + { + "name": "up", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "interpolate_with", + "return_type": "Transform3D", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1786453358, + "arguments": [ + { + "name": "xform", + "type": "Transform3D" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 696001652, + "arguments": [ + { + "name": "xform", + "type": "Transform3D" + } + ] + }, + { + "name": "is_finite", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Transform3D" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "basis", + "type": "Basis" + }, + { + "name": "origin", + "type": "Vector3" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x_axis", + "type": "Vector3" + }, + { + "name": "y_axis", + "type": "Vector3" + }, + { + "name": "z_axis", + "type": "Vector3" + }, + { + "name": "origin", + "type": "Vector3" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "from", + "type": "Projection" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Projection", + "indexing_return_type": "Vector4", + "is_keyed": false, + "members": [ + { + "name": "x", + "type": "Vector4" + }, + { + "name": "y", + "type": "Vector4" + }, + { + "name": "z", + "type": "Vector4" + }, + { + "name": "w", + "type": "Vector4" + } + ], + "constants": [ + { + "name": "PLANE_NEAR", + "type": "int", + "value": "0" + }, + { + "name": "PLANE_FAR", + "type": "int", + "value": "1" + }, + { + "name": "PLANE_LEFT", + "type": "int", + "value": "2" + }, + { + "name": "PLANE_TOP", + "type": "int", + "value": "3" + }, + { + "name": "PLANE_RIGHT", + "type": "int", + "value": "4" + }, + { + "name": "PLANE_BOTTOM", + "type": "int", + "value": "5" + }, + { + "name": "IDENTITY", + "type": "Projection", + "value": "Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)" + }, + { + "name": "ZERO", + "type": "Projection", + "value": "Projection(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)" + } + ], + "enums": [ + { + "name": "Planes", + "values": [ + { + "name": "PLANE_NEAR", + "value": 0 + }, + { + "name": "PLANE_FAR", + "value": 1 + }, + { + "name": "PLANE_LEFT", + "value": 2 + }, + { + "name": "PLANE_TOP", + "value": 3 + }, + { + "name": "PLANE_RIGHT", + "value": 4 + }, + { + "name": "PLANE_BOTTOM", + "value": 5 + } + ] + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Vector4", + "return_type": "Vector4" + }, + { + "name": "==", + "right_type": "Projection", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Projection", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Projection", + "return_type": "Projection" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "create_depth_correction", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1228516048, + "arguments": [ + { + "name": "flip_y", + "type": "bool" + } + ] + }, + { + "name": "create_light_atlas_rect", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2654950662, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "create_perspective", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 390915442, + "arguments": [ + { + "name": "fovy", + "type": "float" + }, + { + "name": "aspect", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + }, + { + "name": "flip_fov", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_perspective_hmd", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2857674800, + "arguments": [ + { + "name": "fovy", + "type": "float" + }, + { + "name": "aspect", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + }, + { + "name": "flip_fov", + "type": "bool" + }, + { + "name": "eye", + "type": "int" + }, + { + "name": "intraocular_dist", + "type": "float" + }, + { + "name": "convergence_dist", + "type": "float" + } + ] + }, + { + "name": "create_for_hmd", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 4184144994, + "arguments": [ + { + "name": "eye", + "type": "int" + }, + { + "name": "aspect", + "type": "float" + }, + { + "name": "intraocular_dist", + "type": "float" + }, + { + "name": "display_width", + "type": "float" + }, + { + "name": "display_to_lens", + "type": "float" + }, + { + "name": "oversample", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + } + ] + }, + { + "name": "create_orthogonal", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3707929169, + "arguments": [ + { + "name": "left", + "type": "float" + }, + { + "name": "right", + "type": "float" + }, + { + "name": "bottom", + "type": "float" + }, + { + "name": "top", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + } + ] + }, + { + "name": "create_orthogonal_aspect", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 390915442, + "arguments": [ + { + "name": "size", + "type": "float" + }, + { + "name": "aspect", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + }, + { + "name": "flip_fov", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_frustum", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3707929169, + "arguments": [ + { + "name": "left", + "type": "float" + }, + { + "name": "right", + "type": "float" + }, + { + "name": "bottom", + "type": "float" + }, + { + "name": "top", + "type": "float" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + } + ] + }, + { + "name": "create_frustum_aspect", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1535076251, + "arguments": [ + { + "name": "size", + "type": "float" + }, + { + "name": "aspect", + "type": "float" + }, + { + "name": "offset", + "type": "Vector2" + }, + { + "name": "z_near", + "type": "float" + }, + { + "name": "z_far", + "type": "float" + }, + { + "name": "flip_fov", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_fit_aabb", + "return_type": "Projection", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2264694907, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "determinant", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "perspective_znear_adjusted", + "return_type": "Projection", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3584785443, + "arguments": [ + { + "name": "new_znear", + "type": "float" + } + ] + }, + { + "name": "get_projection_plane", + "return_type": "Plane", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1551184160, + "arguments": [ + { + "name": "plane", + "type": "int" + } + ] + }, + { + "name": "flipped_y", + "return_type": "Projection", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4212530932 + }, + { + "name": "jitter_offseted", + "return_type": "Projection", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2448438599, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_fovy", + "return_type": "float", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3514207532, + "arguments": [ + { + "name": "fovx", + "type": "float" + }, + { + "name": "aspect", + "type": "float" + } + ] + }, + { + "name": "get_z_far", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_z_near", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_aspect", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "get_fov", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "is_orthogonal", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_viewport_half_extents", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "get_far_plane_half_extents", + "return_type": "Vector2", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2428350749 + }, + { + "name": "inverse", + "return_type": "Projection", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4212530932 + }, + { + "name": "get_pixels_per_meter", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "for_pixel_width", + "type": "int" + } + ] + }, + { + "name": "get_lod_multiplier", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Projection" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Transform3D" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "x_axis", + "type": "Vector4" + }, + { + "name": "y_axis", + "type": "Vector4" + }, + { + "name": "z_axis", + "type": "Vector4" + }, + { + "name": "w_axis", + "type": "Vector4" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Color", + "indexing_return_type": "float", + "is_keyed": false, + "members": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + }, + { + "name": "r8", + "type": "int" + }, + { + "name": "g8", + "type": "int" + }, + { + "name": "b8", + "type": "int" + }, + { + "name": "a8", + "type": "int" + }, + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + } + ], + "constants": [ + { + "name": "ALICE_BLUE", + "type": "Color", + "value": "Color(0.941176, 0.972549, 1, 1)" + }, + { + "name": "ANTIQUE_WHITE", + "type": "Color", + "value": "Color(0.980392, 0.921569, 0.843137, 1)" + }, + { + "name": "AQUA", + "type": "Color", + "value": "Color(0, 1, 1, 1)" + }, + { + "name": "AQUAMARINE", + "type": "Color", + "value": "Color(0.498039, 1, 0.831373, 1)" + }, + { + "name": "AZURE", + "type": "Color", + "value": "Color(0.941176, 1, 1, 1)" + }, + { + "name": "BEIGE", + "type": "Color", + "value": "Color(0.960784, 0.960784, 0.862745, 1)" + }, + { + "name": "BISQUE", + "type": "Color", + "value": "Color(1, 0.894118, 0.768627, 1)" + }, + { + "name": "BLACK", + "type": "Color", + "value": "Color(0, 0, 0, 1)" + }, + { + "name": "BLANCHED_ALMOND", + "type": "Color", + "value": "Color(1, 0.921569, 0.803922, 1)" + }, + { + "name": "BLUE", + "type": "Color", + "value": "Color(0, 0, 1, 1)" + }, + { + "name": "BLUE_VIOLET", + "type": "Color", + "value": "Color(0.541176, 0.168627, 0.886275, 1)" + }, + { + "name": "BROWN", + "type": "Color", + "value": "Color(0.647059, 0.164706, 0.164706, 1)" + }, + { + "name": "BURLYWOOD", + "type": "Color", + "value": "Color(0.870588, 0.721569, 0.529412, 1)" + }, + { + "name": "CADET_BLUE", + "type": "Color", + "value": "Color(0.372549, 0.619608, 0.627451, 1)" + }, + { + "name": "CHARTREUSE", + "type": "Color", + "value": "Color(0.498039, 1, 0, 1)" + }, + { + "name": "CHOCOLATE", + "type": "Color", + "value": "Color(0.823529, 0.411765, 0.117647, 1)" + }, + { + "name": "CORAL", + "type": "Color", + "value": "Color(1, 0.498039, 0.313726, 1)" + }, + { + "name": "CORNFLOWER_BLUE", + "type": "Color", + "value": "Color(0.392157, 0.584314, 0.929412, 1)" + }, + { + "name": "CORNSILK", + "type": "Color", + "value": "Color(1, 0.972549, 0.862745, 1)" + }, + { + "name": "CRIMSON", + "type": "Color", + "value": "Color(0.862745, 0.0784314, 0.235294, 1)" + }, + { + "name": "CYAN", + "type": "Color", + "value": "Color(0, 1, 1, 1)" + }, + { + "name": "DARK_BLUE", + "type": "Color", + "value": "Color(0, 0, 0.545098, 1)" + }, + { + "name": "DARK_CYAN", + "type": "Color", + "value": "Color(0, 0.545098, 0.545098, 1)" + }, + { + "name": "DARK_GOLDENROD", + "type": "Color", + "value": "Color(0.721569, 0.52549, 0.0431373, 1)" + }, + { + "name": "DARK_GRAY", + "type": "Color", + "value": "Color(0.662745, 0.662745, 0.662745, 1)" + }, + { + "name": "DARK_GREEN", + "type": "Color", + "value": "Color(0, 0.392157, 0, 1)" + }, + { + "name": "DARK_KHAKI", + "type": "Color", + "value": "Color(0.741176, 0.717647, 0.419608, 1)" + }, + { + "name": "DARK_MAGENTA", + "type": "Color", + "value": "Color(0.545098, 0, 0.545098, 1)" + }, + { + "name": "DARK_OLIVE_GREEN", + "type": "Color", + "value": "Color(0.333333, 0.419608, 0.184314, 1)" + }, + { + "name": "DARK_ORANGE", + "type": "Color", + "value": "Color(1, 0.54902, 0, 1)" + }, + { + "name": "DARK_ORCHID", + "type": "Color", + "value": "Color(0.6, 0.196078, 0.8, 1)" + }, + { + "name": "DARK_RED", + "type": "Color", + "value": "Color(0.545098, 0, 0, 1)" + }, + { + "name": "DARK_SALMON", + "type": "Color", + "value": "Color(0.913725, 0.588235, 0.478431, 1)" + }, + { + "name": "DARK_SEA_GREEN", + "type": "Color", + "value": "Color(0.560784, 0.737255, 0.560784, 1)" + }, + { + "name": "DARK_SLATE_BLUE", + "type": "Color", + "value": "Color(0.282353, 0.239216, 0.545098, 1)" + }, + { + "name": "DARK_SLATE_GRAY", + "type": "Color", + "value": "Color(0.184314, 0.309804, 0.309804, 1)" + }, + { + "name": "DARK_TURQUOISE", + "type": "Color", + "value": "Color(0, 0.807843, 0.819608, 1)" + }, + { + "name": "DARK_VIOLET", + "type": "Color", + "value": "Color(0.580392, 0, 0.827451, 1)" + }, + { + "name": "DEEP_PINK", + "type": "Color", + "value": "Color(1, 0.0784314, 0.576471, 1)" + }, + { + "name": "DEEP_SKY_BLUE", + "type": "Color", + "value": "Color(0, 0.74902, 1, 1)" + }, + { + "name": "DIM_GRAY", + "type": "Color", + "value": "Color(0.411765, 0.411765, 0.411765, 1)" + }, + { + "name": "DODGER_BLUE", + "type": "Color", + "value": "Color(0.117647, 0.564706, 1, 1)" + }, + { + "name": "FIREBRICK", + "type": "Color", + "value": "Color(0.698039, 0.133333, 0.133333, 1)" + }, + { + "name": "FLORAL_WHITE", + "type": "Color", + "value": "Color(1, 0.980392, 0.941176, 1)" + }, + { + "name": "FOREST_GREEN", + "type": "Color", + "value": "Color(0.133333, 0.545098, 0.133333, 1)" + }, + { + "name": "FUCHSIA", + "type": "Color", + "value": "Color(1, 0, 1, 1)" + }, + { + "name": "GAINSBORO", + "type": "Color", + "value": "Color(0.862745, 0.862745, 0.862745, 1)" + }, + { + "name": "GHOST_WHITE", + "type": "Color", + "value": "Color(0.972549, 0.972549, 1, 1)" + }, + { + "name": "GOLD", + "type": "Color", + "value": "Color(1, 0.843137, 0, 1)" + }, + { + "name": "GOLDENROD", + "type": "Color", + "value": "Color(0.854902, 0.647059, 0.12549, 1)" + }, + { + "name": "GRAY", + "type": "Color", + "value": "Color(0.745098, 0.745098, 0.745098, 1)" + }, + { + "name": "GREEN", + "type": "Color", + "value": "Color(0, 1, 0, 1)" + }, + { + "name": "GREEN_YELLOW", + "type": "Color", + "value": "Color(0.678431, 1, 0.184314, 1)" + }, + { + "name": "HONEYDEW", + "type": "Color", + "value": "Color(0.941176, 1, 0.941176, 1)" + }, + { + "name": "HOT_PINK", + "type": "Color", + "value": "Color(1, 0.411765, 0.705882, 1)" + }, + { + "name": "INDIAN_RED", + "type": "Color", + "value": "Color(0.803922, 0.360784, 0.360784, 1)" + }, + { + "name": "INDIGO", + "type": "Color", + "value": "Color(0.294118, 0, 0.509804, 1)" + }, + { + "name": "IVORY", + "type": "Color", + "value": "Color(1, 1, 0.941176, 1)" + }, + { + "name": "KHAKI", + "type": "Color", + "value": "Color(0.941176, 0.901961, 0.54902, 1)" + }, + { + "name": "LAVENDER", + "type": "Color", + "value": "Color(0.901961, 0.901961, 0.980392, 1)" + }, + { + "name": "LAVENDER_BLUSH", + "type": "Color", + "value": "Color(1, 0.941176, 0.960784, 1)" + }, + { + "name": "LAWN_GREEN", + "type": "Color", + "value": "Color(0.486275, 0.988235, 0, 1)" + }, + { + "name": "LEMON_CHIFFON", + "type": "Color", + "value": "Color(1, 0.980392, 0.803922, 1)" + }, + { + "name": "LIGHT_BLUE", + "type": "Color", + "value": "Color(0.678431, 0.847059, 0.901961, 1)" + }, + { + "name": "LIGHT_CORAL", + "type": "Color", + "value": "Color(0.941176, 0.501961, 0.501961, 1)" + }, + { + "name": "LIGHT_CYAN", + "type": "Color", + "value": "Color(0.878431, 1, 1, 1)" + }, + { + "name": "LIGHT_GOLDENROD", + "type": "Color", + "value": "Color(0.980392, 0.980392, 0.823529, 1)" + }, + { + "name": "LIGHT_GRAY", + "type": "Color", + "value": "Color(0.827451, 0.827451, 0.827451, 1)" + }, + { + "name": "LIGHT_GREEN", + "type": "Color", + "value": "Color(0.564706, 0.933333, 0.564706, 1)" + }, + { + "name": "LIGHT_PINK", + "type": "Color", + "value": "Color(1, 0.713726, 0.756863, 1)" + }, + { + "name": "LIGHT_SALMON", + "type": "Color", + "value": "Color(1, 0.627451, 0.478431, 1)" + }, + { + "name": "LIGHT_SEA_GREEN", + "type": "Color", + "value": "Color(0.12549, 0.698039, 0.666667, 1)" + }, + { + "name": "LIGHT_SKY_BLUE", + "type": "Color", + "value": "Color(0.529412, 0.807843, 0.980392, 1)" + }, + { + "name": "LIGHT_SLATE_GRAY", + "type": "Color", + "value": "Color(0.466667, 0.533333, 0.6, 1)" + }, + { + "name": "LIGHT_STEEL_BLUE", + "type": "Color", + "value": "Color(0.690196, 0.768627, 0.870588, 1)" + }, + { + "name": "LIGHT_YELLOW", + "type": "Color", + "value": "Color(1, 1, 0.878431, 1)" + }, + { + "name": "LIME", + "type": "Color", + "value": "Color(0, 1, 0, 1)" + }, + { + "name": "LIME_GREEN", + "type": "Color", + "value": "Color(0.196078, 0.803922, 0.196078, 1)" + }, + { + "name": "LINEN", + "type": "Color", + "value": "Color(0.980392, 0.941176, 0.901961, 1)" + }, + { + "name": "MAGENTA", + "type": "Color", + "value": "Color(1, 0, 1, 1)" + }, + { + "name": "MAROON", + "type": "Color", + "value": "Color(0.690196, 0.188235, 0.376471, 1)" + }, + { + "name": "MEDIUM_AQUAMARINE", + "type": "Color", + "value": "Color(0.4, 0.803922, 0.666667, 1)" + }, + { + "name": "MEDIUM_BLUE", + "type": "Color", + "value": "Color(0, 0, 0.803922, 1)" + }, + { + "name": "MEDIUM_ORCHID", + "type": "Color", + "value": "Color(0.729412, 0.333333, 0.827451, 1)" + }, + { + "name": "MEDIUM_PURPLE", + "type": "Color", + "value": "Color(0.576471, 0.439216, 0.858824, 1)" + }, + { + "name": "MEDIUM_SEA_GREEN", + "type": "Color", + "value": "Color(0.235294, 0.701961, 0.443137, 1)" + }, + { + "name": "MEDIUM_SLATE_BLUE", + "type": "Color", + "value": "Color(0.482353, 0.407843, 0.933333, 1)" + }, + { + "name": "MEDIUM_SPRING_GREEN", + "type": "Color", + "value": "Color(0, 0.980392, 0.603922, 1)" + }, + { + "name": "MEDIUM_TURQUOISE", + "type": "Color", + "value": "Color(0.282353, 0.819608, 0.8, 1)" + }, + { + "name": "MEDIUM_VIOLET_RED", + "type": "Color", + "value": "Color(0.780392, 0.0823529, 0.521569, 1)" + }, + { + "name": "MIDNIGHT_BLUE", + "type": "Color", + "value": "Color(0.0980392, 0.0980392, 0.439216, 1)" + }, + { + "name": "MINT_CREAM", + "type": "Color", + "value": "Color(0.960784, 1, 0.980392, 1)" + }, + { + "name": "MISTY_ROSE", + "type": "Color", + "value": "Color(1, 0.894118, 0.882353, 1)" + }, + { + "name": "MOCCASIN", + "type": "Color", + "value": "Color(1, 0.894118, 0.709804, 1)" + }, + { + "name": "NAVAJO_WHITE", + "type": "Color", + "value": "Color(1, 0.870588, 0.678431, 1)" + }, + { + "name": "NAVY_BLUE", + "type": "Color", + "value": "Color(0, 0, 0.501961, 1)" + }, + { + "name": "OLD_LACE", + "type": "Color", + "value": "Color(0.992157, 0.960784, 0.901961, 1)" + }, + { + "name": "OLIVE", + "type": "Color", + "value": "Color(0.501961, 0.501961, 0, 1)" + }, + { + "name": "OLIVE_DRAB", + "type": "Color", + "value": "Color(0.419608, 0.556863, 0.137255, 1)" + }, + { + "name": "ORANGE", + "type": "Color", + "value": "Color(1, 0.647059, 0, 1)" + }, + { + "name": "ORANGE_RED", + "type": "Color", + "value": "Color(1, 0.270588, 0, 1)" + }, + { + "name": "ORCHID", + "type": "Color", + "value": "Color(0.854902, 0.439216, 0.839216, 1)" + }, + { + "name": "PALE_GOLDENROD", + "type": "Color", + "value": "Color(0.933333, 0.909804, 0.666667, 1)" + }, + { + "name": "PALE_GREEN", + "type": "Color", + "value": "Color(0.596078, 0.984314, 0.596078, 1)" + }, + { + "name": "PALE_TURQUOISE", + "type": "Color", + "value": "Color(0.686275, 0.933333, 0.933333, 1)" + }, + { + "name": "PALE_VIOLET_RED", + "type": "Color", + "value": "Color(0.858824, 0.439216, 0.576471, 1)" + }, + { + "name": "PAPAYA_WHIP", + "type": "Color", + "value": "Color(1, 0.937255, 0.835294, 1)" + }, + { + "name": "PEACH_PUFF", + "type": "Color", + "value": "Color(1, 0.854902, 0.72549, 1)" + }, + { + "name": "PERU", + "type": "Color", + "value": "Color(0.803922, 0.521569, 0.247059, 1)" + }, + { + "name": "PINK", + "type": "Color", + "value": "Color(1, 0.752941, 0.796078, 1)" + }, + { + "name": "PLUM", + "type": "Color", + "value": "Color(0.866667, 0.627451, 0.866667, 1)" + }, + { + "name": "POWDER_BLUE", + "type": "Color", + "value": "Color(0.690196, 0.878431, 0.901961, 1)" + }, + { + "name": "PURPLE", + "type": "Color", + "value": "Color(0.627451, 0.12549, 0.941176, 1)" + }, + { + "name": "REBECCA_PURPLE", + "type": "Color", + "value": "Color(0.4, 0.2, 0.6, 1)" + }, + { + "name": "RED", + "type": "Color", + "value": "Color(1, 0, 0, 1)" + }, + { + "name": "ROSY_BROWN", + "type": "Color", + "value": "Color(0.737255, 0.560784, 0.560784, 1)" + }, + { + "name": "ROYAL_BLUE", + "type": "Color", + "value": "Color(0.254902, 0.411765, 0.882353, 1)" + }, + { + "name": "SADDLE_BROWN", + "type": "Color", + "value": "Color(0.545098, 0.270588, 0.0745098, 1)" + }, + { + "name": "SALMON", + "type": "Color", + "value": "Color(0.980392, 0.501961, 0.447059, 1)" + }, + { + "name": "SANDY_BROWN", + "type": "Color", + "value": "Color(0.956863, 0.643137, 0.376471, 1)" + }, + { + "name": "SEA_GREEN", + "type": "Color", + "value": "Color(0.180392, 0.545098, 0.341176, 1)" + }, + { + "name": "SEASHELL", + "type": "Color", + "value": "Color(1, 0.960784, 0.933333, 1)" + }, + { + "name": "SIENNA", + "type": "Color", + "value": "Color(0.627451, 0.321569, 0.176471, 1)" + }, + { + "name": "SILVER", + "type": "Color", + "value": "Color(0.752941, 0.752941, 0.752941, 1)" + }, + { + "name": "SKY_BLUE", + "type": "Color", + "value": "Color(0.529412, 0.807843, 0.921569, 1)" + }, + { + "name": "SLATE_BLUE", + "type": "Color", + "value": "Color(0.415686, 0.352941, 0.803922, 1)" + }, + { + "name": "SLATE_GRAY", + "type": "Color", + "value": "Color(0.439216, 0.501961, 0.564706, 1)" + }, + { + "name": "SNOW", + "type": "Color", + "value": "Color(1, 0.980392, 0.980392, 1)" + }, + { + "name": "SPRING_GREEN", + "type": "Color", + "value": "Color(0, 1, 0.498039, 1)" + }, + { + "name": "STEEL_BLUE", + "type": "Color", + "value": "Color(0.27451, 0.509804, 0.705882, 1)" + }, + { + "name": "TAN", + "type": "Color", + "value": "Color(0.823529, 0.705882, 0.54902, 1)" + }, + { + "name": "TEAL", + "type": "Color", + "value": "Color(0, 0.501961, 0.501961, 1)" + }, + { + "name": "THISTLE", + "type": "Color", + "value": "Color(0.847059, 0.74902, 0.847059, 1)" + }, + { + "name": "TOMATO", + "type": "Color", + "value": "Color(1, 0.388235, 0.278431, 1)" + }, + { + "name": "TRANSPARENT", + "type": "Color", + "value": "Color(1, 1, 1, 0)" + }, + { + "name": "TURQUOISE", + "type": "Color", + "value": "Color(0.25098, 0.878431, 0.815686, 1)" + }, + { + "name": "VIOLET", + "type": "Color", + "value": "Color(0.933333, 0.509804, 0.933333, 1)" + }, + { + "name": "WEB_GRAY", + "type": "Color", + "value": "Color(0.501961, 0.501961, 0.501961, 1)" + }, + { + "name": "WEB_GREEN", + "type": "Color", + "value": "Color(0, 0.501961, 0, 1)" + }, + { + "name": "WEB_MAROON", + "type": "Color", + "value": "Color(0.501961, 0, 0, 1)" + }, + { + "name": "WEB_PURPLE", + "type": "Color", + "value": "Color(0.501961, 0, 0.501961, 1)" + }, + { + "name": "WHEAT", + "type": "Color", + "value": "Color(0.960784, 0.870588, 0.701961, 1)" + }, + { + "name": "WHITE", + "type": "Color", + "value": "Color(1, 1, 1, 1)" + }, + { + "name": "WHITE_SMOKE", + "type": "Color", + "value": "Color(0.960784, 0.960784, 0.960784, 1)" + }, + { + "name": "YELLOW", + "type": "Color", + "value": "Color(1, 1, 0, 1)" + }, + { + "name": "YELLOW_GREEN", + "type": "Color", + "value": "Color(0.603922, 0.803922, 0.196078, 1)" + } + ], + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "unary-", + "return_type": "Color" + }, + { + "name": "unary+", + "return_type": "Color" + }, + { + "name": "*", + "right_type": "int", + "return_type": "Color" + }, + { + "name": "/", + "right_type": "int", + "return_type": "Color" + }, + { + "name": "*", + "right_type": "float", + "return_type": "Color" + }, + { + "name": "/", + "right_type": "float", + "return_type": "Color" + }, + { + "name": "==", + "right_type": "Color", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Color", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "-", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "*", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "/", + "right_type": "Color", + "return_type": "Color" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "PackedColorArray", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "to_argb32", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_abgr32", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_rgba32", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_argb64", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_abgr64", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_rgba64", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_html", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3429816538, + "arguments": [ + { + "name": "with_alpha", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "clamp", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 105651410, + "arguments": [ + { + "name": "min", + "type": "Color", + "default_value": "Color(0, 0, 0, 0)" + }, + { + "name": "max", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "inverted", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3334027602 + }, + { + "name": "lerp", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 402949615, + "arguments": [ + { + "name": "to", + "type": "Color" + }, + { + "name": "weight", + "type": "float" + } + ] + }, + { + "name": "lightened", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1466039168, + "arguments": [ + { + "name": "amount", + "type": "float" + } + ] + }, + { + "name": "darkened", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1466039168, + "arguments": [ + { + "name": "amount", + "type": "float" + } + ] + }, + { + "name": "blend", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3803690977, + "arguments": [ + { + "name": "over", + "type": "Color" + } + ] + }, + { + "name": "get_luminance", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "srgb_to_linear", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3334027602 + }, + { + "name": "linear_to_srgb", + "return_type": "Color", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3334027602 + }, + { + "name": "is_equal_approx", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3167426256, + "arguments": [ + { + "name": "to", + "type": "Color" + } + ] + }, + { + "name": "hex", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 351421375, + "arguments": [ + { + "name": "hex", + "type": "int" + } + ] + }, + { + "name": "hex64", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 351421375, + "arguments": [ + { + "name": "hex", + "type": "int" + } + ] + }, + { + "name": "html", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2500054655, + "arguments": [ + { + "name": "rgba", + "type": "String" + } + ] + }, + { + "name": "html_is_valid", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 2942997125, + "arguments": [ + { + "name": "color", + "type": "String" + } + ] + }, + { + "name": "from_string", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 3755044230, + "arguments": [ + { + "name": "str", + "type": "String" + }, + { + "name": "default", + "type": "Color" + } + ] + }, + { + "name": "from_hsv", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1573799446, + "arguments": [ + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "v", + "type": "float" + }, + { + "name": "alpha", + "type": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "from_ok_hsl", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 1573799446, + "arguments": [ + { + "name": "h", + "type": "float" + }, + { + "name": "s", + "type": "float" + }, + { + "name": "l", + "type": "float" + }, + { + "name": "alpha", + "type": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "from_rgbe9995", + "return_type": "Color", + "is_vararg": false, + "is_const": false, + "is_static": true, + "hash": 351421375, + "arguments": [ + { + "name": "rgbe", + "type": "int" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Color" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Color" + }, + { + "name": "alpha", + "type": "float" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "r", + "type": "float" + }, + { + "name": "g", + "type": "float" + }, + { + "name": "b", + "type": "float" + }, + { + "name": "a", + "type": "float" + } + ] + }, + { + "index": 5, + "arguments": [ + { + "name": "code", + "type": "String" + } + ] + }, + { + "index": 6, + "arguments": [ + { + "name": "code", + "type": "String" + }, + { + "name": "alpha", + "type": "float" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "StringName", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Variant", + "return_type": "String" + }, + { + "name": "%", + "right_type": "bool", + "return_type": "String" + }, + { + "name": "%", + "right_type": "int", + "return_type": "String" + }, + { + "name": "%", + "right_type": "float", + "return_type": "String" + }, + { + "name": "==", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "String", + "return_type": "String" + }, + { + "name": "%", + "right_type": "String", + "return_type": "String" + }, + { + "name": "in", + "right_type": "String", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Vector2", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector2i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Rect2", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Rect2i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector3", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector3i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Transform2D", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector4", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Vector4i", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Plane", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Quaternion", + "return_type": "String" + }, + { + "name": "%", + "right_type": "AABB", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Basis", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Transform3D", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Projection", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Color", + "return_type": "String" + }, + { + "name": "==", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "StringName", + "return_type": "String" + }, + { + "name": "%", + "right_type": "StringName", + "return_type": "String" + }, + { + "name": "in", + "right_type": "StringName", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "NodePath", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Object", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Object", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Callable", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Signal", + "return_type": "String" + }, + { + "name": "%", + "right_type": "Dictionary", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "Array", + "return_type": "String" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "PackedByteArray", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedInt32Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedInt64Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedFloat32Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedFloat64Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedStringArray", + "return_type": "String" + }, + { + "name": "in", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "%", + "right_type": "PackedVector2Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedVector3Array", + "return_type": "String" + }, + { + "name": "%", + "right_type": "PackedColorArray", + "return_type": "String" + } + ], + "methods": [ + { + "name": "casecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "nocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "naturalnocasecmp_to", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "length", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "substr", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 787537301, + "arguments": [ + { + "name": "from", + "type": "int" + }, + { + "name": "len", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "get_slice", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3535100402, + "arguments": [ + { + "name": "delimiter", + "type": "String" + }, + { + "name": "slice", + "type": "int" + } + ] + }, + { + "name": "get_slicec", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 787537301, + "arguments": [ + { + "name": "delimiter", + "type": "int" + }, + { + "name": "slice", + "type": "int" + } + ] + }, + { + "name": "get_slice_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "delimiter", + "type": "String" + } + ] + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2343087891, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + }, + { + "name": "to", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "countn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2343087891, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + }, + { + "name": "to", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "findn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "rfindn", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "match", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "expr", + "type": "String" + } + ] + }, + { + "name": "matchn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "expr", + "type": "String" + } + ] + }, + { + "name": "begins_with", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "ends_with", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "is_subsequence_of", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "is_subsequence_ofn", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "bigrams", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 747180633 + }, + { + "name": "similarity", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2697460964, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "format", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3212199029, + "arguments": [ + { + "name": "values", + "type": "Variant" + }, + { + "name": "placeholder", + "type": "String", + "default_value": "\"{_}\"" + } + ] + }, + { + "name": "replace", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1340436205, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "forwhat", + "type": "String" + } + ] + }, + { + "name": "replacen", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1340436205, + "arguments": [ + { + "name": "what", + "type": "String" + }, + { + "name": "forwhat", + "type": "String" + } + ] + }, + { + "name": "repeat", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "count", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "position", + "type": "int" + }, + { + "name": "what", + "type": "String" + } + ] + }, + { + "name": "capitalize", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_camel_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_pascal_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_snake_case", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "split", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1252735785, + "arguments": [ + { + "name": "delimiter", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + }, + { + "name": "maxsplit", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rsplit", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1252735785, + "arguments": [ + { + "name": "delimiter", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + }, + { + "name": "maxsplit", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "split_floats", + "return_type": "PackedFloat64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2092079095, + "arguments": [ + { + "name": "delimiter", + "type": "String" + }, + { + "name": "allow_empty", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "join", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3595973238, + "arguments": [ + { + "name": "parts", + "type": "PackedStringArray" + } + ] + }, + { + "name": "to_upper", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "to_lower", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "left", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "length", + "type": "int" + } + ] + }, + { + "name": "right", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "length", + "type": "int" + } + ] + }, + { + "name": "strip_edges", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 907855311, + "arguments": [ + { + "name": "left", + "type": "bool", + "default_value": "true" + }, + { + "name": "right", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "strip_escapes", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "lstrip", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "chars", + "type": "String" + } + ] + }, + { + "name": "rstrip", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "chars", + "type": "String" + } + ] + }, + { + "name": "get_extension", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_basename", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "path_join", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "unicode_at", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "at", + "type": "int" + } + ] + }, + { + "name": "indent", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "prefix", + "type": "String" + } + ] + }, + { + "name": "dedent", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "md5_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "sha1_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "sha256_text", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "md5_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sha1_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sha256_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "contains", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "what", + "type": "String" + } + ] + }, + { + "name": "is_absolute_path", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_relative_path", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "simplify_path", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_base_dir", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_file", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "xml_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3429816538, + "arguments": [ + { + "name": "escape_quotes", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "xml_unescape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "uri_encode", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "uri_decode", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "c_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "c_unescape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "json_escape", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "validate_node_name", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "validate_filename", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "is_valid_identifier", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_int", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_float", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_hex_number", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 593672999, + "arguments": [ + { + "name": "with_prefix", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_valid_html_color", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_ip_address", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid_filename", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "to_float", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 466405837 + }, + { + "name": "hex_to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "bin_to_int", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "lpad", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "min_length", + "type": "int" + }, + { + "name": "character", + "type": "String", + "default_value": "\" \"" + } + ] + }, + { + "name": "rpad", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 248737229, + "arguments": [ + { + "name": "min_length", + "type": "int" + }, + { + "name": "character", + "type": "String", + "default_value": "\" \"" + } + ] + }, + { + "name": "pad_decimals", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "digits", + "type": "int" + } + ] + }, + { + "name": "pad_zeros", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2162347432, + "arguments": [ + { + "name": "digits", + "type": "int" + } + ] + }, + { + "name": "trim_prefix", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "prefix", + "type": "String" + } + ] + }, + { + "name": "trim_suffix", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3134094431, + "arguments": [ + { + "name": "suffix", + "type": "String" + } + ] + }, + { + "name": "to_ascii_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf8_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf16_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "to_utf32_buffer", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "StringName" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "String" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "NodePath", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "NodePath", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "NodePath", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "is_absolute", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_name_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_name", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2948586938, + "arguments": [ + { + "name": "idx", + "type": "int" + } + ] + }, + { + "name": "get_subname_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_subname", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2948586938, + "arguments": [ + { + "name": "idx", + "type": "int" + } + ] + }, + { + "name": "get_concatenated_names", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "get_concatenated_subnames", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "get_as_property_path", + "return_type": "NodePath", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1598598043 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "NodePath" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "String" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "RID", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "RID", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "RID", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "is_valid", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_id", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "RID" + } + ] + } + ], + "has_destructor": false + }, + { + "name": "Callable", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Callable", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Callable", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "callv", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 413578926, + "arguments": [ + { + "name": "arguments", + "type": "Array" + } + ] + }, + { + "name": "is_null", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_custom", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_standard", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_valid", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_object", + "return_type": "Object", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4008621732 + }, + { + "name": "get_object_id", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_method", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "get_bound_arguments_count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_bound_arguments", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4144163970 + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "bindv", + "return_type": "Callable", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3564560322, + "arguments": [ + { + "name": "arguments", + "type": "Array" + } + ] + }, + { + "name": "unbind", + "return_type": "Callable", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 755001590, + "arguments": [ + { + "name": "argcount", + "type": "int" + } + ] + }, + { + "name": "call", + "return_type": "Variant", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 3643564216 + }, + { + "name": "call_deferred", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 3286317445 + }, + { + "name": "rpc", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 3286317445 + }, + { + "name": "rpc_id", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 2270047679, + "arguments": [ + { + "name": "peer_id", + "type": "int" + } + ] + }, + { + "name": "bind", + "return_type": "Callable", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 3224143119 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Callable" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "method", + "type": "StringName" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "Signal", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Signal", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Signal", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "is_null", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "get_object", + "return_type": "Object", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4008621732 + }, + { + "name": "get_object_id", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_name", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "connect", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 979702392, + "arguments": [ + { + "name": "callable", + "type": "Callable" + }, + { + "name": "flags", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "disconnect", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3470848906, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "is_connected", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4129521963, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "get_connections", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4144163970 + }, + { + "name": "emit", + "is_vararg": true, + "is_const": true, + "is_static": false, + "hash": 3286317445 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Signal" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "signal", + "type": "StringName" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "Dictionary", + "indexing_return_type": "Variant", + "is_keyed": true, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "merge", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2079548978, + "arguments": [ + { + "name": "dictionary", + "type": "Dictionary" + }, + { + "name": "overwrite", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3680194679, + "arguments": [ + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "has_all", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2988181878, + "arguments": [ + { + "name": "keys", + "type": "Array" + } + ] + }, + { + "name": "find_key", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1988825835, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "erase", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1776646889, + "arguments": [ + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "keys", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4144163970 + }, + { + "name": "values", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4144163970 + }, + { + "name": "duplicate", + "return_type": "Dictionary", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 830099069, + "arguments": [ + { + "name": "deep", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2205440559, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "default", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "make_read_only", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "is_read_only", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Dictionary" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "Array", + "indexing_return_type": "Variant", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "<", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "<=", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": ">", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": ">=", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "Array", + "return_type": "Array" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "hash", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "assign", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2307260970, + "arguments": [ + { + "name": "array", + "type": "Array" + } + ] + }, + { + "name": "push_back", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3316032543, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "push_front", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3316032543, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "append", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3316032543, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2307260970, + "arguments": [ + { + "name": "array", + "type": "Array" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "size", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3176316662, + "arguments": [ + { + "name": "position", + "type": "int" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "position", + "type": "int" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3316032543, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "erase", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3316032543, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "front", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "back", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "pick_random", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2336346817, + "arguments": [ + { + "name": "what", + "type": "Variant" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2336346817, + "arguments": [ + { + "name": "what", + "type": "Variant" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1481661226, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3680194679, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "pop_back", + "return_type": "Variant", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1321915136 + }, + { + "name": "pop_front", + "return_type": "Variant", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1321915136 + }, + { + "name": "pop_at", + "return_type": "Variant", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3518259424, + "arguments": [ + { + "name": "position", + "type": "int" + } + ] + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "sort_custom", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3470848906, + "arguments": [ + { + "name": "func", + "type": "Callable" + } + ] + }, + { + "name": "shuffle", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3372222236, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "bsearch_custom", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 161317131, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "func", + "type": "Callable" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "duplicate", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 636440122, + "arguments": [ + { + "name": "deep", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "slice", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1393718243, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + }, + { + "name": "step", + "type": "int", + "default_value": "1" + }, + { + "name": "deep", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "filter", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4075186556, + "arguments": [ + { + "name": "method", + "type": "Callable" + } + ] + }, + { + "name": "map", + "return_type": "Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4075186556, + "arguments": [ + { + "name": "method", + "type": "Callable" + } + ] + }, + { + "name": "reduce", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4272450342, + "arguments": [ + { + "name": "method", + "type": "Callable" + }, + { + "name": "accum", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "any", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4129521963, + "arguments": [ + { + "name": "method", + "type": "Callable" + } + ] + }, + { + "name": "all", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4129521963, + "arguments": [ + { + "name": "method", + "type": "Callable" + } + ] + }, + { + "name": "max", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "min", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "is_typed", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "is_same_typed", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2988181878, + "arguments": [ + { + "name": "array", + "type": "Array" + } + ] + }, + { + "name": "get_typed_builtin", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "get_typed_class_name", + "return_type": "StringName", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1825232092 + }, + { + "name": "get_typed_script", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1460142086 + }, + { + "name": "make_read_only", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "is_read_only", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "base", + "type": "Array" + }, + { + "name": "type", + "type": "int" + }, + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "script", + "type": "Variant" + } + ] + }, + { + "index": 3, + "arguments": [ + { + "name": "from", + "type": "PackedByteArray" + } + ] + }, + { + "index": 4, + "arguments": [ + { + "name": "from", + "type": "PackedInt32Array" + } + ] + }, + { + "index": 5, + "arguments": [ + { + "name": "from", + "type": "PackedInt64Array" + } + ] + }, + { + "index": 6, + "arguments": [ + { + "name": "from", + "type": "PackedFloat32Array" + } + ] + }, + { + "index": 7, + "arguments": [ + { + "name": "from", + "type": "PackedFloat64Array" + } + ] + }, + { + "index": 8, + "arguments": [ + { + "name": "from", + "type": "PackedStringArray" + } + ] + }, + { + "index": 9, + "arguments": [ + { + "name": "from", + "type": "PackedVector2Array" + } + ] + }, + { + "index": 10, + "arguments": [ + { + "name": "from", + "type": "PackedVector3Array" + } + ] + }, + { + "index": 11, + "arguments": [ + { + "name": "from", + "type": "PackedColorArray" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedByteArray", + "indexing_return_type": "int", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedByteArray", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedByteArray", + "return_type": "PackedByteArray" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 791097111, + "arguments": [ + { + "name": "array", + "type": "PackedByteArray" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1487112728, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 931488181, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2278869132, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3380005890, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 851781288 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "get_string_from_ascii", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_string_from_utf8", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_string_from_utf16", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "get_string_from_utf32", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "hex_encode", + "return_type": "String", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3942272618 + }, + { + "name": "compress", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1845905913, + "arguments": [ + { + "name": "compression_mode", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "decompress", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2278869132, + "arguments": [ + { + "name": "buffer_size", + "type": "int" + }, + { + "name": "compression_mode", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "decompress_dynamic", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2278869132, + "arguments": [ + { + "name": "max_output_size", + "type": "int" + }, + { + "name": "compression_mode", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "decode_u8", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_s8", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_u16", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_s16", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_u32", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_s32", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_u64", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_s64", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_half", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1401583798, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_float", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1401583798, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "decode_double", + "return_type": "float", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1401583798, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + } + ] + }, + { + "name": "has_encoded_var", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2914632957, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "decode_var", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1740420038, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "decode_var_size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 954237325, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "to_int32_array", + "return_type": "PackedInt32Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3158844420 + }, + { + "name": "to_int64_array", + "return_type": "PackedInt64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1961294120 + }, + { + "name": "to_float32_array", + "return_type": "PackedFloat32Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3575107827 + }, + { + "name": "to_float64_array", + "return_type": "PackedFloat64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1627308337 + }, + { + "name": "encode_u8", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_s8", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_u16", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_s16", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_u32", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_s32", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_u64", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_s64", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "encode_half", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1113000516, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "encode_float", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1113000516, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "encode_double", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1113000516, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "encode_var", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2604460497, + "arguments": [ + { + "name": "byte_offset", + "type": "int" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedByteArray" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedInt32Array", + "indexing_return_type": "int", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedInt32Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedInt32Array", + "return_type": "PackedInt32Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1087733270, + "arguments": [ + { + "name": "array", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1487112728, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 931488181, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedInt32Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1216021098, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3380005890, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedInt32Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1997843129 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedInt32Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedInt64Array", + "indexing_return_type": "int", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedInt64Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedInt64Array", + "return_type": "PackedInt64Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3638975848, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 694024632, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2090311302, + "arguments": [ + { + "name": "array", + "type": "PackedInt64Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1487112728, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 931488181, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedInt64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1726550804, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3380005890, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedInt64Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2376370016 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2984303840, + "arguments": [ + { + "name": "value", + "type": "int" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 4103005248, + "arguments": [ + { + "name": "value", + "type": "int" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedInt64Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedFloat32Array", + "indexing_return_type": "float", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedFloat32Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedFloat32Array", + "return_type": "PackedFloat32Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1113000516, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4094791666, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4094791666, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2981316639, + "arguments": [ + { + "name": "array", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1379903876, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 833936903, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1296369134, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedFloat32Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1418229160, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1188816338, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedFloat32Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 831114784 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1343150241, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1343150241, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2859915090, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedFloat32Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedFloat64Array", + "indexing_return_type": "float", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedFloat64Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedFloat64Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedFloat64Array", + "return_type": "PackedFloat64Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1113000516, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4094791666, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4094791666, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 792078629, + "arguments": [ + { + "name": "array", + "type": "PackedFloat64Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1379903876, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 833936903, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1296369134, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedFloat64Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2192974324, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1188816338, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedFloat64Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 949266573 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1343150241, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1343150241, + "arguments": [ + { + "name": "value", + "type": "float" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2859915090, + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedFloat64Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedStringArray", + "indexing_return_type": "String", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedStringArray", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedStringArray", + "return_type": "PackedStringArray" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 725585539, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 816187996, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 816187996, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1120103966, + "arguments": [ + { + "name": "array", + "type": "PackedStringArray" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2432393153, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3174917410, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2566493496, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2094601407, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 328976671, + "arguments": [ + { + "name": "value", + "type": "String" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedStringArray", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2991231410 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "value", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1760645412, + "arguments": [ + { + "name": "value", + "type": "String" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2920860731, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedStringArray" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedVector2Array", + "indexing_return_type": "Vector2", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform2D", + "return_type": "PackedVector2Array" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector2Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector2Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedVector2Array", + "return_type": "PackedVector2Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 635767250, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4188891560, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 4188891560, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3887534835, + "arguments": [ + { + "name": "array", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2225629369, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3790411178, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3190634762, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedVector2Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3864005350, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3778035805, + "arguments": [ + { + "name": "value", + "type": "Vector2" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedVector2Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3763646812 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1469606149, + "arguments": [ + { + "name": "value", + "type": "Vector2" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1469606149, + "arguments": [ + { + "name": "value", + "type": "Vector2" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2798848307, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedVector2Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedVector3Array", + "indexing_return_type": "Vector3", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "*", + "right_type": "Transform3D", + "return_type": "PackedVector3Array" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedVector3Array", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedVector3Array", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedVector3Array", + "return_type": "PackedVector3Array" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3975343409, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3295363524, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3295363524, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 203538016, + "arguments": [ + { + "name": "array", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3892262309, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3726392409, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1749054343, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedVector3Array", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2086131305, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 219263630, + "arguments": [ + { + "name": "value", + "type": "Vector3" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedVector3Array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2754175465 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3718155780, + "arguments": [ + { + "name": "value", + "type": "Vector3" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3718155780, + "arguments": [ + { + "name": "value", + "type": "Vector3" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 194580386, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedVector3Array" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + }, + { + "name": "PackedColorArray", + "indexing_return_type": "Color", + "is_keyed": false, + "operators": [ + { + "name": "==", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "Variant", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Dictionary", + "return_type": "bool" + }, + { + "name": "in", + "right_type": "Array", + "return_type": "bool" + }, + { + "name": "==", + "right_type": "PackedColorArray", + "return_type": "bool" + }, + { + "name": "!=", + "right_type": "PackedColorArray", + "return_type": "bool" + }, + { + "name": "+", + "right_type": "PackedColorArray", + "return_type": "PackedColorArray" + } + ], + "methods": [ + { + "name": "size", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3173160232 + }, + { + "name": "is_empty", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3918633141 + }, + { + "name": "set", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1444096570, + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "push_back", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1007858200, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "append", + "return_type": "bool", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1007858200, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "append_array", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 798822497, + "arguments": [ + { + "name": "array", + "type": "PackedColorArray" + } + ] + }, + { + "name": "remove_at", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 2823966027, + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "insert", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 785289703, + "arguments": [ + { + "name": "at_index", + "type": "int" + }, + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "fill", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3730314301, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "resize", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 848867239, + "arguments": [ + { + "name": "new_size", + "type": "int" + } + ] + }, + { + "name": "clear", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "has", + "return_type": "bool", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3167426256, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "reverse", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "slice", + "return_type": "PackedColorArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 2451797139, + "arguments": [ + { + "name": "begin", + "type": "int" + }, + { + "name": "end", + "type": "int", + "default_value": "2147483647" + } + ] + }, + { + "name": "to_byte_array", + "return_type": "PackedByteArray", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 247621236 + }, + { + "name": "sort", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 3218959716 + }, + { + "name": "bsearch", + "return_type": "int", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 314143821, + "arguments": [ + { + "name": "value", + "type": "Color" + }, + { + "name": "before", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "duplicate", + "return_type": "PackedColorArray", + "is_vararg": false, + "is_const": false, + "is_static": false, + "hash": 1011903421 + }, + { + "name": "find", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3156095363, + "arguments": [ + { + "name": "value", + "type": "Color" + }, + { + "name": "from", + "type": "int", + "default_value": "0" + } + ] + }, + { + "name": "rfind", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 3156095363, + "arguments": [ + { + "name": "value", + "type": "Color" + }, + { + "name": "from", + "type": "int", + "default_value": "-1" + } + ] + }, + { + "name": "count", + "return_type": "int", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 1682108616, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + } + ], + "constructors": [ + { + "index": 0 + }, + { + "index": 1, + "arguments": [ + { + "name": "from", + "type": "PackedColorArray" + } + ] + }, + { + "index": 2, + "arguments": [ + { + "name": "from", + "type": "Array" + } + ] + } + ], + "has_destructor": true + } + ], + "classes": [ + { + "name": "AESContext", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_ECB_ENCRYPT", + "value": 0 + }, + { + "name": "MODE_ECB_DECRYPT", + "value": 1 + }, + { + "name": "MODE_CBC_ENCRYPT", + "value": 2 + }, + { + "name": "MODE_CBC_DECRYPT", + "value": 3 + }, + { + "name": "MODE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3167574919, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::AESContext.Mode" + }, + { + "name": "key", + "type": "PackedByteArray" + }, + { + "name": "iv", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + } + ] + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 527836100, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "src", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_iv_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "AStar2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_estimate_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_compute_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_available_point_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3370185124, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "position", + "type": "Vector2" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "set_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_weight_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "set_point_weight_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "has_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_point_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2865087369, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_point_ids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3851388692, + "return_value": { + "type": "PackedInt64Array" + } + }, + { + "name": "set_point_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_point_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "connect_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3785370599, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "disconnect_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3785370599, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "are_points_connected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4063588998, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "get_point_capacity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "reserve_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "num_nodes", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2300324924, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "to_position", + "type": "Vector2" + }, + { + "name": "include_disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_closest_position_in_segment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "to_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 281625055, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_id_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3404614526, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + } + ] + }, + { + "name": "AStar3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_estimate_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_compute_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_available_point_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920922839, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "position", + "type": "Vector3" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "set_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_point_weight_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "set_point_weight_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "has_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_point_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2865087369, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_point_ids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3851388692, + "return_value": { + "type": "PackedInt64Array" + } + }, + { + "name": "set_point_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_point_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "connect_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3785370599, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "disconnect_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3785370599, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "are_points_connected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4063588998, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + }, + { + "name": "bidirectional", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "get_point_capacity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "reserve_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "num_nodes", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3241074317, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "to_position", + "type": "Vector3" + }, + { + "name": "include_disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_closest_position_in_segment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 192990374, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "to_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_point_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 880819742, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_id_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3404614526, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "from_id", + "type": "int", + "meta": "int64" + }, + { + "name": "to_id", + "type": "int", + "meta": "int64" + } + ] + } + ] + }, + { + "name": "AStarGrid2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "Heuristic", + "is_bitfield": false, + "values": [ + { + "name": "HEURISTIC_EUCLIDEAN", + "value": 0 + }, + { + "name": "HEURISTIC_MANHATTAN", + "value": 1 + }, + { + "name": "HEURISTIC_OCTILE", + "value": 2 + }, + { + "name": "HEURISTIC_CHEBYSHEV", + "value": 3 + }, + { + "name": "HEURISTIC_MAX", + "value": 4 + } + ] + }, + { + "name": "DiagonalMode", + "is_bitfield": false, + "values": [ + { + "name": "DIAGONAL_MODE_ALWAYS", + "value": 0 + }, + { + "name": "DIAGONAL_MODE_NEVER", + "value": 1 + }, + { + "name": "DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE", + "value": 2 + }, + { + "name": "DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES", + "value": 3 + }, + { + "name": "DIAGONAL_MODE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "_estimate_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "Vector2i" + }, + { + "name": "to_id", + "type": "Vector2i" + } + ] + }, + { + "name": "_compute_cost", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from_id", + "type": "Vector2i" + }, + { + "name": "to_id", + "type": "Vector2i" + } + ] + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "cell_size", + "type": "Vector2" + } + ] + }, + { + "name": "get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "is_in_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_in_boundsv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900751641, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + } + ] + }, + { + "name": "is_dirty", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_jumping_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_jumping_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_diagonal_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017829798, + "arguments": [ + { + "name": "mode", + "type": "enum::AStarGrid2D.DiagonalMode" + } + ] + }, + { + "name": "get_diagonal_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3129282674, + "return_value": { + "type": "enum::AStarGrid2D.DiagonalMode" + } + }, + { + "name": "set_default_compute_heuristic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1044375519, + "arguments": [ + { + "name": "heuristic", + "type": "enum::AStarGrid2D.Heuristic" + } + ] + }, + { + "name": "get_default_compute_heuristic", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074731422, + "return_value": { + "type": "enum::AStarGrid2D.Heuristic" + } + }, + { + "name": "set_default_estimate_heuristic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1044375519, + "arguments": [ + { + "name": "heuristic", + "type": "enum::AStarGrid2D.Heuristic" + } + ] + }, + { + "name": "get_default_estimate_heuristic", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074731422, + "return_value": { + "type": "enum::AStarGrid2D.Heuristic" + } + }, + { + "name": "set_point_solid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2825551965, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + }, + { + "name": "solid", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_point_solid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900751641, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + } + ] + }, + { + "name": "set_point_weight_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2262553149, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + }, + { + "name": "weight_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_weight_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 719993801, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 108438297, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "id", + "type": "Vector2i" + } + ] + }, + { + "name": "get_point_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 690373547, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from_id", + "type": "Vector2i" + }, + { + "name": "to_id", + "type": "Vector2i" + } + ] + }, + { + "name": "get_id_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1989391000, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "from_id", + "type": "Vector2i" + }, + { + "name": "to_id", + "type": "Vector2i" + } + ] + } + ], + "properties": [ + { + "type": "Vector2i", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "Vector2", + "name": "cell_size", + "setter": "set_cell_size", + "getter": "get_cell_size" + }, + { + "type": "bool", + "name": "jumping_enabled", + "setter": "set_jumping_enabled", + "getter": "is_jumping_enabled" + }, + { + "type": "int", + "name": "default_compute_heuristic", + "setter": "set_default_compute_heuristic", + "getter": "get_default_compute_heuristic" + }, + { + "type": "int", + "name": "default_estimate_heuristic", + "setter": "set_default_estimate_heuristic", + "getter": "get_default_estimate_heuristic" + }, + { + "type": "int", + "name": "diagonal_mode", + "setter": "set_diagonal_mode", + "getter": "get_diagonal_mode" + } + ] + }, + { + "name": "AcceptDialog", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Window", + "api_type": "core", + "methods": [ + { + "name": "get_ok_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1856205918, + "return_value": { + "type": "Button" + } + }, + { + "name": "get_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 566733104, + "return_value": { + "type": "Label" + } + }, + { + "name": "set_hide_on_ok", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_hide_on_ok", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_close_on_escape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_close_on_escape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4158837846, + "return_value": { + "type": "Button" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "right", + "type": "bool", + "default_value": "false" + }, + { + "name": "action", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "add_cancel_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 242045556, + "return_value": { + "type": "Button" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "remove_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "button", + "type": "Control" + } + ] + }, + { + "name": "register_text_enter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "line_edit", + "type": "Control" + } + ] + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_autowrap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "autowrap", + "type": "bool" + } + ] + }, + { + "name": "has_autowrap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ok_button_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_ok_button_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "signals": [ + { + "name": "confirmed" + }, + { + "name": "canceled" + }, + { + "name": "custom_action", + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "ok_button_text", + "setter": "set_ok_button_text", + "getter": "get_ok_button_text" + }, + { + "type": "String", + "name": "dialog_text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "bool", + "name": "dialog_hide_on_ok", + "setter": "set_hide_on_ok", + "getter": "get_hide_on_ok" + }, + { + "type": "bool", + "name": "dialog_close_on_escape", + "setter": "set_close_on_escape", + "getter": "get_close_on_escape" + }, + { + "type": "bool", + "name": "dialog_autowrap", + "setter": "set_autowrap", + "getter": "has_autowrap" + } + ] + }, + { + "name": "AnimatableBody2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "StaticBody2D", + "api_type": "core", + "methods": [ + { + "name": "set_sync_to_physics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_sync_to_physics_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "sync_to_physics", + "setter": "set_sync_to_physics", + "getter": "is_sync_to_physics_enabled" + } + ] + }, + { + "name": "AnimatableBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "StaticBody3D", + "api_type": "core", + "methods": [ + { + "name": "set_sync_to_physics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_sync_to_physics_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "sync_to_physics", + "setter": "set_sync_to_physics", + "getter": "is_sync_to_physics_enabled" + } + ] + }, + { + "name": "AnimatedSprite2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_sprite_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 905781144, + "arguments": [ + { + "name": "sprite_frames", + "type": "SpriteFrames" + } + ] + }, + { + "name": "get_sprite_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3804851214, + "return_value": { + "type": "SpriteFrames" + } + }, + { + "name": "set_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_autoplay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1459844657, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "&\"\"" + }, + { + "name": "custom_speed", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "from_end", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "play_backwards", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1421762485, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "&\"\"" + } + ] + }, + { + "name": "pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_centered", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "centered", + "type": "bool" + } + ] + }, + { + "name": "is_centered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_h", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_v", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_frame_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_frame_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_frame_and_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + }, + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_playing_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "sprite_frames_changed" + }, + { + "name": "animation_changed" + }, + { + "name": "frame_changed" + }, + { + "name": "animation_looped" + }, + { + "name": "animation_finished" + } + ], + "properties": [ + { + "type": "SpriteFrames", + "name": "sprite_frames", + "setter": "set_sprite_frames", + "getter": "get_sprite_frames" + }, + { + "type": "StringName", + "name": "animation", + "setter": "set_animation", + "getter": "get_animation" + }, + { + "type": "StringName", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "get_autoplay" + }, + { + "type": "int", + "name": "frame", + "setter": "set_frame", + "getter": "get_frame" + }, + { + "type": "float", + "name": "frame_progress", + "setter": "set_frame_progress", + "getter": "get_frame_progress" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "bool", + "name": "centered", + "setter": "set_centered", + "getter": "is_centered" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "is_flipped_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "is_flipped_v" + } + ] + }, + { + "name": "AnimatedSprite3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SpriteBase3D", + "api_type": "core", + "methods": [ + { + "name": "set_sprite_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 905781144, + "arguments": [ + { + "name": "sprite_frames", + "type": "SpriteFrames" + } + ] + }, + { + "name": "get_sprite_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3804851214, + "return_value": { + "type": "SpriteFrames" + } + }, + { + "name": "set_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_autoplay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1459844657, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "&\"\"" + }, + { + "name": "custom_speed", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "from_end", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "play_backwards", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1421762485, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "&\"\"" + } + ] + }, + { + "name": "pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_frame_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_frame_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_frame_and_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + }, + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_playing_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "sprite_frames_changed" + }, + { + "name": "animation_changed" + }, + { + "name": "frame_changed" + }, + { + "name": "animation_looped" + }, + { + "name": "animation_finished" + } + ], + "properties": [ + { + "type": "SpriteFrames", + "name": "sprite_frames", + "setter": "set_sprite_frames", + "getter": "get_sprite_frames" + }, + { + "type": "StringName", + "name": "animation", + "setter": "set_animation", + "getter": "get_animation" + }, + { + "type": "StringName", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "get_autoplay" + }, + { + "type": "int", + "name": "frame", + "setter": "set_frame", + "getter": "get_frame" + }, + { + "type": "float", + "name": "frame_progress", + "setter": "set_frame_progress", + "getter": "get_frame_progress" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + } + ] + }, + { + "name": "AnimatedTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "constants": [ + { + "name": "MAX_FRAMES", + "value": 256 + } + ], + "methods": [ + { + "name": "set_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_current_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pause", + "type": "bool" + } + ] + }, + { + "name": "get_pause", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "one_shot", + "type": "bool" + } + ] + }, + { + "name": "get_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_frame_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_frame_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_frame_duration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + }, + { + "name": "duration", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_frame_duration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "frames", + "setter": "set_frames", + "getter": "get_frames" + }, + { + "type": "int", + "name": "current_frame", + "setter": "set_current_frame", + "getter": "get_current_frame" + }, + { + "type": "bool", + "name": "pause", + "setter": "set_pause", + "getter": "get_pause" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "get_one_shot" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + } + ] + }, + { + "name": "Animation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "TrackType", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_VALUE", + "value": 0 + }, + { + "name": "TYPE_POSITION_3D", + "value": 1 + }, + { + "name": "TYPE_ROTATION_3D", + "value": 2 + }, + { + "name": "TYPE_SCALE_3D", + "value": 3 + }, + { + "name": "TYPE_BLEND_SHAPE", + "value": 4 + }, + { + "name": "TYPE_METHOD", + "value": 5 + }, + { + "name": "TYPE_BEZIER", + "value": 6 + }, + { + "name": "TYPE_AUDIO", + "value": 7 + }, + { + "name": "TYPE_ANIMATION", + "value": 8 + } + ] + }, + { + "name": "InterpolationType", + "is_bitfield": false, + "values": [ + { + "name": "INTERPOLATION_NEAREST", + "value": 0 + }, + { + "name": "INTERPOLATION_LINEAR", + "value": 1 + }, + { + "name": "INTERPOLATION_CUBIC", + "value": 2 + }, + { + "name": "INTERPOLATION_LINEAR_ANGLE", + "value": 3 + }, + { + "name": "INTERPOLATION_CUBIC_ANGLE", + "value": 4 + } + ] + }, + { + "name": "UpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "UPDATE_CONTINUOUS", + "value": 0 + }, + { + "name": "UPDATE_DISCRETE", + "value": 1 + }, + { + "name": "UPDATE_CAPTURE", + "value": 2 + } + ] + }, + { + "name": "LoopMode", + "is_bitfield": false, + "values": [ + { + "name": "LOOP_NONE", + "value": 0 + }, + { + "name": "LOOP_LINEAR", + "value": 1 + }, + { + "name": "LOOP_PINGPONG", + "value": 2 + } + ] + }, + { + "name": "LoopedFlag", + "is_bitfield": false, + "values": [ + { + "name": "LOOPED_FLAG_NONE", + "value": 0 + }, + { + "name": "LOOPED_FLAG_END", + "value": 1 + }, + { + "name": "LOOPED_FLAG_START", + "value": 2 + } + ] + }, + { + "name": "FindMode", + "is_bitfield": false, + "values": [ + { + "name": "FIND_MODE_NEAREST", + "value": 0 + }, + { + "name": "FIND_MODE_APPROX", + "value": 1 + }, + { + "name": "FIND_MODE_EXACT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_track", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2393815928, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::Animation.TrackType" + }, + { + "name": "at_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_track", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_track_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "track_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3445944217, + "return_value": { + "type": "enum::Animation.TrackType" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "find_track", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 245376003, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "type", + "type": "enum::Animation.TrackType" + } + ] + }, + { + "name": "track_move_up", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_move_down", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_move_to", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "to_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_swap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "with_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_set_imported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "imported", + "type": "bool" + } + ] + }, + { + "name": "track_is_imported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "track_is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "position_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2540608232, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "rotation_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4165004800, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "rotation", + "type": "Quaternion" + } + ] + }, + { + "name": "scale_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2540608232, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "blend_shape_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1534913637, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1985425300, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "key", + "type": "Variant" + }, + { + "name": "transition", + "type": "float", + "meta": "float", + "default_value": "1" + } + ] + }, + { + "name": "track_remove_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_remove_key_at_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "track_set_key_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2060538656, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "track_set_key_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transition", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "track_set_key_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "track_get_key_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_get_key_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_get_key_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 678354945, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_get_key_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_find_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3898229885, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "find_mode", + "type": "enum::Animation.FindMode", + "default_value": "0" + } + ] + }, + { + "name": "track_set_interpolation_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4112932513, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "interpolation", + "type": "enum::Animation.InterpolationType" + } + ] + }, + { + "name": "track_get_interpolation_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530756894, + "return_value": { + "type": "enum::Animation.InterpolationType" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_set_interpolation_loop_wrap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "interpolation", + "type": "bool" + } + ] + }, + { + "name": "track_get_interpolation_loop_wrap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "track_is_compressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "value_track_set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2854058312, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::Animation.UpdateMode" + } + ] + }, + { + "name": "value_track_get_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1440326473, + "return_value": { + "type": "enum::Animation.UpdateMode" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "value_track_interpolate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 491147702, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time_sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "method_track_get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 351665558, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "method_track_get_params", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2345056839, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "bezier_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1057544502, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "value", + "type": "float", + "meta": "float" + }, + { + "name": "in_handle", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + }, + { + "name": "out_handle", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "bezier_track_set_key_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "bezier_track_set_key_in_handle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1028302688, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "in_handle", + "type": "Vector2" + }, + { + "name": "balanced_value_time_ratio", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "bezier_track_set_key_out_handle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1028302688, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "out_handle", + "type": "Vector2" + }, + { + "name": "balanced_value_time_ratio", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "bezier_track_get_key_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "bezier_track_get_key_in_handle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "bezier_track_get_key_out_handle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "bezier_track_interpolate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1900462983, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "audio_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3489962123, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "stream", + "type": "Resource" + }, + { + "name": "start_offset", + "type": "float", + "meta": "float", + "default_value": "0" + }, + { + "name": "end_offset", + "type": "float", + "meta": "float", + "default_value": "0" + } + ] + }, + { + "name": "audio_track_set_key_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3886397084, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "stream", + "type": "Resource" + } + ] + }, + { + "name": "audio_track_set_key_start_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "audio_track_set_key_end_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "audio_track_get_key_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 635277205, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "audio_track_get_key_start_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "audio_track_get_key_end_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "audio_track_set_use_blend", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "audio_track_is_use_blend", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "animation_track_insert_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 158676774, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "animation", + "type": "StringName" + } + ] + }, + { + "name": "animation_track_set_key_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 117615382, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "animation", + "type": "StringName" + } + ] + }, + { + "name": "animation_track_get_key_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 351665558, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time_sec", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_loop_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3155355575, + "arguments": [ + { + "name": "loop_mode", + "type": "enum::Animation.LoopMode" + } + ] + }, + { + "name": "get_loop_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1988889481, + "return_value": { + "type": "enum::Animation.LoopMode" + } + }, + { + "name": "set_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size_sec", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "copy_track", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 148001024, + "arguments": [ + { + "name": "track_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "to_animation", + "type": "Animation" + } + ] + }, + { + "name": "compress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1804059263, + "arguments": [ + { + "name": "page_size", + "type": "int", + "meta": "uint32", + "default_value": "8192" + }, + { + "name": "fps", + "type": "int", + "meta": "uint32", + "default_value": "120" + }, + { + "name": "split_tolerance", + "type": "float", + "meta": "float", + "default_value": "4.0" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "int", + "name": "loop_mode", + "setter": "set_loop_mode", + "getter": "get_loop_mode" + }, + { + "type": "float", + "name": "step", + "setter": "set_step", + "getter": "get_step" + } + ] + }, + { + "name": "AnimationLibrary", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "add_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1811855551, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "animation", + "type": "Animation" + } + ] + }, + { + "name": "remove_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "rename_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "newname", + "type": "StringName" + } + ] + }, + { + "name": "has_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2933122410, + "return_value": { + "type": "Animation" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::StringName" + } + } + ], + "signals": [ + { + "name": "animation_added", + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "animation_removed", + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "animation_renamed", + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "to_name", + "type": "StringName" + } + ] + }, + { + "name": "animation_changed", + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + } + ] + }, + { + "name": "AnimationNode", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "FilterAction", + "is_bitfield": false, + "values": [ + { + "name": "FILTER_IGNORE", + "value": 0 + }, + { + "name": "FILTER_PASS", + "value": 1 + }, + { + "name": "FILTER_STOP", + "value": 2 + }, + { + "name": "FILTER_BLEND", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "_get_child_nodes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_get_parameter_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + } + }, + { + "name": "_get_child_by_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AnimationNode" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "_get_parameter_default_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "parameter", + "type": "StringName" + } + ] + }, + { + "name": "_is_parameter_read_only", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "parameter", + "type": "StringName" + } + ] + }, + { + "name": "_process", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "seek", + "type": "bool" + }, + { + "name": "is_external_seeking", + "type": "bool" + } + ] + }, + { + "name": "_get_caption", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_has_filter", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "remove_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_input_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 215573526, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_input_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_input_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_filter_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3868023870, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_path_filtered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 861721659, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "set_filter_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_filter_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "blend_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 11797022, + "arguments": [ + { + "name": "animation", + "type": "StringName" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "delta", + "type": "float", + "meta": "double" + }, + { + "name": "seeked", + "type": "bool" + }, + { + "name": "is_external_seeking", + "type": "bool" + }, + { + "name": "blend", + "type": "float", + "meta": "float" + }, + { + "name": "looped_flag", + "type": "enum::Animation.LoopedFlag", + "default_value": "0" + } + ] + }, + { + "name": "blend_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 308530085, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "node", + "type": "AnimationNode" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "seek", + "type": "bool" + }, + { + "name": "is_external_seeking", + "type": "bool" + }, + { + "name": "blend", + "type": "float", + "meta": "float" + }, + { + "name": "filter", + "type": "enum::AnimationNode.FilterAction", + "default_value": "0" + }, + { + "name": "sync", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "blend_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1365393708, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "input_index", + "type": "int", + "meta": "int32" + }, + { + "name": "time", + "type": "float", + "meta": "double" + }, + { + "name": "seek", + "type": "bool" + }, + { + "name": "is_external_seeking", + "type": "bool" + }, + { + "name": "blend", + "type": "float", + "meta": "float" + }, + { + "name": "filter", + "type": "enum::AnimationNode.FilterAction", + "default_value": "0" + }, + { + "name": "sync", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + } + ], + "signals": [ + { + "name": "tree_changed" + }, + { + "name": "animation_node_renamed", + "arguments": [ + { + "name": "object_id", + "type": "int" + }, + { + "name": "old_name", + "type": "String" + }, + { + "name": "new_name", + "type": "String" + } + ] + }, + { + "name": "animation_node_removed", + "arguments": [ + { + "name": "object_id", + "type": "int" + }, + { + "name": "name", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "filter_enabled", + "setter": "set_filter_enabled", + "getter": "is_filter_enabled" + }, + { + "type": "Array", + "name": "filters", + "setter": "_set_filters", + "getter": "_get_filters" + } + ] + }, + { + "name": "AnimationNodeAdd2", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core" + }, + { + "name": "AnimationNodeAdd3", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core" + }, + { + "name": "AnimationNodeAnimation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationRootNode", + "api_type": "core", + "enums": [ + { + "name": "PlayMode", + "is_bitfield": false, + "values": [ + { + "name": "PLAY_MODE_FORWARD", + "value": 0 + }, + { + "name": "PLAY_MODE_BACKWARD", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_play_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3347718873, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeAnimation.PlayMode" + } + ] + }, + { + "name": "get_play_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2061244637, + "return_value": { + "type": "enum::AnimationNodeAnimation.PlayMode" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "animation", + "setter": "set_animation", + "getter": "get_animation" + }, + { + "type": "int", + "name": "play_mode", + "setter": "set_play_mode", + "getter": "get_play_mode" + } + ] + }, + { + "name": "AnimationNodeBlend2", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core" + }, + { + "name": "AnimationNodeBlend3", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core" + }, + { + "name": "AnimationNodeBlendSpace1D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationRootNode", + "api_type": "core", + "enums": [ + { + "name": "BlendMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_MODE_INTERPOLATED", + "value": 0 + }, + { + "name": "BLEND_MODE_DISCRETE", + "value": 1 + }, + { + "name": "BLEND_MODE_DISCRETE_CARRY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_blend_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4069484420, + "arguments": [ + { + "name": "node", + "type": "AnimationRootNode" + }, + { + "name": "pos", + "type": "float", + "meta": "float" + }, + { + "name": "at_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_blend_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "pos", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_blend_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_blend_point_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4240341528, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "node", + "type": "AnimationRootNode" + } + ] + }, + { + "name": "get_blend_point_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 665599029, + "return_value": { + "type": "AnimationRootNode" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_blend_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_blend_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_min_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "min_space", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_min_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_space", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_snap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "snap", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_snap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_value_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_value_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2600869457, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeBlendSpace1D.BlendMode" + } + ] + }, + { + "name": "get_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1547667849, + "return_value": { + "type": "enum::AnimationNodeBlendSpace1D.BlendMode" + } + }, + { + "name": "set_use_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_sync", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "min_space", + "setter": "set_min_space", + "getter": "get_min_space" + }, + { + "type": "float", + "name": "max_space", + "setter": "set_max_space", + "getter": "get_max_space" + }, + { + "type": "float", + "name": "snap", + "setter": "set_snap", + "getter": "get_snap" + }, + { + "type": "String", + "name": "value_label", + "setter": "set_value_label", + "getter": "get_value_label" + }, + { + "type": "int", + "name": "blend_mode", + "setter": "set_blend_mode", + "getter": "get_blend_mode" + }, + { + "type": "bool", + "name": "sync", + "setter": "set_use_sync", + "getter": "is_using_sync" + } + ] + }, + { + "name": "AnimationNodeBlendSpace2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationRootNode", + "api_type": "core", + "enums": [ + { + "name": "BlendMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_MODE_INTERPOLATED", + "value": 0 + }, + { + "name": "BLEND_MODE_DISCRETE", + "value": 1 + }, + { + "name": "BLEND_MODE_DISCRETE_CARRY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_blend_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1533588937, + "arguments": [ + { + "name": "node", + "type": "AnimationRootNode" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "at_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_blend_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "pos", + "type": "Vector2" + } + ] + }, + { + "name": "get_blend_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_blend_point_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4240341528, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "node", + "type": "AnimationRootNode" + } + ] + }, + { + "name": "get_blend_point_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 665599029, + "return_value": { + "type": "AnimationRootNode" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_blend_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_blend_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_triangle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642454959, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + }, + { + "name": "z", + "type": "int", + "meta": "int32" + }, + { + "name": "at_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_triangle_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 50157827, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "triangle", + "type": "int", + "meta": "int32" + }, + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_triangle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "triangle", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_triangle_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_min_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "min_space", + "type": "Vector2" + } + ] + }, + { + "name": "get_min_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_max_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "max_space", + "type": "Vector2" + } + ] + }, + { + "name": "get_max_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_snap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "snap", + "type": "Vector2" + } + ] + }, + { + "name": "get_snap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_x_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_x_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_y_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_y_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_auto_triangles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_auto_triangles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 81193520, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeBlendSpace2D.BlendMode" + } + ] + }, + { + "name": "get_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1398433632, + "return_value": { + "type": "enum::AnimationNodeBlendSpace2D.BlendMode" + } + }, + { + "name": "set_use_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_sync", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "triangles_updated" + } + ], + "properties": [ + { + "type": "bool", + "name": "auto_triangles", + "setter": "set_auto_triangles", + "getter": "get_auto_triangles" + }, + { + "type": "PackedInt32Array", + "name": "triangles", + "setter": "_set_triangles", + "getter": "_get_triangles" + }, + { + "type": "Vector2", + "name": "min_space", + "setter": "set_min_space", + "getter": "get_min_space" + }, + { + "type": "Vector2", + "name": "max_space", + "setter": "set_max_space", + "getter": "get_max_space" + }, + { + "type": "Vector2", + "name": "snap", + "setter": "set_snap", + "getter": "get_snap" + }, + { + "type": "String", + "name": "x_label", + "setter": "set_x_label", + "getter": "get_x_label" + }, + { + "type": "String", + "name": "y_label", + "setter": "set_y_label", + "getter": "get_y_label" + }, + { + "type": "int", + "name": "blend_mode", + "setter": "set_blend_mode", + "getter": "get_blend_mode" + }, + { + "type": "bool", + "name": "sync", + "setter": "set_use_sync", + "getter": "is_using_sync" + } + ] + }, + { + "name": "AnimationNodeBlendTree", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationRootNode", + "api_type": "core", + "constants": [ + { + "name": "CONNECTION_OK", + "value": 0 + }, + { + "name": "CONNECTION_ERROR_NO_INPUT", + "value": 1 + }, + { + "name": "CONNECTION_ERROR_NO_INPUT_INDEX", + "value": 2 + }, + { + "name": "CONNECTION_ERROR_NO_OUTPUT", + "value": 3 + }, + { + "name": "CONNECTION_ERROR_SAME_NODE", + "value": 4 + }, + { + "name": "CONNECTION_ERROR_CONNECTION_EXISTS", + "value": 5 + } + ], + "methods": [ + { + "name": "add_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2055804584, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "node", + "type": "AnimationNode" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "get_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 625644256, + "return_value": { + "type": "AnimationNode" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "rename_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "new_name", + "type": "StringName" + } + ] + }, + { + "name": "has_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "connect_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168001410, + "arguments": [ + { + "name": "input_node", + "type": "StringName" + }, + { + "name": "input_index", + "type": "int", + "meta": "int32" + }, + { + "name": "output_node", + "type": "StringName" + } + ] + }, + { + "name": "disconnect_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "input_node", + "type": "StringName" + }, + { + "name": "input_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_node_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1999414630, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_node_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3100822709, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "set_graph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_graph_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "signals": [ + { + "name": "node_changed", + "arguments": [ + { + "name": "node_name", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "Vector2", + "name": "graph_offset", + "setter": "set_graph_offset", + "getter": "get_graph_offset" + } + ] + }, + { + "name": "AnimationNodeOneShot", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core", + "enums": [ + { + "name": "OneShotRequest", + "is_bitfield": false, + "values": [ + { + "name": "ONE_SHOT_REQUEST_NONE", + "value": 0 + }, + { + "name": "ONE_SHOT_REQUEST_FIRE", + "value": 1 + }, + { + "name": "ONE_SHOT_REQUEST_ABORT", + "value": 2 + } + ] + }, + { + "name": "MixMode", + "is_bitfield": false, + "values": [ + { + "name": "MIX_MODE_BLEND", + "value": 0 + }, + { + "name": "MIX_MODE_ADD", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_fadein_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_fadein_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_fadeout_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_fadeout_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_autorestart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_autorestart", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_autorestart_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enable", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_autorestart_delay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_autorestart_random_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enable", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_autorestart_random_delay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_mix_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1018899799, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeOneShot.MixMode" + } + ] + }, + { + "name": "get_mix_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3076550526, + "return_value": { + "type": "enum::AnimationNodeOneShot.MixMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "mix_mode", + "setter": "set_mix_mode", + "getter": "get_mix_mode" + }, + { + "type": "float", + "name": "fadein_time", + "setter": "set_fadein_time", + "getter": "get_fadein_time" + }, + { + "type": "float", + "name": "fadeout_time", + "setter": "set_fadeout_time", + "getter": "get_fadeout_time" + }, + { + "type": "bool", + "name": "autorestart", + "setter": "set_autorestart", + "getter": "has_autorestart" + }, + { + "type": "float", + "name": "autorestart_delay", + "setter": "set_autorestart_delay", + "getter": "get_autorestart_delay" + }, + { + "type": "float", + "name": "autorestart_random_delay", + "setter": "set_autorestart_random_delay", + "getter": "get_autorestart_random_delay" + } + ] + }, + { + "name": "AnimationNodeOutput", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNode", + "api_type": "core" + }, + { + "name": "AnimationNodeStateMachine", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationRootNode", + "api_type": "core", + "methods": [ + { + "name": "add_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2055804584, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "node", + "type": "AnimationNode" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "replace_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2559412862, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "node", + "type": "AnimationNode" + } + ] + }, + { + "name": "get_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 625644256, + "return_value": { + "type": "AnimationNode" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "rename_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "new_name", + "type": "StringName" + } + ] + }, + { + "name": "has_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_node_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 739213945, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "node", + "type": "AnimationNode" + } + ] + }, + { + "name": "set_node_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1999414630, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_node_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3100822709, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "StringName" + }, + { + "name": "to", + "type": "StringName" + } + ] + }, + { + "name": "add_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 795486887, + "arguments": [ + { + "name": "from", + "type": "StringName" + }, + { + "name": "to", + "type": "StringName" + }, + { + "name": "transition", + "type": "AnimationNodeStateMachineTransition" + } + ] + }, + { + "name": "get_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4192381260, + "return_value": { + "type": "AnimationNodeStateMachineTransition" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transition_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "remove_transition_by_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "from", + "type": "StringName" + }, + { + "name": "to", + "type": "StringName" + } + ] + }, + { + "name": "set_graph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_graph_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_allow_transition_to_self", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_allow_transition_to_self", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "allow_transition_to_self", + "setter": "set_allow_transition_to_self", + "getter": "is_allow_transition_to_self" + } + ] + }, + { + "name": "AnimationNodeStateMachinePlayback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "travel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3683006648, + "arguments": [ + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "reset_on_teleport", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3683006648, + "arguments": [ + { + "name": "node", + "type": "StringName" + }, + { + "name": "reset", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "next", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_current_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_current_play_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_current_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_fading_from_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_travel_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ] + }, + { + "name": "AnimationNodeStateMachineTransition", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "SwitchMode", + "is_bitfield": false, + "values": [ + { + "name": "SWITCH_MODE_IMMEDIATE", + "value": 0 + }, + { + "name": "SWITCH_MODE_SYNC", + "value": 1 + }, + { + "name": "SWITCH_MODE_AT_END", + "value": 2 + } + ] + }, + { + "name": "AdvanceMode", + "is_bitfield": false, + "values": [ + { + "name": "ADVANCE_MODE_DISABLED", + "value": 0 + }, + { + "name": "ADVANCE_MODE_ENABLED", + "value": 1 + }, + { + "name": "ADVANCE_MODE_AUTO", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_switch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074906633, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeStateMachineTransition.SwitchMode" + } + ] + }, + { + "name": "get_switch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138562085, + "return_value": { + "type": "enum::AnimationNodeStateMachineTransition.SwitchMode" + } + }, + { + "name": "set_advance_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1210869868, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationNodeStateMachineTransition.AdvanceMode" + } + ] + }, + { + "name": "get_advance_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 61101689, + "return_value": { + "type": "enum::AnimationNodeStateMachineTransition.AdvanceMode" + } + }, + { + "name": "set_advance_condition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_advance_condition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_xfade_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_xfade_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_xfade_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_xfade_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_reset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "reset", + "type": "bool" + } + ] + }, + { + "name": "is_reset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_advance_expression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_advance_expression", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "signals": [ + { + "name": "advance_condition_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "xfade_time", + "setter": "set_xfade_time", + "getter": "get_xfade_time" + }, + { + "type": "Curve", + "name": "xfade_curve", + "setter": "set_xfade_curve", + "getter": "get_xfade_curve" + }, + { + "type": "bool", + "name": "reset", + "setter": "set_reset", + "getter": "is_reset" + }, + { + "type": "int", + "name": "priority", + "setter": "set_priority", + "getter": "get_priority" + }, + { + "type": "int", + "name": "switch_mode", + "setter": "set_switch_mode", + "getter": "get_switch_mode" + }, + { + "type": "int", + "name": "advance_mode", + "setter": "set_advance_mode", + "getter": "get_advance_mode" + }, + { + "type": "StringName", + "name": "advance_condition", + "setter": "set_advance_condition", + "getter": "get_advance_condition" + }, + { + "type": "String", + "name": "advance_expression", + "setter": "set_advance_expression", + "getter": "get_advance_expression" + } + ] + }, + { + "name": "AnimationNodeSync", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNode", + "api_type": "core", + "methods": [ + { + "name": "set_use_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_sync", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "sync", + "setter": "set_use_sync", + "getter": "is_using_sync" + } + ] + }, + { + "name": "AnimationNodeTimeScale", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNode", + "api_type": "core" + }, + { + "name": "AnimationNodeTimeSeek", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNode", + "api_type": "core" + }, + { + "name": "AnimationNodeTransition", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNodeSync", + "api_type": "core", + "methods": [ + { + "name": "set_input_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "input_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_input_as_auto_advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_input_set_as_auto_advance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_input_reset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_input_reset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "input", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_xfade_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_xfade_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_xfade_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_xfade_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_allow_transition_to_self", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_allow_transition_to_self", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "xfade_time", + "setter": "set_xfade_time", + "getter": "get_xfade_time" + }, + { + "type": "Curve", + "name": "xfade_curve", + "setter": "set_xfade_curve", + "getter": "get_xfade_curve" + }, + { + "type": "bool", + "name": "allow_transition_to_self", + "setter": "set_allow_transition_to_self", + "getter": "is_allow_transition_to_self" + }, + { + "type": "int", + "name": "input_count", + "setter": "set_input_count", + "getter": "get_input_count" + } + ] + }, + { + "name": "AnimationPlayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "AnimationProcessCallback", + "is_bitfield": false, + "values": [ + { + "name": "ANIMATION_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "ANIMATION_PROCESS_IDLE", + "value": 1 + }, + { + "name": "ANIMATION_PROCESS_MANUAL", + "value": 2 + } + ] + }, + { + "name": "AnimationMethodCallMode", + "is_bitfield": false, + "values": [ + { + "name": "ANIMATION_METHOD_CALL_DEFERRED", + "value": 0 + }, + { + "name": "ANIMATION_METHOD_CALL_IMMEDIATE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_post_process_key_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "animation", + "type": "Animation" + }, + { + "name": "track", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "object", + "type": "Object" + }, + { + "name": "object_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_animation_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 618909818, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "library", + "type": "AnimationLibrary" + } + ] + }, + { + "name": "remove_animation_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "rename_animation_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "newname", + "type": "StringName" + } + ] + }, + { + "name": "has_animation_library", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation_library", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 147342321, + "return_value": { + "type": "AnimationLibrary" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation_library_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::StringName" + } + }, + { + "name": "has_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2933122410, + "return_value": { + "type": "Animation" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_animation_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "animation_set_next", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "anim_from", + "type": "StringName" + }, + { + "name": "anim_to", + "type": "StringName" + } + ] + }, + { + "name": "animation_get_next", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "anim_from", + "type": "StringName" + } + ] + }, + { + "name": "set_blend_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3231131886, + "arguments": [ + { + "name": "anim_from", + "type": "StringName" + }, + { + "name": "anim_to", + "type": "StringName" + }, + { + "name": "sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_blend_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1958752504, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "anim_from", + "type": "StringName" + }, + { + "name": "anim_to", + "type": "StringName" + } + ] + }, + { + "name": "set_default_blend_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_default_blend_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2221377757, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "\"\"" + }, + { + "name": "custom_blend", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "custom_speed", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "from_end", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "play_backwards", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787282401, + "arguments": [ + { + "name": "name", + "type": "StringName", + "default_value": "\"\"" + }, + { + "name": "custom_blend", + "type": "float", + "meta": "double", + "default_value": "-1" + } + ] + }, + { + "name": "pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107499316, + "arguments": [ + { + "name": "keep_state", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_current_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "anim", + "type": "String" + } + ] + }, + { + "name": "get_current_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_assigned_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "anim", + "type": "String" + } + ] + }, + { + "name": "get_assigned_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "queue", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_queue", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "clear_queue", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_playing_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_autoplay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_reset_on_save_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_reset_on_save_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_root", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "find_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1559484580, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "animation", + "type": "Animation" + } + ] + }, + { + "name": "find_animation_library", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1559484580, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "animation", + "type": "Animation" + } + ] + }, + { + "name": "clear_caches", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_process_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1663839457, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationPlayer.AnimationProcessCallback" + } + ] + }, + { + "name": "get_process_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4207496604, + "return_value": { + "type": "enum::AnimationPlayer.AnimationProcessCallback" + } + }, + { + "name": "set_method_call_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3413514846, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationPlayer.AnimationMethodCallMode" + } + ] + }, + { + "name": "get_method_call_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3583380054, + "return_value": { + "type": "enum::AnimationPlayer.AnimationMethodCallMode" + } + }, + { + "name": "set_audio_max_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_polyphony", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_audio_max_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_movie_quit_on_finish_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_movie_quit_on_finish_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_current_animation_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_current_animation_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2087892650, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "double" + }, + { + "name": "update", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + } + ], + "signals": [ + { + "name": "animation_finished", + "arguments": [ + { + "name": "anim_name", + "type": "StringName" + } + ] + }, + { + "name": "animation_changed", + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "new_name", + "type": "StringName" + } + ] + }, + { + "name": "animation_started", + "arguments": [ + { + "name": "anim_name", + "type": "StringName" + } + ] + }, + { + "name": "animation_list_changed" + }, + { + "name": "animation_libraries_updated" + }, + { + "name": "caches_cleared" + } + ], + "properties": [ + { + "type": "NodePath", + "name": "root_node", + "setter": "set_root", + "getter": "get_root" + }, + { + "type": "StringName", + "name": "current_animation", + "setter": "set_current_animation", + "getter": "get_current_animation" + }, + { + "type": "StringName", + "name": "assigned_animation", + "setter": "set_assigned_animation", + "getter": "get_assigned_animation" + }, + { + "type": "StringName", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "get_autoplay" + }, + { + "type": "bool", + "name": "reset_on_save", + "setter": "set_reset_on_save_enabled", + "getter": "is_reset_on_save_enabled" + }, + { + "type": "float", + "name": "current_animation_length", + "getter": "get_current_animation_length" + }, + { + "type": "float", + "name": "current_animation_position", + "getter": "get_current_animation_position" + }, + { + "type": "int", + "name": "playback_process_mode", + "setter": "set_process_callback", + "getter": "get_process_callback" + }, + { + "type": "float", + "name": "playback_default_blend_time", + "setter": "set_default_blend_time", + "getter": "get_default_blend_time" + }, + { + "type": "bool", + "name": "playback_active", + "setter": "set_active", + "getter": "is_active" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "int", + "name": "method_call_mode", + "setter": "set_method_call_mode", + "getter": "get_method_call_mode" + }, + { + "type": "int", + "name": "audio_max_polyphony", + "setter": "set_audio_max_polyphony", + "getter": "get_audio_max_polyphony" + }, + { + "type": "bool", + "name": "movie_quit_on_finish", + "setter": "set_movie_quit_on_finish_enabled", + "getter": "is_movie_quit_on_finish_enabled" + } + ] + }, + { + "name": "AnimationRootNode", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AnimationNode", + "api_type": "core" + }, + { + "name": "AnimationTrackEditPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor" + }, + { + "name": "AnimationTree", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "AnimationProcessCallback", + "is_bitfield": false, + "values": [ + { + "name": "ANIMATION_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "ANIMATION_PROCESS_IDLE", + "value": 1 + }, + { + "name": "ANIMATION_PROCESS_MANUAL", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_post_process_key_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "animation", + "type": "Animation" + }, + { + "name": "track", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "object", + "type": "Object" + }, + { + "name": "object_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tree_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 712869711, + "arguments": [ + { + "name": "root", + "type": "AnimationNode" + } + ] + }, + { + "name": "get_tree_root", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1462070895, + "return_value": { + "type": "AnimationNode" + } + }, + { + "name": "set_process_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1723352826, + "arguments": [ + { + "name": "mode", + "type": "enum::AnimationTree.AnimationProcessCallback" + } + ] + }, + { + "name": "get_process_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 891317132, + "return_value": { + "type": "enum::AnimationTree.AnimationProcessCallback" + } + }, + { + "name": "set_animation_player", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "root", + "type": "NodePath" + } + ] + }, + { + "name": "get_animation_player", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_advance_expression_base_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_advance_expression_base_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_root_motion_track", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_root_motion_track", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_audio_max_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_polyphony", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_audio_max_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_root_motion_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_root_motion_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "get_root_motion_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_root_motion_position_accumulator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_root_motion_rotation_accumulator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "get_root_motion_scale_accumulator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + } + ], + "signals": [ + { + "name": "animation_player_changed" + }, + { + "name": "animation_started", + "arguments": [ + { + "name": "anim_name", + "type": "StringName" + } + ] + }, + { + "name": "animation_finished", + "arguments": [ + { + "name": "anim_name", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "AnimationRootNode", + "name": "tree_root", + "setter": "set_tree_root", + "getter": "get_tree_root" + }, + { + "type": "NodePath", + "name": "anim_player", + "setter": "set_animation_player", + "getter": "get_animation_player" + }, + { + "type": "NodePath", + "name": "advance_expression_base_node", + "setter": "set_advance_expression_base_node", + "getter": "get_advance_expression_base_node" + }, + { + "type": "bool", + "name": "active", + "setter": "set_active", + "getter": "is_active" + }, + { + "type": "int", + "name": "process_callback", + "setter": "set_process_callback", + "getter": "get_process_callback" + }, + { + "type": "int", + "name": "audio_max_polyphony", + "setter": "set_audio_max_polyphony", + "getter": "get_audio_max_polyphony" + }, + { + "type": "NodePath", + "name": "root_motion_track", + "setter": "set_root_motion_track", + "getter": "get_root_motion_track" + } + ] + }, + { + "name": "Area2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CollisionObject2D", + "api_type": "core", + "enums": [ + { + "name": "SpaceOverride", + "is_bitfield": false, + "values": [ + { + "name": "SPACE_OVERRIDE_DISABLED", + "value": 0 + }, + { + "name": "SPACE_OVERRIDE_COMBINE", + "value": 1 + }, + { + "name": "SPACE_OVERRIDE_COMBINE_REPLACE", + "value": 2 + }, + { + "name": "SPACE_OVERRIDE_REPLACE", + "value": 3 + }, + { + "name": "SPACE_OVERRIDE_REPLACE_COMBINE", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_gravity_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2879900038, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area2D.SpaceOverride" + } + ] + }, + { + "name": "get_gravity_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3990256304, + "return_value": { + "type": "enum::Area2D.SpaceOverride" + } + }, + { + "name": "set_gravity_is_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_gravity_a_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_gravity_point_unit_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity_point_unit_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gravity_point_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "center", + "type": "Vector2" + } + ] + }, + { + "name": "get_gravity_point_center", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_gravity_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "direction", + "type": "Vector2" + } + ] + }, + { + "name": "get_gravity_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gravity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2879900038, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area2D.SpaceOverride" + } + ] + }, + { + "name": "get_linear_damp_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3990256304, + "return_value": { + "type": "enum::Area2D.SpaceOverride" + } + }, + { + "name": "set_angular_damp_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2879900038, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area2D.SpaceOverride" + } + ] + }, + { + "name": "get_angular_damp_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3990256304, + "return_value": { + "type": "enum::Area2D.SpaceOverride" + } + }, + { + "name": "set_linear_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_angular_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_monitoring", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_monitoring", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_monitorable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_monitorable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_overlapping_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Node2D" + } + }, + { + "name": "get_overlapping_areas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Area2D" + } + }, + { + "name": "has_overlapping_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_overlapping_areas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "overlaps_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "overlaps_area", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "area", + "type": "Node" + } + ] + }, + { + "name": "set_audio_bus_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_audio_bus_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_audio_bus_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_overriding_audio_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "body_shape_entered", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node2D" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_shape_exited", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node2D" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_entered", + "arguments": [ + { + "name": "body", + "type": "Node2D" + } + ] + }, + { + "name": "body_exited", + "arguments": [ + { + "name": "body", + "type": "Node2D" + } + ] + }, + { + "name": "area_shape_entered", + "arguments": [ + { + "name": "area_rid", + "type": "RID" + }, + { + "name": "area", + "type": "Area2D" + }, + { + "name": "area_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "area_shape_exited", + "arguments": [ + { + "name": "area_rid", + "type": "RID" + }, + { + "name": "area", + "type": "Area2D" + }, + { + "name": "area_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "area_entered", + "arguments": [ + { + "name": "area", + "type": "Area2D" + } + ] + }, + { + "name": "area_exited", + "arguments": [ + { + "name": "area", + "type": "Area2D" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "monitoring", + "setter": "set_monitoring", + "getter": "is_monitoring" + }, + { + "type": "bool", + "name": "monitorable", + "setter": "set_monitorable", + "getter": "is_monitorable" + }, + { + "type": "int", + "name": "priority", + "setter": "set_priority", + "getter": "get_priority" + }, + { + "type": "int", + "name": "gravity_space_override", + "setter": "set_gravity_space_override_mode", + "getter": "get_gravity_space_override_mode" + }, + { + "type": "bool", + "name": "gravity_point", + "setter": "set_gravity_is_point", + "getter": "is_gravity_a_point" + }, + { + "type": "float", + "name": "gravity_point_unit_distance", + "setter": "set_gravity_point_unit_distance", + "getter": "get_gravity_point_unit_distance" + }, + { + "type": "Vector2", + "name": "gravity_point_center", + "setter": "set_gravity_point_center", + "getter": "get_gravity_point_center" + }, + { + "type": "Vector2", + "name": "gravity_direction", + "setter": "set_gravity_direction", + "getter": "get_gravity_direction" + }, + { + "type": "float", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + }, + { + "type": "int", + "name": "linear_damp_space_override", + "setter": "set_linear_damp_space_override_mode", + "getter": "get_linear_damp_space_override_mode" + }, + { + "type": "float", + "name": "linear_damp", + "setter": "set_linear_damp", + "getter": "get_linear_damp" + }, + { + "type": "int", + "name": "angular_damp_space_override", + "setter": "set_angular_damp_space_override_mode", + "getter": "get_angular_damp_space_override_mode" + }, + { + "type": "float", + "name": "angular_damp", + "setter": "set_angular_damp", + "getter": "get_angular_damp" + }, + { + "type": "bool", + "name": "audio_bus_override", + "setter": "set_audio_bus_override", + "getter": "is_overriding_audio_bus" + }, + { + "type": "StringName", + "name": "audio_bus_name", + "setter": "set_audio_bus_name", + "getter": "get_audio_bus_name" + } + ] + }, + { + "name": "Area3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CollisionObject3D", + "api_type": "core", + "enums": [ + { + "name": "SpaceOverride", + "is_bitfield": false, + "values": [ + { + "name": "SPACE_OVERRIDE_DISABLED", + "value": 0 + }, + { + "name": "SPACE_OVERRIDE_COMBINE", + "value": 1 + }, + { + "name": "SPACE_OVERRIDE_COMBINE_REPLACE", + "value": 2 + }, + { + "name": "SPACE_OVERRIDE_REPLACE", + "value": 3 + }, + { + "name": "SPACE_OVERRIDE_REPLACE_COMBINE", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_gravity_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311433571, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area3D.SpaceOverride" + } + ] + }, + { + "name": "get_gravity_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 958191869, + "return_value": { + "type": "enum::Area3D.SpaceOverride" + } + }, + { + "name": "set_gravity_is_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_gravity_a_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_gravity_point_unit_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity_point_unit_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gravity_point_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "center", + "type": "Vector3" + } + ] + }, + { + "name": "get_gravity_point_center", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_gravity_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "direction", + "type": "Vector3" + } + ] + }, + { + "name": "get_gravity_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gravity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311433571, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area3D.SpaceOverride" + } + ] + }, + { + "name": "get_linear_damp_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 958191869, + "return_value": { + "type": "enum::Area3D.SpaceOverride" + } + }, + { + "name": "set_angular_damp_space_override_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311433571, + "arguments": [ + { + "name": "space_override_mode", + "type": "enum::Area3D.SpaceOverride" + } + ] + }, + { + "name": "get_angular_damp_space_override_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 958191869, + "return_value": { + "type": "enum::Area3D.SpaceOverride" + } + }, + { + "name": "set_angular_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wind_force_magnitude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "wind_force_magnitude", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wind_force_magnitude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wind_attenuation_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "wind_attenuation_factor", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wind_attenuation_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wind_source_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "wind_source_path", + "type": "NodePath" + } + ] + }, + { + "name": "get_wind_source_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_monitorable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_monitorable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_monitoring", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_monitoring", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_overlapping_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Node3D" + } + }, + { + "name": "get_overlapping_areas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Area3D" + } + }, + { + "name": "has_overlapping_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_overlapping_areas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "overlaps_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "overlaps_area", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "area", + "type": "Node" + } + ] + }, + { + "name": "set_audio_bus_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_overriding_audio_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_audio_bus_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_audio_bus_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_use_reverb_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_reverb_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_reverb_bus_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_reverb_bus_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_reverb_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_reverb_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_reverb_uniformity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_reverb_uniformity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "body_shape_entered", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node3D" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_shape_exited", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node3D" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_entered", + "arguments": [ + { + "name": "body", + "type": "Node3D" + } + ] + }, + { + "name": "body_exited", + "arguments": [ + { + "name": "body", + "type": "Node3D" + } + ] + }, + { + "name": "area_shape_entered", + "arguments": [ + { + "name": "area_rid", + "type": "RID" + }, + { + "name": "area", + "type": "Area3D" + }, + { + "name": "area_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "area_shape_exited", + "arguments": [ + { + "name": "area_rid", + "type": "RID" + }, + { + "name": "area", + "type": "Area3D" + }, + { + "name": "area_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "area_entered", + "arguments": [ + { + "name": "area", + "type": "Area3D" + } + ] + }, + { + "name": "area_exited", + "arguments": [ + { + "name": "area", + "type": "Area3D" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "monitoring", + "setter": "set_monitoring", + "getter": "is_monitoring" + }, + { + "type": "bool", + "name": "monitorable", + "setter": "set_monitorable", + "getter": "is_monitorable" + }, + { + "type": "int", + "name": "priority", + "setter": "set_priority", + "getter": "get_priority" + }, + { + "type": "int", + "name": "gravity_space_override", + "setter": "set_gravity_space_override_mode", + "getter": "get_gravity_space_override_mode" + }, + { + "type": "bool", + "name": "gravity_point", + "setter": "set_gravity_is_point", + "getter": "is_gravity_a_point" + }, + { + "type": "float", + "name": "gravity_point_unit_distance", + "setter": "set_gravity_point_unit_distance", + "getter": "get_gravity_point_unit_distance" + }, + { + "type": "Vector3", + "name": "gravity_point_center", + "setter": "set_gravity_point_center", + "getter": "get_gravity_point_center" + }, + { + "type": "Vector3", + "name": "gravity_direction", + "setter": "set_gravity_direction", + "getter": "get_gravity_direction" + }, + { + "type": "float", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + }, + { + "type": "int", + "name": "linear_damp_space_override", + "setter": "set_linear_damp_space_override_mode", + "getter": "get_linear_damp_space_override_mode" + }, + { + "type": "float", + "name": "linear_damp", + "setter": "set_linear_damp", + "getter": "get_linear_damp" + }, + { + "type": "int", + "name": "angular_damp_space_override", + "setter": "set_angular_damp_space_override_mode", + "getter": "get_angular_damp_space_override_mode" + }, + { + "type": "float", + "name": "angular_damp", + "setter": "set_angular_damp", + "getter": "get_angular_damp" + }, + { + "type": "float", + "name": "wind_force_magnitude", + "setter": "set_wind_force_magnitude", + "getter": "get_wind_force_magnitude" + }, + { + "type": "float", + "name": "wind_attenuation_factor", + "setter": "set_wind_attenuation_factor", + "getter": "get_wind_attenuation_factor" + }, + { + "type": "NodePath", + "name": "wind_source_path", + "setter": "set_wind_source_path", + "getter": "get_wind_source_path" + }, + { + "type": "bool", + "name": "audio_bus_override", + "setter": "set_audio_bus_override", + "getter": "is_overriding_audio_bus" + }, + { + "type": "StringName", + "name": "audio_bus_name", + "setter": "set_audio_bus_name", + "getter": "get_audio_bus_name" + }, + { + "type": "bool", + "name": "reverb_bus_enabled", + "setter": "set_use_reverb_bus", + "getter": "is_using_reverb_bus" + }, + { + "type": "StringName", + "name": "reverb_bus_name", + "setter": "set_reverb_bus_name", + "getter": "get_reverb_bus_name" + }, + { + "type": "float", + "name": "reverb_bus_amount", + "setter": "set_reverb_amount", + "getter": "get_reverb_amount" + }, + { + "type": "float", + "name": "reverb_bus_uniformity", + "setter": "set_reverb_uniformity", + "getter": "get_reverb_uniformity" + } + ] + }, + { + "name": "ArrayMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Mesh", + "api_type": "core", + "methods": [ + { + "name": "add_blend_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_blend_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_blend_shape_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_blend_shape_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "clear_blend_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_blend_shape_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 227983991, + "arguments": [ + { + "name": "mode", + "type": "enum::Mesh.BlendShapeMode" + } + ] + }, + { + "name": "get_blend_shape_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 836485024, + "return_value": { + "type": "enum::Mesh.BlendShapeMode" + } + }, + { + "name": "add_surface_from_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 172284304, + "arguments": [ + { + "name": "primitive", + "type": "enum::Mesh.PrimitiveType" + }, + { + "name": "arrays", + "type": "Array" + }, + { + "name": "blend_shapes", + "type": "typedarray::Array", + "default_value": "[]" + }, + { + "name": "lods", + "type": "Dictionary", + "default_value": "{}" + }, + { + "name": "flags", + "type": "bitfield::Mesh.ArrayFormat", + "default_value": "0" + } + ] + }, + { + "name": "clear_surfaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "surface_update_vertex_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3837166854, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "surface_update_attribute_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3837166854, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "surface_update_skin_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3837166854, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "surface_get_array_len", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_get_array_index_len", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3718287884, + "return_value": { + "type": "bitfield::Mesh.ArrayFormat" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_get_primitive_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4141943888, + "return_value": { + "type": "enum::Mesh.PrimitiveType" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_find_by_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "surface_set_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "surface_get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "regen_normal_maps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "lightmap_unwrap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1476641071, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "texel_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_shadow_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3377897901, + "arguments": [ + { + "name": "mesh", + "type": "ArrayMesh" + } + ] + }, + { + "name": "get_shadow_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3206942465, + "return_value": { + "type": "ArrayMesh" + } + } + ], + "properties": [ + { + "type": "int", + "name": "blend_shape_mode", + "setter": "set_blend_shape_mode", + "getter": "get_blend_shape_mode" + }, + { + "type": "AABB", + "name": "custom_aabb", + "setter": "set_custom_aabb", + "getter": "get_custom_aabb" + }, + { + "type": "ArrayMesh", + "name": "shadow_mesh", + "setter": "set_shadow_mesh", + "getter": "get_shadow_mesh" + } + ] + }, + { + "name": "ArrayOccluder3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Occluder3D", + "api_type": "core", + "methods": [ + { + "name": "set_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3233972621, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector3Array" + }, + { + "name": "indices", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "set_vertices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "set_indices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "indices", + "type": "PackedInt32Array" + } + ] + } + ], + "properties": [ + { + "type": "PackedVector3Array", + "name": "vertices", + "setter": "set_vertices", + "getter": "get_vertices" + }, + { + "type": "PackedInt32Array", + "name": "indices", + "setter": "set_indices", + "getter": "get_indices" + } + ] + }, + { + "name": "AspectRatioContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "StretchMode", + "is_bitfield": false, + "values": [ + { + "name": "STRETCH_WIDTH_CONTROLS_HEIGHT", + "value": 0 + }, + { + "name": "STRETCH_HEIGHT_CONTROLS_WIDTH", + "value": 1 + }, + { + "name": "STRETCH_FIT", + "value": 2 + }, + { + "name": "STRETCH_COVER", + "value": 3 + } + ] + }, + { + "name": "AlignmentMode", + "is_bitfield": false, + "values": [ + { + "name": "ALIGNMENT_BEGIN", + "value": 0 + }, + { + "name": "ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "ALIGNMENT_END", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1876743467, + "arguments": [ + { + "name": "stretch_mode", + "type": "enum::AspectRatioContainer.StretchMode" + } + ] + }, + { + "name": "get_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3416449033, + "return_value": { + "type": "enum::AspectRatioContainer.StretchMode" + } + }, + { + "name": "set_alignment_horizontal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2147829016, + "arguments": [ + { + "name": "alignment_horizontal", + "type": "enum::AspectRatioContainer.AlignmentMode" + } + ] + }, + { + "name": "get_alignment_horizontal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3838875429, + "return_value": { + "type": "enum::AspectRatioContainer.AlignmentMode" + } + }, + { + "name": "set_alignment_vertical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2147829016, + "arguments": [ + { + "name": "alignment_vertical", + "type": "enum::AspectRatioContainer.AlignmentMode" + } + ] + }, + { + "name": "get_alignment_vertical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3838875429, + "return_value": { + "type": "enum::AspectRatioContainer.AlignmentMode" + } + } + ], + "properties": [ + { + "type": "float", + "name": "ratio", + "setter": "set_ratio", + "getter": "get_ratio" + }, + { + "type": "int", + "name": "stretch_mode", + "setter": "set_stretch_mode", + "getter": "get_stretch_mode" + }, + { + "type": "int", + "name": "alignment_horizontal", + "setter": "set_alignment_horizontal", + "getter": "get_alignment_horizontal" + }, + { + "type": "int", + "name": "alignment_vertical", + "setter": "set_alignment_vertical", + "getter": "get_alignment_vertical" + } + ] + }, + { + "name": "AtlasTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_atlas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "atlas", + "type": "Texture2D" + } + ] + }, + { + "name": "get_atlas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "region", + "type": "Rect2" + } + ] + }, + { + "name": "get_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "margin", + "type": "Rect2" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_filter_clip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_filter_clip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "atlas", + "setter": "set_atlas", + "getter": "get_atlas" + }, + { + "type": "Rect2", + "name": "region", + "setter": "set_region", + "getter": "get_region" + }, + { + "type": "Rect2", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "bool", + "name": "filter_clip", + "setter": "set_filter_clip", + "getter": "has_filter_clip" + } + ] + }, + { + "name": "AudioBusLayout", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core" + }, + { + "name": "AudioEffect", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_instantiate", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AudioEffectInstance" + } + } + ] + }, + { + "name": "AudioEffectAmplify", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "volume", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "volume_db", + "setter": "set_volume_db", + "getter": "get_volume_db" + } + ] + }, + { + "name": "AudioEffectBandLimitFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectBandPassFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectCapture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "can_get_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2649534757, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_buffer_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "buffer_length_seconds", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_buffer_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_frames_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_discarded_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "get_buffer_length_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_pushed_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + } + ], + "properties": [ + { + "type": "float", + "name": "buffer_length", + "setter": "set_buffer_length", + "getter": "get_buffer_length" + } + ] + }, + { + "name": "AudioEffectChorus", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_voice_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "voices", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_voice_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_voice_delay_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "delay_ms", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_delay_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_voice_rate_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "rate_hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_rate_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_voice_depth_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "depth_ms", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_depth_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_voice_level_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "level_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_level_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_voice_cutoff_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "cutoff_hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_cutoff_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_voice_pan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "pan", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_voice_pan", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "voice_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_wet", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wet", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dry", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dry", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "voice_count", + "setter": "set_voice_count", + "getter": "get_voice_count" + }, + { + "type": "float", + "name": "dry", + "setter": "set_dry", + "getter": "get_dry" + }, + { + "type": "float", + "name": "wet", + "setter": "set_wet", + "getter": "get_wet" + } + ] + }, + { + "name": "AudioEffectCompressor", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attack_us", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "attack_us", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_attack_us", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_release_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "release_ms", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_release_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mix", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sidechain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "sidechain", + "type": "StringName" + } + ] + }, + { + "name": "get_sidechain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + } + ], + "properties": [ + { + "type": "float", + "name": "threshold", + "setter": "set_threshold", + "getter": "get_threshold" + }, + { + "type": "float", + "name": "ratio", + "setter": "set_ratio", + "getter": "get_ratio" + }, + { + "type": "float", + "name": "gain", + "setter": "set_gain", + "getter": "get_gain" + }, + { + "type": "float", + "name": "attack_us", + "setter": "set_attack_us", + "getter": "get_attack_us" + }, + { + "type": "float", + "name": "release_ms", + "setter": "set_release_ms", + "getter": "get_release_ms" + }, + { + "type": "float", + "name": "mix", + "setter": "set_mix", + "getter": "get_mix" + }, + { + "type": "StringName", + "name": "sidechain", + "setter": "set_sidechain", + "getter": "get_sidechain" + } + ] + }, + { + "name": "AudioEffectDelay", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_dry", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dry", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap1_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "amount", + "type": "bool" + } + ] + }, + { + "name": "is_tap1_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tap1_delay_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap1_delay_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap1_level_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap1_level_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap1_pan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap1_pan", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap2_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "amount", + "type": "bool" + } + ] + }, + { + "name": "is_tap2_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tap2_delay_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap2_delay_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap2_level_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap2_level_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap2_pan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap2_pan", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_feedback_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "amount", + "type": "bool" + } + ] + }, + { + "name": "is_feedback_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_feedback_delay_ms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_feedback_delay_ms", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_feedback_level_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_feedback_level_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_feedback_lowpass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_feedback_lowpass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "dry", + "setter": "set_dry", + "getter": "get_dry" + }, + { + "type": "bool", + "name": "tap1_active", + "setter": "set_tap1_active", + "getter": "is_tap1_active" + }, + { + "type": "float", + "name": "tap1_delay_ms", + "setter": "set_tap1_delay_ms", + "getter": "get_tap1_delay_ms" + }, + { + "type": "float", + "name": "tap1_level_db", + "setter": "set_tap1_level_db", + "getter": "get_tap1_level_db" + }, + { + "type": "float", + "name": "tap1_pan", + "setter": "set_tap1_pan", + "getter": "get_tap1_pan" + }, + { + "type": "bool", + "name": "tap2_active", + "setter": "set_tap2_active", + "getter": "is_tap2_active" + }, + { + "type": "float", + "name": "tap2_delay_ms", + "setter": "set_tap2_delay_ms", + "getter": "get_tap2_delay_ms" + }, + { + "type": "float", + "name": "tap2_level_db", + "setter": "set_tap2_level_db", + "getter": "get_tap2_level_db" + }, + { + "type": "float", + "name": "tap2_pan", + "setter": "set_tap2_pan", + "getter": "get_tap2_pan" + }, + { + "type": "bool", + "name": "feedback_active", + "setter": "set_feedback_active", + "getter": "is_feedback_active" + }, + { + "type": "float", + "name": "feedback_delay_ms", + "setter": "set_feedback_delay_ms", + "getter": "get_feedback_delay_ms" + }, + { + "type": "float", + "name": "feedback_level_db", + "setter": "set_feedback_level_db", + "getter": "get_feedback_level_db" + }, + { + "type": "float", + "name": "feedback_lowpass", + "setter": "set_feedback_lowpass", + "getter": "get_feedback_lowpass" + } + ] + }, + { + "name": "AudioEffectDistortion", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_CLIP", + "value": 0 + }, + { + "name": "MODE_ATAN", + "value": 1 + }, + { + "name": "MODE_LOFI", + "value": 2 + }, + { + "name": "MODE_OVERDRIVE", + "value": 3 + }, + { + "name": "MODE_WAVESHAPE", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1314744793, + "arguments": [ + { + "name": "mode", + "type": "enum::AudioEffectDistortion.Mode" + } + ] + }, + { + "name": "get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 809118343, + "return_value": { + "type": "enum::AudioEffectDistortion.Mode" + } + }, + { + "name": "set_pre_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pre_gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pre_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_keep_hf_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "keep_hf_hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_keep_hf_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_drive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "drive", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_drive", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_post_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "post_gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_post_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "mode", + "setter": "set_mode", + "getter": "get_mode" + }, + { + "type": "float", + "name": "pre_gain", + "setter": "set_pre_gain", + "getter": "get_pre_gain" + }, + { + "type": "float", + "name": "keep_hf_hz", + "setter": "set_keep_hf_hz", + "getter": "get_keep_hf_hz" + }, + { + "type": "float", + "name": "drive", + "setter": "set_drive", + "getter": "get_drive" + }, + { + "type": "float", + "name": "post_gain", + "setter": "set_post_gain", + "getter": "get_post_gain" + } + ] + }, + { + "name": "AudioEffectEQ", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_band_gain_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "band_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_band_gain_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "band_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_band_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "AudioEffectEQ10", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectEQ", + "api_type": "core" + }, + { + "name": "AudioEffectEQ21", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectEQ", + "api_type": "core" + }, + { + "name": "AudioEffectEQ6", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectEQ", + "api_type": "core" + }, + { + "name": "AudioEffectFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "enums": [ + { + "name": "FilterDB", + "is_bitfield": false, + "values": [ + { + "name": "FILTER_6DB", + "value": 0 + }, + { + "name": "FILTER_12DB", + "value": 1 + }, + { + "name": "FILTER_18DB", + "value": 2 + }, + { + "name": "FILTER_24DB", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_cutoff", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "freq", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cutoff", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_resonance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_resonance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 771740901, + "arguments": [ + { + "name": "amount", + "type": "enum::AudioEffectFilter.FilterDB" + } + ] + }, + { + "name": "get_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3981721890, + "return_value": { + "type": "enum::AudioEffectFilter.FilterDB" + } + } + ], + "properties": [ + { + "type": "float", + "name": "cutoff_hz", + "setter": "set_cutoff", + "getter": "get_cutoff" + }, + { + "type": "float", + "name": "resonance", + "setter": "set_resonance", + "getter": "get_resonance" + }, + { + "type": "float", + "name": "gain", + "setter": "set_gain", + "getter": "get_gain" + }, + { + "type": "int", + "name": "db", + "setter": "set_db", + "getter": "get_db" + } + ] + }, + { + "name": "AudioEffectHighPassFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectHighShelfFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectInstance", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "src_buffer", + "type": "const void*" + }, + { + "name": "dst_buffer", + "type": "AudioFrame*" + }, + { + "name": "frame_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_process_silence", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "AudioEffectLimiter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_ceiling_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ceiling", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ceiling_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_threshold_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_threshold_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_soft_clip_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "soft_clip", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_soft_clip_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_soft_clip_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "soft_clip", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_soft_clip_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "ceiling_db", + "setter": "set_ceiling_db", + "getter": "get_ceiling_db" + }, + { + "type": "float", + "name": "threshold_db", + "setter": "set_threshold_db", + "getter": "get_threshold_db" + }, + { + "type": "float", + "name": "soft_clip_db", + "setter": "set_soft_clip_db", + "getter": "get_soft_clip_db" + }, + { + "type": "float", + "name": "soft_clip_ratio", + "setter": "set_soft_clip_ratio", + "getter": "get_soft_clip_ratio" + } + ] + }, + { + "name": "AudioEffectLowPassFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectLowShelfFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectNotchFilter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffectFilter", + "api_type": "core" + }, + { + "name": "AudioEffectPanner", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_pan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "cpanume", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pan", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "pan", + "setter": "set_pan", + "getter": "get_pan" + } + ] + }, + { + "name": "AudioEffectPhaser", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_range_min_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_range_min_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_range_max_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_range_max_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rate_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rate_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_feedback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fbk", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_feedback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "range_min_hz", + "setter": "set_range_min_hz", + "getter": "get_range_min_hz" + }, + { + "type": "float", + "name": "range_max_hz", + "setter": "set_range_max_hz", + "getter": "get_range_max_hz" + }, + { + "type": "float", + "name": "rate_hz", + "setter": "set_rate_hz", + "getter": "get_rate_hz" + }, + { + "type": "float", + "name": "feedback", + "setter": "set_feedback", + "getter": "get_feedback" + }, + { + "type": "float", + "name": "depth", + "setter": "set_depth", + "getter": "get_depth" + } + ] + }, + { + "name": "AudioEffectPitchShift", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "enums": [ + { + "name": "FFTSize", + "is_bitfield": false, + "values": [ + { + "name": "FFT_SIZE_256", + "value": 0 + }, + { + "name": "FFT_SIZE_512", + "value": 1 + }, + { + "name": "FFT_SIZE_1024", + "value": 2 + }, + { + "name": "FFT_SIZE_2048", + "value": 3 + }, + { + "name": "FFT_SIZE_4096", + "value": 4 + }, + { + "name": "FFT_SIZE_MAX", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "set_pitch_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rate", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pitch_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fft_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323518741, + "arguments": [ + { + "name": "size", + "type": "enum::AudioEffectPitchShift.FFTSize" + } + ] + }, + { + "name": "get_fft_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2361246789, + "return_value": { + "type": "enum::AudioEffectPitchShift.FFTSize" + } + } + ], + "properties": [ + { + "type": "float", + "name": "pitch_scale", + "setter": "set_pitch_scale", + "getter": "get_pitch_scale" + }, + { + "type": "float", + "name": "oversampling", + "setter": "set_oversampling", + "getter": "get_oversampling" + }, + { + "type": "int", + "name": "fft_size", + "setter": "set_fft_size", + "getter": "get_fft_size" + } + ] + }, + { + "name": "AudioEffectRecord", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_recording_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "record", + "type": "bool" + } + ] + }, + { + "name": "is_recording_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 60648488, + "arguments": [ + { + "name": "format", + "type": "enum::AudioStreamWAV.Format" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3151724922, + "return_value": { + "type": "enum::AudioStreamWAV.Format" + } + }, + { + "name": "get_recording", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2964110865, + "return_value": { + "type": "AudioStreamWAV" + } + } + ], + "properties": [ + { + "type": "int", + "name": "format", + "setter": "set_format", + "getter": "get_format" + } + ] + }, + { + "name": "AudioEffectReverb", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_predelay_msec", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "msec", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_predelay_msec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_predelay_feedback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "feedback", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_predelay_feedback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_room_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_room_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_spread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_spread", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dry", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dry", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wet", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wet", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_hpf", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_hpf", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "predelay_msec", + "setter": "set_predelay_msec", + "getter": "get_predelay_msec" + }, + { + "type": "float", + "name": "predelay_feedback", + "setter": "set_predelay_feedback", + "getter": "get_predelay_feedback" + }, + { + "type": "float", + "name": "room_size", + "setter": "set_room_size", + "getter": "get_room_size" + }, + { + "type": "float", + "name": "damping", + "setter": "set_damping", + "getter": "get_damping" + }, + { + "type": "float", + "name": "spread", + "setter": "set_spread", + "getter": "get_spread" + }, + { + "type": "float", + "name": "hipass", + "setter": "set_hpf", + "getter": "get_hpf" + }, + { + "type": "float", + "name": "dry", + "setter": "set_dry", + "getter": "get_dry" + }, + { + "type": "float", + "name": "wet", + "setter": "set_wet", + "getter": "get_wet" + } + ] + }, + { + "name": "AudioEffectSpectrumAnalyzer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "enums": [ + { + "name": "FFTSize", + "is_bitfield": false, + "values": [ + { + "name": "FFT_SIZE_256", + "value": 0 + }, + { + "name": "FFT_SIZE_512", + "value": 1 + }, + { + "name": "FFT_SIZE_1024", + "value": 2 + }, + { + "name": "FFT_SIZE_2048", + "value": 3 + }, + { + "name": "FFT_SIZE_4096", + "value": 4 + }, + { + "name": "FFT_SIZE_MAX", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "set_buffer_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_buffer_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tap_back_pos", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tap_back_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fft_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1202879215, + "arguments": [ + { + "name": "size", + "type": "enum::AudioEffectSpectrumAnalyzer.FFTSize" + } + ] + }, + { + "name": "get_fft_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3925405343, + "return_value": { + "type": "enum::AudioEffectSpectrumAnalyzer.FFTSize" + } + } + ], + "properties": [ + { + "type": "float", + "name": "buffer_length", + "setter": "set_buffer_length", + "getter": "get_buffer_length" + }, + { + "type": "float", + "name": "tap_back_pos", + "setter": "set_tap_back_pos", + "getter": "get_tap_back_pos" + }, + { + "type": "int", + "name": "fft_size", + "setter": "set_fft_size", + "getter": "get_fft_size" + } + ] + }, + { + "name": "AudioEffectSpectrumAnalyzerInstance", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "AudioEffectInstance", + "api_type": "core", + "enums": [ + { + "name": "MagnitudeMode", + "is_bitfield": false, + "values": [ + { + "name": "MAGNITUDE_AVERAGE", + "value": 0 + }, + { + "name": "MAGNITUDE_MAX", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "get_magnitude_for_frequency_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2693213071, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "from_hz", + "type": "float", + "meta": "float" + }, + { + "name": "to_hz", + "type": "float", + "meta": "float" + }, + { + "name": "mode", + "type": "enum::AudioEffectSpectrumAnalyzerInstance.MagnitudeMode", + "default_value": "1" + } + ] + } + ] + }, + { + "name": "AudioEffectStereoEnhance", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioEffect", + "api_type": "core", + "methods": [ + { + "name": "set_pan_pullout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pan_pullout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_time_pullout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_time_pullout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_surround", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_surround", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "pan_pullout", + "setter": "set_pan_pullout", + "getter": "get_pan_pullout" + }, + { + "type": "float", + "name": "time_pullout_ms", + "setter": "set_time_pullout", + "getter": "get_time_pullout" + }, + { + "type": "float", + "name": "surround", + "setter": "set_surround", + "getter": "get_surround" + } + ] + }, + { + "name": "AudioListener2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "make_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_current", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "AudioListener3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "make_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_current", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_listener_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + } + ] + }, + { + "name": "AudioServer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "SpeakerMode", + "is_bitfield": false, + "values": [ + { + "name": "SPEAKER_MODE_STEREO", + "value": 0 + }, + { + "name": "SPEAKER_SURROUND_31", + "value": 1 + }, + { + "name": "SPEAKER_SURROUND_51", + "value": 2 + }, + { + "name": "SPEAKER_SURROUND_71", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_bus_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "remove_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "at_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_bus_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458036349, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bus_name", + "type": "StringName" + } + ] + }, + { + "name": "get_bus_channels", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bus_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_send", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "send", + "type": "StringName" + } + ] + }, + { + "name": "get_bus_send", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_solo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_bus_solo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_mute", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_bus_mute", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_bypass_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_bus_bypassing_effects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_bus_effect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4147765248, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect", + "type": "AudioEffect" + }, + { + "name": "at_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_bus_effect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_effect_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_effect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 726064442, + "return_value": { + "type": "AudioEffect" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_effect_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2887144608, + "return_value": { + "type": "AudioEffectInstance" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "channel", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "swap_bus_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1649997291, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "by_effect_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bus_effect_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_bus_effect_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "effect_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_peak_volume_left_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "channel", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bus_peak_volume_right_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "bus_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "channel", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_playback_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_playback_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "lock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "unlock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_speaker_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2549190337, + "return_value": { + "type": "enum::AudioServer.SpeakerMode" + } + }, + { + "name": "get_mix_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_output_device_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_output_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_output_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_time_to_next_mix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_time_since_last_mix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_output_latency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_input_device_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_input_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_input_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_bus_layout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3319058824, + "arguments": [ + { + "name": "bus_layout", + "type": "AudioBusLayout" + } + ] + }, + { + "name": "generate_bus_layout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3769973890, + "return_value": { + "type": "AudioBusLayout" + } + }, + { + "name": "set_enable_tagging_used_audio_streams", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + } + ], + "signals": [ + { + "name": "bus_layout_changed" + } + ], + "properties": [ + { + "type": "int", + "name": "bus_count", + "setter": "set_bus_count", + "getter": "get_bus_count" + }, + { + "type": "String", + "name": "output_device", + "setter": "set_output_device", + "getter": "get_output_device" + }, + { + "type": "String", + "name": "input_device", + "setter": "set_input_device", + "getter": "get_input_device" + }, + { + "type": "float", + "name": "playback_speed_scale", + "setter": "set_playback_speed_scale", + "getter": "get_playback_speed_scale" + } + ] + }, + { + "name": "AudioStream", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_instantiate_playback", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AudioStreamPlayback" + } + }, + { + "name": "_get_stream_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_length", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_is_monophonic", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_bpm", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_get_beat_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "is_monophonic", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "instantiate_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 210135309, + "return_value": { + "type": "AudioStreamPlayback" + } + } + ] + }, + { + "name": "AudioStreamGenerator", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "methods": [ + { + "name": "set_mix_rate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "hz", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mix_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_buffer_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_buffer_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "mix_rate", + "setter": "set_mix_rate", + "getter": "get_mix_rate" + }, + { + "type": "float", + "name": "buffer_length", + "setter": "set_buffer_length", + "getter": "get_buffer_length" + } + ] + }, + { + "name": "AudioStreamGeneratorPlayback", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "AudioStreamPlaybackResampled", + "api_type": "core", + "methods": [ + { + "name": "push_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975407249, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "frame", + "type": "Vector2" + } + ] + }, + { + "name": "can_push_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1361156557, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "frames", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_frames_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_skips", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "clear_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "AudioStreamMP3", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "methods": [ + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_loop_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_loop_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_bpm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bpm", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_bpm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_beat_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_beat_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_bar_beats", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bar_beats", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "data", + "setter": "set_data", + "getter": "get_data" + }, + { + "type": "float", + "name": "bpm", + "setter": "set_bpm", + "getter": "get_bpm" + }, + { + "type": "int", + "name": "beat_count", + "setter": "set_beat_count", + "getter": "get_beat_count" + }, + { + "type": "int", + "name": "bar_beats", + "setter": "set_bar_beats", + "getter": "get_bar_beats" + }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, + { + "type": "float", + "name": "loop_offset", + "setter": "set_loop_offset", + "getter": "get_loop_offset" + } + ] + }, + { + "name": "AudioStreamMicrophone", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core" + }, + { + "name": "AudioStreamOggVorbis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "methods": [ + { + "name": "set_packet_sequence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 438882457, + "arguments": [ + { + "name": "packet_sequence", + "type": "OggPacketSequence" + } + ] + }, + { + "name": "get_packet_sequence", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2801636033, + "return_value": { + "type": "OggPacketSequence" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_loop_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_loop_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_bpm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bpm", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_bpm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_beat_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_beat_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_bar_beats", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bar_beats", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Object", + "name": "packet_sequence", + "setter": "set_packet_sequence", + "getter": "get_packet_sequence" + }, + { + "type": "float", + "name": "bpm", + "setter": "set_bpm", + "getter": "get_bpm" + }, + { + "type": "int", + "name": "beat_count", + "setter": "set_beat_count", + "getter": "get_beat_count" + }, + { + "type": "int", + "name": "bar_beats", + "setter": "set_bar_beats", + "getter": "get_bar_beats" + }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, + { + "type": "float", + "name": "loop_offset", + "setter": "set_loop_offset", + "getter": "get_loop_offset" + } + ] + }, + { + "name": "AudioStreamPlayback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_start", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "from_pos", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_stop", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_is_playing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_loop_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_playback_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_seek", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "position", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_mix", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "buffer", + "type": "AudioFrame*" + }, + { + "name": "rate_scale", + "type": "float", + "meta": "float" + }, + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_tag_used_streams", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + } + ] + }, + { + "name": "AudioStreamPlaybackOggVorbis", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStreamPlaybackResampled", + "api_type": "core" + }, + { + "name": "AudioStreamPlaybackPolyphonic", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "AudioStreamPlayback", + "api_type": "core", + "constants": [ + { + "name": "INVALID_ID", + "value": -1 + } + ], + "methods": [ + { + "name": "play_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3792189967, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "stream", + "type": "AudioStream" + }, + { + "name": "from_offset", + "type": "float", + "meta": "float", + "default_value": "0" + }, + { + "name": "volume_db", + "type": "float", + "meta": "float", + "default_value": "0" + }, + { + "name": "pitch_scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "set_stream_volume", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "stream", + "type": "int", + "meta": "int64" + }, + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_stream_pitch_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "stream", + "type": "int", + "meta": "int64" + }, + { + "name": "pitch_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "is_stream_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "stream", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "stop_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "stream", + "type": "int", + "meta": "int64" + } + ] + } + ] + }, + { + "name": "AudioStreamPlaybackResampled", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStreamPlayback", + "api_type": "core", + "methods": [ + { + "name": "_mix_resampled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "dst_buffer", + "type": "AudioFrame*" + }, + { + "name": "frame_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_stream_sampling_rate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "begin_resample", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "AudioStreamPlayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "MixTarget", + "is_bitfield": false, + "values": [ + { + "name": "MIX_TARGET_STEREO", + "value": 0 + }, + { + "name": "MIX_TARGET_SURROUND", + "value": 1 + }, + { + "name": "MIX_TARGET_CENTER", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2210767741, + "arguments": [ + { + "name": "stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 160907539, + "return_value": { + "type": "AudioStream" + } + }, + { + "name": "set_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pitch_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pitch_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pitch_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3041634712, + "arguments": [ + { + "name": "from_position", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "to_position", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_playback_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bus", + "type": "StringName" + } + ] + }, + { + "name": "get_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_autoplay_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_mix_target", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2300306138, + "arguments": [ + { + "name": "mix_target", + "type": "enum::AudioStreamPlayer.MixTarget" + } + ] + }, + { + "name": "get_mix_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 172807476, + "return_value": { + "type": "enum::AudioStreamPlayer.MixTarget" + } + }, + { + "name": "set_stream_paused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pause", + "type": "bool" + } + ] + }, + { + "name": "get_stream_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_polyphony", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 210135309, + "return_value": { + "type": "AudioStreamPlayback" + } + } + ], + "signals": [ + { + "name": "finished" + } + ], + "properties": [ + { + "type": "AudioStream", + "name": "stream", + "setter": "set_stream", + "getter": "get_stream" + }, + { + "type": "float", + "name": "volume_db", + "setter": "set_volume_db", + "getter": "get_volume_db" + }, + { + "type": "float", + "name": "pitch_scale", + "setter": "set_pitch_scale", + "getter": "get_pitch_scale" + }, + { + "type": "bool", + "name": "playing", + "setter": "_set_playing", + "getter": "is_playing" + }, + { + "type": "bool", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "is_autoplay_enabled" + }, + { + "type": "bool", + "name": "stream_paused", + "setter": "set_stream_paused", + "getter": "get_stream_paused" + }, + { + "type": "int", + "name": "mix_target", + "setter": "set_mix_target", + "getter": "get_mix_target" + }, + { + "type": "int", + "name": "max_polyphony", + "setter": "set_max_polyphony", + "getter": "get_max_polyphony" + }, + { + "type": "StringName", + "name": "bus", + "setter": "set_bus", + "getter": "get_bus" + } + ] + }, + { + "name": "AudioStreamPlayer2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2210767741, + "arguments": [ + { + "name": "stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 160907539, + "return_value": { + "type": "AudioStream" + } + }, + { + "name": "set_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pitch_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pitch_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pitch_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3041634712, + "arguments": [ + { + "name": "from_position", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "to_position", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_playback_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bus", + "type": "StringName" + } + ] + }, + { + "name": "get_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_autoplay_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixels", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attenuation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_attenuation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_area_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_area_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_stream_paused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pause", + "type": "bool" + } + ] + }, + { + "name": "get_stream_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_polyphony", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_panning_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "panning_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_panning_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "has_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 210135309, + "return_value": { + "type": "AudioStreamPlayback" + } + } + ], + "signals": [ + { + "name": "finished" + } + ], + "properties": [ + { + "type": "AudioStream", + "name": "stream", + "setter": "set_stream", + "getter": "get_stream" + }, + { + "type": "float", + "name": "volume_db", + "setter": "set_volume_db", + "getter": "get_volume_db" + }, + { + "type": "float", + "name": "pitch_scale", + "setter": "set_pitch_scale", + "getter": "get_pitch_scale" + }, + { + "type": "bool", + "name": "playing", + "setter": "_set_playing", + "getter": "is_playing" + }, + { + "type": "bool", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "is_autoplay_enabled" + }, + { + "type": "bool", + "name": "stream_paused", + "setter": "set_stream_paused", + "getter": "get_stream_paused" + }, + { + "type": "float", + "name": "max_distance", + "setter": "set_max_distance", + "getter": "get_max_distance" + }, + { + "type": "float", + "name": "attenuation", + "setter": "set_attenuation", + "getter": "get_attenuation" + }, + { + "type": "int", + "name": "max_polyphony", + "setter": "set_max_polyphony", + "getter": "get_max_polyphony" + }, + { + "type": "float", + "name": "panning_strength", + "setter": "set_panning_strength", + "getter": "get_panning_strength" + }, + { + "type": "StringName", + "name": "bus", + "setter": "set_bus", + "getter": "get_bus" + }, + { + "type": "int", + "name": "area_mask", + "setter": "set_area_mask", + "getter": "get_area_mask" + } + ] + }, + { + "name": "AudioStreamPlayer3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "AttenuationModel", + "is_bitfield": false, + "values": [ + { + "name": "ATTENUATION_INVERSE_DISTANCE", + "value": 0 + }, + { + "name": "ATTENUATION_INVERSE_SQUARE_DISTANCE", + "value": 1 + }, + { + "name": "ATTENUATION_LOGARITHMIC", + "value": 2 + }, + { + "name": "ATTENUATION_DISABLED", + "value": 3 + } + ] + }, + { + "name": "DopplerTracking", + "is_bitfield": false, + "values": [ + { + "name": "DOPPLER_TRACKING_DISABLED", + "value": 0 + }, + { + "name": "DOPPLER_TRACKING_IDLE_STEP", + "value": 1 + }, + { + "name": "DOPPLER_TRACKING_PHYSICS_STEP", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2210767741, + "arguments": [ + { + "name": "stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 160907539, + "return_value": { + "type": "AudioStream" + } + }, + { + "name": "set_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "volume_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_unit_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "unit_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_unit_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pitch_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pitch_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pitch_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3041634712, + "arguments": [ + { + "name": "from_position", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "to_position", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_playback_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bus", + "type": "StringName" + } + ] + }, + { + "name": "get_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_autoplay_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "meters", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_area_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_area_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_emission_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_angle_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_emission_angle_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_emission_angle_filter_attenuation_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_angle_filter_attenuation_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attenuation_filter_cutoff_hz", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_attenuation_filter_cutoff_hz", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attenuation_filter_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_attenuation_filter_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attenuation_model", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2988086229, + "arguments": [ + { + "name": "model", + "type": "enum::AudioStreamPlayer3D.AttenuationModel" + } + ] + }, + { + "name": "get_attenuation_model", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3035106060, + "return_value": { + "type": "enum::AudioStreamPlayer3D.AttenuationModel" + } + }, + { + "name": "set_doppler_tracking", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3968161450, + "arguments": [ + { + "name": "mode", + "type": "enum::AudioStreamPlayer3D.DopplerTracking" + } + ] + }, + { + "name": "get_doppler_tracking", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1702418664, + "return_value": { + "type": "enum::AudioStreamPlayer3D.DopplerTracking" + } + }, + { + "name": "set_stream_paused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pause", + "type": "bool" + } + ] + }, + { + "name": "get_stream_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_polyphony", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_panning_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "panning_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_panning_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "has_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_stream_playback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 210135309, + "return_value": { + "type": "AudioStreamPlayback" + } + } + ], + "signals": [ + { + "name": "finished" + } + ], + "properties": [ + { + "type": "AudioStream", + "name": "stream", + "setter": "set_stream", + "getter": "get_stream" + }, + { + "type": "int", + "name": "attenuation_model", + "setter": "set_attenuation_model", + "getter": "get_attenuation_model" + }, + { + "type": "float", + "name": "volume_db", + "setter": "set_volume_db", + "getter": "get_volume_db" + }, + { + "type": "float", + "name": "unit_size", + "setter": "set_unit_size", + "getter": "get_unit_size" + }, + { + "type": "float", + "name": "max_db", + "setter": "set_max_db", + "getter": "get_max_db" + }, + { + "type": "float", + "name": "pitch_scale", + "setter": "set_pitch_scale", + "getter": "get_pitch_scale" + }, + { + "type": "bool", + "name": "playing", + "setter": "_set_playing", + "getter": "is_playing" + }, + { + "type": "bool", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "is_autoplay_enabled" + }, + { + "type": "bool", + "name": "stream_paused", + "setter": "set_stream_paused", + "getter": "get_stream_paused" + }, + { + "type": "float", + "name": "max_distance", + "setter": "set_max_distance", + "getter": "get_max_distance" + }, + { + "type": "int", + "name": "max_polyphony", + "setter": "set_max_polyphony", + "getter": "get_max_polyphony" + }, + { + "type": "float", + "name": "panning_strength", + "setter": "set_panning_strength", + "getter": "get_panning_strength" + }, + { + "type": "StringName", + "name": "bus", + "setter": "set_bus", + "getter": "get_bus" + }, + { + "type": "int", + "name": "area_mask", + "setter": "set_area_mask", + "getter": "get_area_mask" + }, + { + "type": "bool", + "name": "emission_angle_enabled", + "setter": "set_emission_angle_enabled", + "getter": "is_emission_angle_enabled" + }, + { + "type": "float", + "name": "emission_angle_degrees", + "setter": "set_emission_angle", + "getter": "get_emission_angle" + }, + { + "type": "float", + "name": "emission_angle_filter_attenuation_db", + "setter": "set_emission_angle_filter_attenuation_db", + "getter": "get_emission_angle_filter_attenuation_db" + }, + { + "type": "float", + "name": "attenuation_filter_cutoff_hz", + "setter": "set_attenuation_filter_cutoff_hz", + "getter": "get_attenuation_filter_cutoff_hz" + }, + { + "type": "float", + "name": "attenuation_filter_db", + "setter": "set_attenuation_filter_db", + "getter": "get_attenuation_filter_db" + }, + { + "type": "int", + "name": "doppler_tracking", + "setter": "set_doppler_tracking", + "getter": "get_doppler_tracking" + } + ] + }, + { + "name": "AudioStreamPolyphonic", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "methods": [ + { + "name": "set_polyphony", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "voices", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_polyphony", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "polyphony", + "setter": "set_polyphony", + "getter": "get_polyphony" + } + ] + }, + { + "name": "AudioStreamRandomizer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "enums": [ + { + "name": "PlaybackMode", + "is_bitfield": false, + "values": [ + { + "name": "PLAYBACK_RANDOM_NO_REPEATS", + "value": 0 + }, + { + "name": "PLAYBACK_RANDOM", + "value": 1 + }, + { + "name": "PLAYBACK_SEQUENTIAL", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3197802065, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "stream", + "type": "AudioStream" + }, + { + "name": "weight", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "move_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index_from", + "type": "int", + "meta": "int32" + }, + { + "name": "index_to", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 111075094, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "stream", + "type": "AudioStream" + } + ] + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2739380747, + "return_value": { + "type": "AudioStream" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_stream_probability_weight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "weight", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_stream_probability_weight", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_streams_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_streams_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_random_pitch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_random_pitch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_random_volume_offset_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "db_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_random_volume_offset_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_playback_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3950967023, + "arguments": [ + { + "name": "mode", + "type": "enum::AudioStreamRandomizer.PlaybackMode" + } + ] + }, + { + "name": "get_playback_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3943055077, + "return_value": { + "type": "enum::AudioStreamRandomizer.PlaybackMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "streams_count", + "setter": "set_streams_count", + "getter": "get_streams_count" + }, + { + "type": "int", + "name": "playback_mode", + "setter": "set_playback_mode", + "getter": "get_playback_mode" + }, + { + "type": "float", + "name": "random_pitch", + "setter": "set_random_pitch", + "getter": "get_random_pitch" + }, + { + "type": "float", + "name": "random_volume_offset_db", + "setter": "set_random_volume_offset_db", + "getter": "get_random_volume_offset_db" + } + ] + }, + { + "name": "AudioStreamWAV", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "AudioStream", + "api_type": "core", + "enums": [ + { + "name": "Format", + "is_bitfield": false, + "values": [ + { + "name": "FORMAT_8_BITS", + "value": 0 + }, + { + "name": "FORMAT_16_BITS", + "value": 1 + }, + { + "name": "FORMAT_IMA_ADPCM", + "value": 2 + } + ] + }, + { + "name": "LoopMode", + "is_bitfield": false, + "values": [ + { + "name": "LOOP_DISABLED", + "value": 0 + }, + { + "name": "LOOP_FORWARD", + "value": 1 + }, + { + "name": "LOOP_PINGPONG", + "value": 2 + }, + { + "name": "LOOP_BACKWARD", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 60648488, + "arguments": [ + { + "name": "format", + "type": "enum::AudioStreamWAV.Format" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3151724922, + "return_value": { + "type": "enum::AudioStreamWAV.Format" + } + }, + { + "name": "set_loop_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2444882972, + "arguments": [ + { + "name": "loop_mode", + "type": "enum::AudioStreamWAV.LoopMode" + } + ] + }, + { + "name": "get_loop_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 393560655, + "return_value": { + "type": "enum::AudioStreamWAV.LoopMode" + } + }, + { + "name": "set_loop_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "loop_begin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_loop_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_loop_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "loop_end", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_loop_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_mix_rate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mix_rate", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_mix_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_stereo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "stereo", + "type": "bool" + } + ] + }, + { + "name": "is_stereo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "save_to_wav", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "data", + "setter": "set_data", + "getter": "get_data" + }, + { + "type": "int", + "name": "format", + "setter": "set_format", + "getter": "get_format" + }, + { + "type": "int", + "name": "loop_mode", + "setter": "set_loop_mode", + "getter": "get_loop_mode" + }, + { + "type": "int", + "name": "loop_begin", + "setter": "set_loop_begin", + "getter": "get_loop_begin" + }, + { + "type": "int", + "name": "loop_end", + "setter": "set_loop_end", + "getter": "get_loop_end" + }, + { + "type": "int", + "name": "mix_rate", + "setter": "set_mix_rate", + "getter": "get_mix_rate" + }, + { + "type": "bool", + "name": "stereo", + "setter": "set_stereo", + "getter": "is_stereo" + } + ] + }, + { + "name": "BackBufferCopy", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "CopyMode", + "is_bitfield": false, + "values": [ + { + "name": "COPY_MODE_DISABLED", + "value": 0 + }, + { + "name": "COPY_MODE_RECT", + "value": 1 + }, + { + "name": "COPY_MODE_VIEWPORT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_copy_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1713538590, + "arguments": [ + { + "name": "copy_mode", + "type": "enum::BackBufferCopy.CopyMode" + } + ] + }, + { + "name": "get_copy_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3271169440, + "return_value": { + "type": "enum::BackBufferCopy.CopyMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "copy_mode", + "setter": "set_copy_mode", + "getter": "get_copy_mode" + }, + { + "type": "Rect2", + "name": "rect", + "setter": "set_rect", + "getter": "get_rect" + } + ] + }, + { + "name": "BaseButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "DrawMode", + "is_bitfield": false, + "values": [ + { + "name": "DRAW_NORMAL", + "value": 0 + }, + { + "name": "DRAW_PRESSED", + "value": 1 + }, + { + "name": "DRAW_HOVER", + "value": 2 + }, + { + "name": "DRAW_DISABLED", + "value": 3 + }, + { + "name": "DRAW_HOVER_PRESSED", + "value": 4 + } + ] + }, + { + "name": "ActionMode", + "is_bitfield": false, + "values": [ + { + "name": "ACTION_MODE_BUTTON_PRESS", + "value": 0 + }, + { + "name": "ACTION_MODE_BUTTON_RELEASE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_pressed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_toggled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "button_pressed", + "type": "bool" + } + ] + }, + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_pressed_no_signal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_hovered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_toggle_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_toggle_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut_in_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_shortcut_in_tooltip_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_action_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1985162088, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseButton.ActionMode" + } + ] + }, + { + "name": "get_action_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2589712189, + "return_value": { + "type": "enum::BaseButton.ActionMode" + } + }, + { + "name": "set_button_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3950145251, + "arguments": [ + { + "name": "mask", + "type": "bitfield::MouseButtonMask" + } + ] + }, + { + "name": "get_button_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2512161324, + "return_value": { + "type": "bitfield::MouseButtonMask" + } + }, + { + "name": "get_draw_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2492721305, + "return_value": { + "type": "enum::BaseButton.DrawMode" + } + }, + { + "name": "set_keep_pressed_outside", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_keep_pressed_outside", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut_feedback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_shortcut_feedback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 857163497, + "arguments": [ + { + "name": "shortcut", + "type": "Shortcut" + } + ] + }, + { + "name": "get_shortcut", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415666916, + "return_value": { + "type": "Shortcut" + } + }, + { + "name": "set_button_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794463739, + "arguments": [ + { + "name": "button_group", + "type": "ButtonGroup" + } + ] + }, + { + "name": "get_button_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 281644053, + "return_value": { + "type": "ButtonGroup" + } + } + ], + "signals": [ + { + "name": "pressed" + }, + { + "name": "button_up" + }, + { + "name": "button_down" + }, + { + "name": "toggled", + "arguments": [ + { + "name": "button_pressed", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "disabled", + "setter": "set_disabled", + "getter": "is_disabled" + }, + { + "type": "bool", + "name": "toggle_mode", + "setter": "set_toggle_mode", + "getter": "is_toggle_mode" + }, + { + "type": "bool", + "name": "button_pressed", + "setter": "set_pressed", + "getter": "is_pressed" + }, + { + "type": "int", + "name": "action_mode", + "setter": "set_action_mode", + "getter": "get_action_mode" + }, + { + "type": "int", + "name": "button_mask", + "setter": "set_button_mask", + "getter": "get_button_mask" + }, + { + "type": "bool", + "name": "keep_pressed_outside", + "setter": "set_keep_pressed_outside", + "getter": "is_keep_pressed_outside" + }, + { + "type": "ButtonGroup", + "name": "button_group", + "setter": "set_button_group", + "getter": "get_button_group" + }, + { + "type": "Shortcut", + "name": "shortcut", + "setter": "set_shortcut", + "getter": "get_shortcut" + }, + { + "type": "bool", + "name": "shortcut_feedback", + "setter": "set_shortcut_feedback", + "getter": "is_shortcut_feedback" + }, + { + "type": "bool", + "name": "shortcut_in_tooltip", + "setter": "set_shortcut_in_tooltip", + "getter": "is_shortcut_in_tooltip_enabled" + } + ] + }, + { + "name": "BaseMaterial3D", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Material", + "api_type": "core", + "enums": [ + { + "name": "TextureParam", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_ALBEDO", + "value": 0 + }, + { + "name": "TEXTURE_METALLIC", + "value": 1 + }, + { + "name": "TEXTURE_ROUGHNESS", + "value": 2 + }, + { + "name": "TEXTURE_EMISSION", + "value": 3 + }, + { + "name": "TEXTURE_NORMAL", + "value": 4 + }, + { + "name": "TEXTURE_RIM", + "value": 5 + }, + { + "name": "TEXTURE_CLEARCOAT", + "value": 6 + }, + { + "name": "TEXTURE_FLOWMAP", + "value": 7 + }, + { + "name": "TEXTURE_AMBIENT_OCCLUSION", + "value": 8 + }, + { + "name": "TEXTURE_HEIGHTMAP", + "value": 9 + }, + { + "name": "TEXTURE_SUBSURFACE_SCATTERING", + "value": 10 + }, + { + "name": "TEXTURE_SUBSURFACE_TRANSMITTANCE", + "value": 11 + }, + { + "name": "TEXTURE_BACKLIGHT", + "value": 12 + }, + { + "name": "TEXTURE_REFRACTION", + "value": 13 + }, + { + "name": "TEXTURE_DETAIL_MASK", + "value": 14 + }, + { + "name": "TEXTURE_DETAIL_ALBEDO", + "value": 15 + }, + { + "name": "TEXTURE_DETAIL_NORMAL", + "value": 16 + }, + { + "name": "TEXTURE_ORM", + "value": 17 + }, + { + "name": "TEXTURE_MAX", + "value": 18 + } + ] + }, + { + "name": "TextureFilter", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_FILTER_NEAREST", + "value": 0 + }, + { + "name": "TEXTURE_FILTER_LINEAR", + "value": 1 + }, + { + "name": "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", + "value": 2 + }, + { + "name": "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", + "value": 3 + }, + { + "name": "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", + "value": 4 + }, + { + "name": "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", + "value": 5 + }, + { + "name": "TEXTURE_FILTER_MAX", + "value": 6 + } + ] + }, + { + "name": "DetailUV", + "is_bitfield": false, + "values": [ + { + "name": "DETAIL_UV_1", + "value": 0 + }, + { + "name": "DETAIL_UV_2", + "value": 1 + } + ] + }, + { + "name": "Transparency", + "is_bitfield": false, + "values": [ + { + "name": "TRANSPARENCY_DISABLED", + "value": 0 + }, + { + "name": "TRANSPARENCY_ALPHA", + "value": 1 + }, + { + "name": "TRANSPARENCY_ALPHA_SCISSOR", + "value": 2 + }, + { + "name": "TRANSPARENCY_ALPHA_HASH", + "value": 3 + }, + { + "name": "TRANSPARENCY_ALPHA_DEPTH_PRE_PASS", + "value": 4 + }, + { + "name": "TRANSPARENCY_MAX", + "value": 5 + } + ] + }, + { + "name": "ShadingMode", + "is_bitfield": false, + "values": [ + { + "name": "SHADING_MODE_UNSHADED", + "value": 0 + }, + { + "name": "SHADING_MODE_PER_PIXEL", + "value": 1 + }, + { + "name": "SHADING_MODE_PER_VERTEX", + "value": 2 + }, + { + "name": "SHADING_MODE_MAX", + "value": 3 + } + ] + }, + { + "name": "Feature", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_EMISSION", + "value": 0 + }, + { + "name": "FEATURE_NORMAL_MAPPING", + "value": 1 + }, + { + "name": "FEATURE_RIM", + "value": 2 + }, + { + "name": "FEATURE_CLEARCOAT", + "value": 3 + }, + { + "name": "FEATURE_ANISOTROPY", + "value": 4 + }, + { + "name": "FEATURE_AMBIENT_OCCLUSION", + "value": 5 + }, + { + "name": "FEATURE_HEIGHT_MAPPING", + "value": 6 + }, + { + "name": "FEATURE_SUBSURFACE_SCATTERING", + "value": 7 + }, + { + "name": "FEATURE_SUBSURFACE_TRANSMITTANCE", + "value": 8 + }, + { + "name": "FEATURE_BACKLIGHT", + "value": 9 + }, + { + "name": "FEATURE_REFRACTION", + "value": 10 + }, + { + "name": "FEATURE_DETAIL", + "value": 11 + }, + { + "name": "FEATURE_MAX", + "value": 12 + } + ] + }, + { + "name": "BlendMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_MODE_MIX", + "value": 0 + }, + { + "name": "BLEND_MODE_ADD", + "value": 1 + }, + { + "name": "BLEND_MODE_SUB", + "value": 2 + }, + { + "name": "BLEND_MODE_MUL", + "value": 3 + } + ] + }, + { + "name": "AlphaAntiAliasing", + "is_bitfield": false, + "values": [ + { + "name": "ALPHA_ANTIALIASING_OFF", + "value": 0 + }, + { + "name": "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE", + "value": 1 + }, + { + "name": "ALPHA_ANTIALIASING_ALPHA_TO_COVERAGE_AND_TO_ONE", + "value": 2 + } + ] + }, + { + "name": "DepthDrawMode", + "is_bitfield": false, + "values": [ + { + "name": "DEPTH_DRAW_OPAQUE_ONLY", + "value": 0 + }, + { + "name": "DEPTH_DRAW_ALWAYS", + "value": 1 + }, + { + "name": "DEPTH_DRAW_DISABLED", + "value": 2 + } + ] + }, + { + "name": "CullMode", + "is_bitfield": false, + "values": [ + { + "name": "CULL_BACK", + "value": 0 + }, + { + "name": "CULL_FRONT", + "value": 1 + }, + { + "name": "CULL_DISABLED", + "value": 2 + } + ] + }, + { + "name": "Flags", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_DISABLE_DEPTH_TEST", + "value": 0 + }, + { + "name": "FLAG_ALBEDO_FROM_VERTEX_COLOR", + "value": 1 + }, + { + "name": "FLAG_SRGB_VERTEX_COLOR", + "value": 2 + }, + { + "name": "FLAG_USE_POINT_SIZE", + "value": 3 + }, + { + "name": "FLAG_FIXED_SIZE", + "value": 4 + }, + { + "name": "FLAG_BILLBOARD_KEEP_SCALE", + "value": 5 + }, + { + "name": "FLAG_UV1_USE_TRIPLANAR", + "value": 6 + }, + { + "name": "FLAG_UV2_USE_TRIPLANAR", + "value": 7 + }, + { + "name": "FLAG_UV1_USE_WORLD_TRIPLANAR", + "value": 8 + }, + { + "name": "FLAG_UV2_USE_WORLD_TRIPLANAR", + "value": 9 + }, + { + "name": "FLAG_AO_ON_UV2", + "value": 10 + }, + { + "name": "FLAG_EMISSION_ON_UV2", + "value": 11 + }, + { + "name": "FLAG_ALBEDO_TEXTURE_FORCE_SRGB", + "value": 12 + }, + { + "name": "FLAG_DONT_RECEIVE_SHADOWS", + "value": 13 + }, + { + "name": "FLAG_DISABLE_AMBIENT_LIGHT", + "value": 14 + }, + { + "name": "FLAG_USE_SHADOW_TO_OPACITY", + "value": 15 + }, + { + "name": "FLAG_USE_TEXTURE_REPEAT", + "value": 16 + }, + { + "name": "FLAG_INVERT_HEIGHTMAP", + "value": 17 + }, + { + "name": "FLAG_SUBSURFACE_MODE_SKIN", + "value": 18 + }, + { + "name": "FLAG_PARTICLE_TRAILS_MODE", + "value": 19 + }, + { + "name": "FLAG_ALBEDO_TEXTURE_MSDF", + "value": 20 + }, + { + "name": "FLAG_MAX", + "value": 21 + } + ] + }, + { + "name": "DiffuseMode", + "is_bitfield": false, + "values": [ + { + "name": "DIFFUSE_BURLEY", + "value": 0 + }, + { + "name": "DIFFUSE_LAMBERT", + "value": 1 + }, + { + "name": "DIFFUSE_LAMBERT_WRAP", + "value": 2 + }, + { + "name": "DIFFUSE_TOON", + "value": 3 + } + ] + }, + { + "name": "SpecularMode", + "is_bitfield": false, + "values": [ + { + "name": "SPECULAR_SCHLICK_GGX", + "value": 0 + }, + { + "name": "SPECULAR_TOON", + "value": 1 + }, + { + "name": "SPECULAR_DISABLED", + "value": 2 + } + ] + }, + { + "name": "BillboardMode", + "is_bitfield": false, + "values": [ + { + "name": "BILLBOARD_DISABLED", + "value": 0 + }, + { + "name": "BILLBOARD_ENABLED", + "value": 1 + }, + { + "name": "BILLBOARD_FIXED_Y", + "value": 2 + }, + { + "name": "BILLBOARD_PARTICLES", + "value": 3 + } + ] + }, + { + "name": "TextureChannel", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_CHANNEL_RED", + "value": 0 + }, + { + "name": "TEXTURE_CHANNEL_GREEN", + "value": 1 + }, + { + "name": "TEXTURE_CHANNEL_BLUE", + "value": 2 + }, + { + "name": "TEXTURE_CHANNEL_ALPHA", + "value": 3 + }, + { + "name": "TEXTURE_CHANNEL_GRAYSCALE", + "value": 4 + } + ] + }, + { + "name": "EmissionOperator", + "is_bitfield": false, + "values": [ + { + "name": "EMISSION_OP_ADD", + "value": 0 + }, + { + "name": "EMISSION_OP_MULTIPLY", + "value": 1 + } + ] + }, + { + "name": "DistanceFadeMode", + "is_bitfield": false, + "values": [ + { + "name": "DISTANCE_FADE_DISABLED", + "value": 0 + }, + { + "name": "DISTANCE_FADE_PIXEL_ALPHA", + "value": 1 + }, + { + "name": "DISTANCE_FADE_PIXEL_DITHER", + "value": 2 + }, + { + "name": "DISTANCE_FADE_OBJECT_DITHER", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_albedo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "albedo", + "type": "Color" + } + ] + }, + { + "name": "get_albedo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_transparency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3435651667, + "arguments": [ + { + "name": "transparency", + "type": "enum::BaseMaterial3D.Transparency" + } + ] + }, + { + "name": "get_transparency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990903061, + "return_value": { + "type": "enum::BaseMaterial3D.Transparency" + } + }, + { + "name": "set_alpha_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3212649852, + "arguments": [ + { + "name": "alpha_aa", + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + ] + }, + { + "name": "get_alpha_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2889939400, + "return_value": { + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + }, + { + "name": "set_alpha_antialiasing_edge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_antialiasing_edge", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_shading_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3368750322, + "arguments": [ + { + "name": "shading_mode", + "type": "enum::BaseMaterial3D.ShadingMode" + } + ] + }, + { + "name": "get_shading_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2132070559, + "return_value": { + "type": "enum::BaseMaterial3D.ShadingMode" + } + }, + { + "name": "set_specular", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "specular", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_specular", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_metallic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "metallic", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_metallic", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_roughness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "roughness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_roughness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "emission", + "type": "Color" + } + ] + }, + { + "name": "get_emission", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_emission_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "emission_energy_multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "emission_energy_multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_normal_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "normal_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_normal_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rim", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rim", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rim", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rim_tint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rim_tint", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rim_tint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_clearcoat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "clearcoat", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_clearcoat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_clearcoat_roughness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "clearcoat_roughness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_clearcoat_roughness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_anisotropy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "anisotropy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_anisotropy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_heightmap_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "heightmap_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_heightmap_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_subsurface_scattering_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_subsurface_scattering_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_transmittance_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_transmittance_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_transmittance_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_transmittance_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_transmittance_boost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "boost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_transmittance_boost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_backlight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "backlight", + "type": "Color" + } + ] + }, + { + "name": "get_backlight", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_refraction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "refraction", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_refraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_point_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "point_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_detail_uv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 456801921, + "arguments": [ + { + "name": "detail_uv", + "type": "enum::BaseMaterial3D.DetailUV" + } + ] + }, + { + "name": "get_detail_uv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2306920512, + "return_value": { + "type": "enum::BaseMaterial3D.DetailUV" + } + }, + { + "name": "set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2830186259, + "arguments": [ + { + "name": "blend_mode", + "type": "enum::BaseMaterial3D.BlendMode" + } + ] + }, + { + "name": "get_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4022690962, + "return_value": { + "type": "enum::BaseMaterial3D.BlendMode" + } + }, + { + "name": "set_depth_draw_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1456584748, + "arguments": [ + { + "name": "depth_draw_mode", + "type": "enum::BaseMaterial3D.DepthDrawMode" + } + ] + }, + { + "name": "get_depth_draw_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2578197639, + "return_value": { + "type": "enum::BaseMaterial3D.DepthDrawMode" + } + }, + { + "name": "set_cull_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2338909218, + "arguments": [ + { + "name": "cull_mode", + "type": "enum::BaseMaterial3D.CullMode" + } + ] + }, + { + "name": "get_cull_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1941499586, + "return_value": { + "type": "enum::BaseMaterial3D.CullMode" + } + }, + { + "name": "set_diffuse_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1045299638, + "arguments": [ + { + "name": "diffuse_mode", + "type": "enum::BaseMaterial3D.DiffuseMode" + } + ] + }, + { + "name": "get_diffuse_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3973617136, + "return_value": { + "type": "enum::BaseMaterial3D.DiffuseMode" + } + }, + { + "name": "set_specular_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 584737147, + "arguments": [ + { + "name": "specular_mode", + "type": "enum::BaseMaterial3D.SpecularMode" + } + ] + }, + { + "name": "get_specular_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2569953298, + "return_value": { + "type": "enum::BaseMaterial3D.SpecularMode" + } + }, + { + "name": "set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3070159527, + "arguments": [ + { + "name": "flag", + "type": "enum::BaseMaterial3D.Flags" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410065, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::BaseMaterial3D.Flags" + } + ] + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 22904437, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289213076, + "return_value": { + "type": "enum::BaseMaterial3D.TextureFilter" + } + }, + { + "name": "set_feature", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2819288693, + "arguments": [ + { + "name": "feature", + "type": "enum::BaseMaterial3D.Feature" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965241794, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::BaseMaterial3D.Feature" + } + ] + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 464208135, + "arguments": [ + { + "name": "param", + "type": "enum::BaseMaterial3D.TextureParam" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 329605813, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "param", + "type": "enum::BaseMaterial3D.TextureParam" + } + ] + }, + { + "name": "set_detail_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2830186259, + "arguments": [ + { + "name": "detail_blend_mode", + "type": "enum::BaseMaterial3D.BlendMode" + } + ] + }, + { + "name": "get_detail_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4022690962, + "return_value": { + "type": "enum::BaseMaterial3D.BlendMode" + } + }, + { + "name": "set_uv1_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_uv1_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_uv1_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_uv1_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_uv1_triplanar_blend_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_uv1_triplanar_blend_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_uv2_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_uv2_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_uv2_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_uv2_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_uv2_triplanar_blend_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_uv2_triplanar_blend_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_billboard_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4202036497, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.BillboardMode" + } + ] + }, + { + "name": "get_billboard_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1283840139, + "return_value": { + "type": "enum::BaseMaterial3D.BillboardMode" + } + }, + { + "name": "set_particles_anim_h_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_particles_anim_h_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_particles_anim_v_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_particles_anim_v_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_particles_anim_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "get_particles_anim_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_heightmap_deep_parallax", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_heightmap_deep_parallax_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_heightmap_deep_parallax_min_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_heightmap_deep_parallax_min_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_heightmap_deep_parallax_max_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_heightmap_deep_parallax_max_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_heightmap_deep_parallax_flip_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip", + "type": "bool" + } + ] + }, + { + "name": "get_heightmap_deep_parallax_flip_tangent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_heightmap_deep_parallax_flip_binormal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip", + "type": "bool" + } + ] + }, + { + "name": "get_heightmap_deep_parallax_flip_binormal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_grow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_grow", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3825128922, + "arguments": [ + { + "name": "operator", + "type": "enum::BaseMaterial3D.EmissionOperator" + } + ] + }, + { + "name": "get_emission_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 974205018, + "return_value": { + "type": "enum::BaseMaterial3D.EmissionOperator" + } + }, + { + "name": "set_ao_light_affect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ao_light_affect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_scissor_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_scissor_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_hash_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_hash_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_grow_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_grow_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_metallic_texture_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 744167988, + "arguments": [ + { + "name": "channel", + "type": "enum::BaseMaterial3D.TextureChannel" + } + ] + }, + { + "name": "get_metallic_texture_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 568133867, + "return_value": { + "type": "enum::BaseMaterial3D.TextureChannel" + } + }, + { + "name": "set_roughness_texture_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 744167988, + "arguments": [ + { + "name": "channel", + "type": "enum::BaseMaterial3D.TextureChannel" + } + ] + }, + { + "name": "get_roughness_texture_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 568133867, + "return_value": { + "type": "enum::BaseMaterial3D.TextureChannel" + } + }, + { + "name": "set_ao_texture_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 744167988, + "arguments": [ + { + "name": "channel", + "type": "enum::BaseMaterial3D.TextureChannel" + } + ] + }, + { + "name": "get_ao_texture_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 568133867, + "return_value": { + "type": "enum::BaseMaterial3D.TextureChannel" + } + }, + { + "name": "set_refraction_texture_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 744167988, + "arguments": [ + { + "name": "channel", + "type": "enum::BaseMaterial3D.TextureChannel" + } + ] + }, + { + "name": "get_refraction_texture_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 568133867, + "return_value": { + "type": "enum::BaseMaterial3D.TextureChannel" + } + }, + { + "name": "set_proximity_fade_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_proximity_fade_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_proximity_fade_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_proximity_fade_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_msdf_pixel_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "range", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_msdf_pixel_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_msdf_outline_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_msdf_outline_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_distance_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1379478617, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.DistanceFadeMode" + } + ] + }, + { + "name": "get_distance_fade", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2694575734, + "return_value": { + "type": "enum::BaseMaterial3D.DistanceFadeMode" + } + }, + { + "name": "set_distance_fade_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_distance_fade_min_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_min_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "transparency", + "setter": "set_transparency", + "getter": "get_transparency" + }, + { + "type": "float", + "name": "alpha_scissor_threshold", + "setter": "set_alpha_scissor_threshold", + "getter": "get_alpha_scissor_threshold" + }, + { + "type": "float", + "name": "alpha_hash_scale", + "setter": "set_alpha_hash_scale", + "getter": "get_alpha_hash_scale" + }, + { + "type": "int", + "name": "alpha_antialiasing_mode", + "setter": "set_alpha_antialiasing", + "getter": "get_alpha_antialiasing" + }, + { + "type": "float", + "name": "alpha_antialiasing_edge", + "setter": "set_alpha_antialiasing_edge", + "getter": "get_alpha_antialiasing_edge" + }, + { + "type": "int", + "name": "blend_mode", + "setter": "set_blend_mode", + "getter": "get_blend_mode" + }, + { + "type": "int", + "name": "cull_mode", + "setter": "set_cull_mode", + "getter": "get_cull_mode" + }, + { + "type": "int", + "name": "depth_draw_mode", + "setter": "set_depth_draw_mode", + "getter": "get_depth_draw_mode" + }, + { + "type": "bool", + "name": "no_depth_test", + "setter": "set_flag", + "getter": "get_flag", + "index": 0 + }, + { + "type": "int", + "name": "shading_mode", + "setter": "set_shading_mode", + "getter": "get_shading_mode" + }, + { + "type": "int", + "name": "diffuse_mode", + "setter": "set_diffuse_mode", + "getter": "get_diffuse_mode" + }, + { + "type": "int", + "name": "specular_mode", + "setter": "set_specular_mode", + "getter": "get_specular_mode" + }, + { + "type": "bool", + "name": "disable_ambient_light", + "setter": "set_flag", + "getter": "get_flag", + "index": 14 + }, + { + "type": "bool", + "name": "vertex_color_use_as_albedo", + "setter": "set_flag", + "getter": "get_flag", + "index": 1 + }, + { + "type": "bool", + "name": "vertex_color_is_srgb", + "setter": "set_flag", + "getter": "get_flag", + "index": 2 + }, + { + "type": "Color", + "name": "albedo_color", + "setter": "set_albedo", + "getter": "get_albedo" + }, + { + "type": "Texture2D", + "name": "albedo_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 0 + }, + { + "type": "bool", + "name": "albedo_texture_force_srgb", + "setter": "set_flag", + "getter": "get_flag", + "index": 12 + }, + { + "type": "bool", + "name": "albedo_texture_msdf", + "setter": "set_flag", + "getter": "get_flag", + "index": 20 + }, + { + "type": "Texture2D", + "name": "orm_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 17 + }, + { + "type": "float", + "name": "metallic", + "setter": "set_metallic", + "getter": "get_metallic" + }, + { + "type": "float", + "name": "metallic_specular", + "setter": "set_specular", + "getter": "get_specular" + }, + { + "type": "Texture2D", + "name": "metallic_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 1 + }, + { + "type": "int", + "name": "metallic_texture_channel", + "setter": "set_metallic_texture_channel", + "getter": "get_metallic_texture_channel" + }, + { + "type": "float", + "name": "roughness", + "setter": "set_roughness", + "getter": "get_roughness" + }, + { + "type": "Texture2D", + "name": "roughness_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 2 + }, + { + "type": "int", + "name": "roughness_texture_channel", + "setter": "set_roughness_texture_channel", + "getter": "get_roughness_texture_channel" + }, + { + "type": "bool", + "name": "emission_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 0 + }, + { + "type": "Color", + "name": "emission", + "setter": "set_emission", + "getter": "get_emission" + }, + { + "type": "float", + "name": "emission_energy_multiplier", + "setter": "set_emission_energy_multiplier", + "getter": "get_emission_energy_multiplier" + }, + { + "type": "float", + "name": "emission_intensity", + "setter": "set_emission_intensity", + "getter": "get_emission_intensity" + }, + { + "type": "int", + "name": "emission_operator", + "setter": "set_emission_operator", + "getter": "get_emission_operator" + }, + { + "type": "bool", + "name": "emission_on_uv2", + "setter": "set_flag", + "getter": "get_flag", + "index": 11 + }, + { + "type": "Texture2D", + "name": "emission_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 3 + }, + { + "type": "bool", + "name": "normal_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 1 + }, + { + "type": "float", + "name": "normal_scale", + "setter": "set_normal_scale", + "getter": "get_normal_scale" + }, + { + "type": "Texture2D", + "name": "normal_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 4 + }, + { + "type": "bool", + "name": "rim_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 2 + }, + { + "type": "float", + "name": "rim", + "setter": "set_rim", + "getter": "get_rim" + }, + { + "type": "float", + "name": "rim_tint", + "setter": "set_rim_tint", + "getter": "get_rim_tint" + }, + { + "type": "Texture2D", + "name": "rim_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 5 + }, + { + "type": "bool", + "name": "clearcoat_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 3 + }, + { + "type": "float", + "name": "clearcoat", + "setter": "set_clearcoat", + "getter": "get_clearcoat" + }, + { + "type": "float", + "name": "clearcoat_roughness", + "setter": "set_clearcoat_roughness", + "getter": "get_clearcoat_roughness" + }, + { + "type": "Texture2D", + "name": "clearcoat_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 6 + }, + { + "type": "bool", + "name": "anisotropy_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 4 + }, + { + "type": "float", + "name": "anisotropy", + "setter": "set_anisotropy", + "getter": "get_anisotropy" + }, + { + "type": "Texture2D", + "name": "anisotropy_flowmap", + "setter": "set_texture", + "getter": "get_texture", + "index": 7 + }, + { + "type": "bool", + "name": "ao_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 5 + }, + { + "type": "float", + "name": "ao_light_affect", + "setter": "set_ao_light_affect", + "getter": "get_ao_light_affect" + }, + { + "type": "Texture2D", + "name": "ao_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 8 + }, + { + "type": "bool", + "name": "ao_on_uv2", + "setter": "set_flag", + "getter": "get_flag", + "index": 10 + }, + { + "type": "int", + "name": "ao_texture_channel", + "setter": "set_ao_texture_channel", + "getter": "get_ao_texture_channel" + }, + { + "type": "bool", + "name": "heightmap_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 6 + }, + { + "type": "float", + "name": "heightmap_scale", + "setter": "set_heightmap_scale", + "getter": "get_heightmap_scale" + }, + { + "type": "bool", + "name": "heightmap_deep_parallax", + "setter": "set_heightmap_deep_parallax", + "getter": "is_heightmap_deep_parallax_enabled" + }, + { + "type": "int", + "name": "heightmap_min_layers", + "setter": "set_heightmap_deep_parallax_min_layers", + "getter": "get_heightmap_deep_parallax_min_layers" + }, + { + "type": "int", + "name": "heightmap_max_layers", + "setter": "set_heightmap_deep_parallax_max_layers", + "getter": "get_heightmap_deep_parallax_max_layers" + }, + { + "type": "bool", + "name": "heightmap_flip_tangent", + "setter": "set_heightmap_deep_parallax_flip_tangent", + "getter": "get_heightmap_deep_parallax_flip_tangent" + }, + { + "type": "bool", + "name": "heightmap_flip_binormal", + "setter": "set_heightmap_deep_parallax_flip_binormal", + "getter": "get_heightmap_deep_parallax_flip_binormal" + }, + { + "type": "Texture2D", + "name": "heightmap_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 9 + }, + { + "type": "bool", + "name": "heightmap_flip_texture", + "setter": "set_flag", + "getter": "get_flag", + "index": 17 + }, + { + "type": "bool", + "name": "subsurf_scatter_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 7 + }, + { + "type": "float", + "name": "subsurf_scatter_strength", + "setter": "set_subsurface_scattering_strength", + "getter": "get_subsurface_scattering_strength" + }, + { + "type": "bool", + "name": "subsurf_scatter_skin_mode", + "setter": "set_flag", + "getter": "get_flag", + "index": 18 + }, + { + "type": "Texture2D", + "name": "subsurf_scatter_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 10 + }, + { + "type": "bool", + "name": "subsurf_scatter_transmittance_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 8 + }, + { + "type": "Color", + "name": "subsurf_scatter_transmittance_color", + "setter": "set_transmittance_color", + "getter": "get_transmittance_color" + }, + { + "type": "Texture2D", + "name": "subsurf_scatter_transmittance_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 11 + }, + { + "type": "float", + "name": "subsurf_scatter_transmittance_depth", + "setter": "set_transmittance_depth", + "getter": "get_transmittance_depth" + }, + { + "type": "float", + "name": "subsurf_scatter_transmittance_boost", + "setter": "set_transmittance_boost", + "getter": "get_transmittance_boost" + }, + { + "type": "bool", + "name": "backlight_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 9 + }, + { + "type": "Color", + "name": "backlight", + "setter": "set_backlight", + "getter": "get_backlight" + }, + { + "type": "Texture2D", + "name": "backlight_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 12 + }, + { + "type": "bool", + "name": "refraction_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 10 + }, + { + "type": "float", + "name": "refraction_scale", + "setter": "set_refraction", + "getter": "get_refraction" + }, + { + "type": "Texture2D", + "name": "refraction_texture", + "setter": "set_texture", + "getter": "get_texture", + "index": 13 + }, + { + "type": "int", + "name": "refraction_texture_channel", + "setter": "set_refraction_texture_channel", + "getter": "get_refraction_texture_channel" + }, + { + "type": "bool", + "name": "detail_enabled", + "setter": "set_feature", + "getter": "get_feature", + "index": 11 + }, + { + "type": "Texture2D", + "name": "detail_mask", + "setter": "set_texture", + "getter": "get_texture", + "index": 14 + }, + { + "type": "int", + "name": "detail_blend_mode", + "setter": "set_detail_blend_mode", + "getter": "get_detail_blend_mode" + }, + { + "type": "int", + "name": "detail_uv_layer", + "setter": "set_detail_uv", + "getter": "get_detail_uv" + }, + { + "type": "Texture2D", + "name": "detail_albedo", + "setter": "set_texture", + "getter": "get_texture", + "index": 15 + }, + { + "type": "Texture2D", + "name": "detail_normal", + "setter": "set_texture", + "getter": "get_texture", + "index": 16 + }, + { + "type": "Vector3", + "name": "uv1_scale", + "setter": "set_uv1_scale", + "getter": "get_uv1_scale" + }, + { + "type": "Vector3", + "name": "uv1_offset", + "setter": "set_uv1_offset", + "getter": "get_uv1_offset" + }, + { + "type": "bool", + "name": "uv1_triplanar", + "setter": "set_flag", + "getter": "get_flag", + "index": 6 + }, + { + "type": "float", + "name": "uv1_triplanar_sharpness", + "setter": "set_uv1_triplanar_blend_sharpness", + "getter": "get_uv1_triplanar_blend_sharpness" + }, + { + "type": "bool", + "name": "uv1_world_triplanar", + "setter": "set_flag", + "getter": "get_flag", + "index": 8 + }, + { + "type": "Vector3", + "name": "uv2_scale", + "setter": "set_uv2_scale", + "getter": "get_uv2_scale" + }, + { + "type": "Vector3", + "name": "uv2_offset", + "setter": "set_uv2_offset", + "getter": "get_uv2_offset" + }, + { + "type": "bool", + "name": "uv2_triplanar", + "setter": "set_flag", + "getter": "get_flag", + "index": 7 + }, + { + "type": "float", + "name": "uv2_triplanar_sharpness", + "setter": "set_uv2_triplanar_blend_sharpness", + "getter": "get_uv2_triplanar_blend_sharpness" + }, + { + "type": "bool", + "name": "uv2_world_triplanar", + "setter": "set_flag", + "getter": "get_flag", + "index": 9 + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "bool", + "name": "texture_repeat", + "setter": "set_flag", + "getter": "get_flag", + "index": 16 + }, + { + "type": "bool", + "name": "disable_receive_shadows", + "setter": "set_flag", + "getter": "get_flag", + "index": 13 + }, + { + "type": "bool", + "name": "shadow_to_opacity", + "setter": "set_flag", + "getter": "get_flag", + "index": 15 + }, + { + "type": "int", + "name": "billboard_mode", + "setter": "set_billboard_mode", + "getter": "get_billboard_mode" + }, + { + "type": "bool", + "name": "billboard_keep_scale", + "setter": "set_flag", + "getter": "get_flag", + "index": 5 + }, + { + "type": "int", + "name": "particles_anim_h_frames", + "setter": "set_particles_anim_h_frames", + "getter": "get_particles_anim_h_frames" + }, + { + "type": "int", + "name": "particles_anim_v_frames", + "setter": "set_particles_anim_v_frames", + "getter": "get_particles_anim_v_frames" + }, + { + "type": "bool", + "name": "particles_anim_loop", + "setter": "set_particles_anim_loop", + "getter": "get_particles_anim_loop" + }, + { + "type": "bool", + "name": "grow", + "setter": "set_grow_enabled", + "getter": "is_grow_enabled" + }, + { + "type": "float", + "name": "grow_amount", + "setter": "set_grow", + "getter": "get_grow" + }, + { + "type": "bool", + "name": "fixed_size", + "setter": "set_flag", + "getter": "get_flag", + "index": 4 + }, + { + "type": "bool", + "name": "use_point_size", + "setter": "set_flag", + "getter": "get_flag", + "index": 3 + }, + { + "type": "float", + "name": "point_size", + "setter": "set_point_size", + "getter": "get_point_size" + }, + { + "type": "bool", + "name": "use_particle_trails", + "setter": "set_flag", + "getter": "get_flag", + "index": 19 + }, + { + "type": "bool", + "name": "proximity_fade_enabled", + "setter": "set_proximity_fade_enabled", + "getter": "is_proximity_fade_enabled" + }, + { + "type": "float", + "name": "proximity_fade_distance", + "setter": "set_proximity_fade_distance", + "getter": "get_proximity_fade_distance" + }, + { + "type": "float", + "name": "msdf_pixel_range", + "setter": "set_msdf_pixel_range", + "getter": "get_msdf_pixel_range" + }, + { + "type": "float", + "name": "msdf_outline_size", + "setter": "set_msdf_outline_size", + "getter": "get_msdf_outline_size" + }, + { + "type": "int", + "name": "distance_fade_mode", + "setter": "set_distance_fade", + "getter": "get_distance_fade" + }, + { + "type": "float", + "name": "distance_fade_min_distance", + "setter": "set_distance_fade_min_distance", + "getter": "get_distance_fade_min_distance" + }, + { + "type": "float", + "name": "distance_fade_max_distance", + "setter": "set_distance_fade_max_distance", + "getter": "get_distance_fade_max_distance" + } + ] + }, + { + "name": "BitMap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "create_from_image_alpha", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 505265891, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "threshold", + "type": "float", + "meta": "float", + "default_value": "0.1" + } + ] + }, + { + "name": "set_bitv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4153096796, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "bit", + "type": "bool" + } + ] + }, + { + "name": "set_bit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + }, + { + "name": "bit", + "type": "bool" + } + ] + }, + { + "name": "get_bitv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900751641, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "get_bit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bit_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 472162941, + "arguments": [ + { + "name": "rect", + "type": "Rect2i" + }, + { + "name": "bit", + "type": "bool" + } + ] + }, + { + "name": "get_true_bit_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "resize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "new_size", + "type": "Vector2i" + } + ] + }, + { + "name": "grow_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3317281434, + "arguments": [ + { + "name": "pixels", + "type": "int", + "meta": "int32" + }, + { + "name": "rect", + "type": "Rect2i" + } + ] + }, + { + "name": "convert_to_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4190603485, + "return_value": { + "type": "Image" + } + }, + { + "name": "opaque_to_polygons", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 876132484, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "rect", + "type": "Rect2i" + }, + { + "name": "epsilon", + "type": "float", + "meta": "float", + "default_value": "2.0" + } + ] + } + ], + "properties": [ + { + "type": "Dictionary", + "name": "data", + "setter": "_set_data", + "getter": "_get_data" + } + ] + }, + { + "name": "Bone2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_rest", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "rest", + "type": "Transform2D" + } + ] + }, + { + "name": "get_rest", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "apply_rest", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_skeleton_rest", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_index_in_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_autocalculate_length_and_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "auto_calculate", + "type": "bool" + } + ] + }, + { + "name": "get_autocalculate_length_and_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bone_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bone_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "Transform2D", + "name": "rest", + "setter": "set_rest", + "getter": "get_rest" + } + ] + }, + { + "name": "BoneAttachment3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_bone_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "bone_name", + "type": "String" + } + ] + }, + { + "name": "get_bone_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_bone_idx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_idx", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "on_bone_pose_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_override_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "override_pose", + "type": "bool" + } + ] + }, + { + "name": "get_override_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_external_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_external_skeleton", + "type": "bool" + } + ] + }, + { + "name": "get_use_external_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_external_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "external_skeleton", + "type": "NodePath" + } + ] + }, + { + "name": "get_external_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "bone_name", + "setter": "set_bone_name", + "getter": "get_bone_name" + }, + { + "type": "int", + "name": "bone_idx", + "setter": "set_bone_idx", + "getter": "get_bone_idx" + }, + { + "type": "bool", + "name": "override_pose", + "setter": "set_override_pose", + "getter": "get_override_pose" + } + ] + }, + { + "name": "BoneMap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291782652, + "return_value": { + "type": "SkeletonProfile" + } + }, + { + "name": "set_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3870374136, + "arguments": [ + { + "name": "profile", + "type": "SkeletonProfile" + } + ] + }, + { + "name": "get_skeleton_bone_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "profile_bone_name", + "type": "StringName" + } + ] + }, + { + "name": "set_skeleton_bone_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "profile_bone_name", + "type": "StringName" + }, + { + "name": "skeleton_bone_name", + "type": "StringName" + } + ] + }, + { + "name": "find_profile_bone_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "skeleton_bone_name", + "type": "StringName" + } + ] + } + ], + "signals": [ + { + "name": "bone_map_updated" + }, + { + "name": "profile_updated" + } + ], + "properties": [ + { + "type": "SkeletonProfile", + "name": "profile", + "setter": "set_profile", + "getter": "get_profile" + } + ] + }, + { + "name": "BoxContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "AlignmentMode", + "is_bitfield": false, + "values": [ + { + "name": "ALIGNMENT_BEGIN", + "value": 0 + }, + { + "name": "ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "ALIGNMENT_END", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_spacer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1326660695, + "return_value": { + "type": "Control" + }, + "arguments": [ + { + "name": "begin", + "type": "bool" + } + ] + }, + { + "name": "set_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2456745134, + "arguments": [ + { + "name": "alignment", + "type": "enum::BoxContainer.AlignmentMode" + } + ] + }, + { + "name": "get_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1915476527, + "return_value": { + "type": "enum::BoxContainer.AlignmentMode" + } + }, + { + "name": "set_vertical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "vertical", + "type": "bool" + } + ] + }, + { + "name": "is_vertical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "alignment", + "setter": "set_alignment", + "getter": "get_alignment" + }, + { + "type": "bool", + "name": "vertical", + "setter": "set_vertical", + "getter": "is_vertical" + } + ] + }, + { + "name": "BoxMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_subdivide_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "subdivide", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_subdivide_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "divisions", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_subdivide_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "divisions", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "subdivide_width", + "setter": "set_subdivide_width", + "getter": "get_subdivide_width" + }, + { + "type": "int", + "name": "subdivide_height", + "setter": "set_subdivide_height", + "getter": "get_subdivide_height" + }, + { + "type": "int", + "name": "subdivide_depth", + "setter": "set_subdivide_depth", + "getter": "get_subdivide_depth" + } + ] + }, + { + "name": "BoxOccluder3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Occluder3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "BoxShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "Button", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "BaseButton", + "api_type": "core", + "methods": [ + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1008890932, + "arguments": [ + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3779142101, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_button_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_button_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_flat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_flat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_clip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_clip_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_text_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_text_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_icon_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "icon_alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_icon_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_expand_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_expand_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "Texture2D", + "name": "icon", + "setter": "set_button_icon", + "getter": "get_button_icon" + }, + { + "type": "bool", + "name": "flat", + "setter": "set_flat", + "getter": "is_flat" + }, + { + "type": "int", + "name": "alignment", + "setter": "set_text_alignment", + "getter": "get_text_alignment" + }, + { + "type": "int", + "name": "text_overrun_behavior", + "setter": "set_text_overrun_behavior", + "getter": "get_text_overrun_behavior" + }, + { + "type": "bool", + "name": "clip_text", + "setter": "set_clip_text", + "getter": "get_clip_text" + }, + { + "type": "int", + "name": "icon_alignment", + "setter": "set_icon_alignment", + "getter": "get_icon_alignment" + }, + { + "type": "bool", + "name": "expand_icon", + "setter": "set_expand_icon", + "getter": "is_expand_icon" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + } + ] + }, + { + "name": "ButtonGroup", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_pressed_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3886434893, + "return_value": { + "type": "BaseButton" + } + }, + { + "name": "get_buttons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::BaseButton" + } + } + ], + "signals": [ + { + "name": "pressed", + "arguments": [ + { + "name": "button", + "type": "BaseButton" + } + ] + } + ] + }, + { + "name": "CPUParticles2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "DrawOrder", + "is_bitfield": false, + "values": [ + { + "name": "DRAW_ORDER_INDEX", + "value": 0 + }, + { + "name": "DRAW_ORDER_LIFETIME", + "value": 1 + } + ] + }, + { + "name": "Parameter", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_INITIAL_LINEAR_VELOCITY", + "value": 0 + }, + { + "name": "PARAM_ANGULAR_VELOCITY", + "value": 1 + }, + { + "name": "PARAM_ORBIT_VELOCITY", + "value": 2 + }, + { + "name": "PARAM_LINEAR_ACCEL", + "value": 3 + }, + { + "name": "PARAM_RADIAL_ACCEL", + "value": 4 + }, + { + "name": "PARAM_TANGENTIAL_ACCEL", + "value": 5 + }, + { + "name": "PARAM_DAMPING", + "value": 6 + }, + { + "name": "PARAM_ANGLE", + "value": 7 + }, + { + "name": "PARAM_SCALE", + "value": 8 + }, + { + "name": "PARAM_HUE_VARIATION", + "value": 9 + }, + { + "name": "PARAM_ANIM_SPEED", + "value": 10 + }, + { + "name": "PARAM_ANIM_OFFSET", + "value": 11 + }, + { + "name": "PARAM_MAX", + "value": 12 + } + ] + }, + { + "name": "ParticleFlags", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", + "value": 0 + }, + { + "name": "PARTICLE_FLAG_ROTATE_Y", + "value": 1 + }, + { + "name": "PARTICLE_FLAG_DISABLE_Z", + "value": 2 + }, + { + "name": "PARTICLE_FLAG_MAX", + "value": 3 + } + ] + }, + { + "name": "EmissionShape", + "is_bitfield": false, + "values": [ + { + "name": "EMISSION_SHAPE_POINT", + "value": 0 + }, + { + "name": "EMISSION_SHAPE_SPHERE", + "value": 1 + }, + { + "name": "EMISSION_SHAPE_SPHERE_SURFACE", + "value": 2 + }, + { + "name": "EMISSION_SHAPE_RECTANGLE", + "value": 3 + }, + { + "name": "EMISSION_SHAPE_POINTS", + "value": 4 + }, + { + "name": "EMISSION_SHAPE_DIRECTED_POINTS", + "value": 5 + }, + { + "name": "EMISSION_SHAPE_MAX", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "emitting", + "type": "bool" + } + ] + }, + { + "name": "set_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_pre_process_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_explosiveness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_randomness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_lifetime_randomness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "random", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_use_local_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_fixed_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fractional_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_emitting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pre_process_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_explosiveness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_randomness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_lifetime_randomness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_use_local_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_fixed_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_fractional_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_draw_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4183193490, + "arguments": [ + { + "name": "order", + "type": "enum::CPUParticles2D.DrawOrder" + } + ] + }, + { + "name": "get_draw_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1668655735, + "return_value": { + "type": "enum::CPUParticles2D.DrawOrder" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "restart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "direction", + "type": "Vector2" + } + ] + }, + { + "name": "get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_spread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "spread", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_spread", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_param_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3320615296, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2038050600, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + } + ] + }, + { + "name": "set_param_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3320615296, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2038050600, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + } + ] + }, + { + "name": "set_param_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2959350143, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + }, + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_param_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2603158474, + "return_value": { + "type": "Curve" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles2D.Parameter" + } + ] + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_color_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "ramp", + "type": "Gradient" + } + ] + }, + { + "name": "get_color_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_color_initial_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "ramp", + "type": "Gradient" + } + ] + }, + { + "name": "get_color_initial_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_particle_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4178137949, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::CPUParticles2D.ParticleFlags" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_particle_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2829976507, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::CPUParticles2D.ParticleFlags" + } + ] + }, + { + "name": "set_emission_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 393763892, + "arguments": [ + { + "name": "shape", + "type": "enum::CPUParticles2D.EmissionShape" + } + ] + }, + { + "name": "get_emission_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740246024, + "return_value": { + "type": "enum::CPUParticles2D.EmissionShape" + } + }, + { + "name": "set_emission_sphere_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_sphere_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_rect_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "extents", + "type": "Vector2" + } + ] + }, + { + "name": "get_emission_rect_extents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_emission_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "array", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_emission_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_emission_normals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "array", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_emission_normals", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_emission_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3546319833, + "arguments": [ + { + "name": "array", + "type": "PackedColorArray" + } + ] + }, + { + "name": "get_emission_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "accel_vec", + "type": "Vector2" + } + ] + }, + { + "name": "get_split_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_split_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "split_scale", + "type": "bool" + } + ] + }, + { + "name": "get_scale_curve_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_scale_curve_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "scale_curve", + "type": "Curve" + } + ] + }, + { + "name": "get_scale_curve_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_scale_curve_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "scale_curve", + "type": "Curve" + } + ] + }, + { + "name": "convert_from_particles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "particles", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "emitting", + "setter": "set_emitting", + "getter": "is_emitting" + }, + { + "type": "int", + "name": "amount", + "setter": "set_amount", + "getter": "get_amount" + }, + { + "type": "float", + "name": "lifetime", + "setter": "set_lifetime", + "getter": "get_lifetime" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "get_one_shot" + }, + { + "type": "float", + "name": "preprocess", + "setter": "set_pre_process_time", + "getter": "get_pre_process_time" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "float", + "name": "explosiveness", + "setter": "set_explosiveness_ratio", + "getter": "get_explosiveness_ratio" + }, + { + "type": "float", + "name": "randomness", + "setter": "set_randomness_ratio", + "getter": "get_randomness_ratio" + }, + { + "type": "float", + "name": "lifetime_randomness", + "setter": "set_lifetime_randomness", + "getter": "get_lifetime_randomness" + }, + { + "type": "int", + "name": "fixed_fps", + "setter": "set_fixed_fps", + "getter": "get_fixed_fps" + }, + { + "type": "bool", + "name": "fract_delta", + "setter": "set_fractional_delta", + "getter": "get_fractional_delta" + }, + { + "type": "bool", + "name": "local_coords", + "setter": "set_use_local_coordinates", + "getter": "get_use_local_coordinates" + }, + { + "type": "int", + "name": "draw_order", + "setter": "set_draw_order", + "getter": "get_draw_order" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "int", + "name": "emission_shape", + "setter": "set_emission_shape", + "getter": "get_emission_shape" + }, + { + "type": "float", + "name": "emission_sphere_radius", + "setter": "set_emission_sphere_radius", + "getter": "get_emission_sphere_radius" + }, + { + "type": "Vector2", + "name": "emission_rect_extents", + "setter": "set_emission_rect_extents", + "getter": "get_emission_rect_extents" + }, + { + "type": "PackedVector2Array", + "name": "emission_points", + "setter": "set_emission_points", + "getter": "get_emission_points" + }, + { + "type": "PackedVector2Array", + "name": "emission_normals", + "setter": "set_emission_normals", + "getter": "get_emission_normals" + }, + { + "type": "PackedColorArray", + "name": "emission_colors", + "setter": "set_emission_colors", + "getter": "get_emission_colors" + }, + { + "type": "bool", + "name": "particle_flag_align_y", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 0 + }, + { + "type": "Vector2", + "name": "direction", + "setter": "set_direction", + "getter": "get_direction" + }, + { + "type": "float", + "name": "spread", + "setter": "set_spread", + "getter": "get_spread" + }, + { + "type": "Vector2", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + }, + { + "type": "float", + "name": "initial_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 0 + }, + { + "type": "float", + "name": "initial_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 0 + }, + { + "type": "float", + "name": "angular_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 1 + }, + { + "type": "float", + "name": "angular_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 1 + }, + { + "type": "Curve", + "name": "angular_velocity_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 1 + }, + { + "type": "float", + "name": "orbit_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 2 + }, + { + "type": "float", + "name": "orbit_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 2 + }, + { + "type": "Curve", + "name": "orbit_velocity_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 2 + }, + { + "type": "float", + "name": "linear_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 3 + }, + { + "type": "float", + "name": "linear_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 3 + }, + { + "type": "Curve", + "name": "linear_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 3 + }, + { + "type": "float", + "name": "radial_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 4 + }, + { + "type": "float", + "name": "radial_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 4 + }, + { + "type": "Curve", + "name": "radial_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 4 + }, + { + "type": "float", + "name": "tangential_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 5 + }, + { + "type": "float", + "name": "tangential_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 5 + }, + { + "type": "Curve", + "name": "tangential_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 5 + }, + { + "type": "float", + "name": "damping_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 6 + }, + { + "type": "float", + "name": "damping_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 6 + }, + { + "type": "Curve", + "name": "damping_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 6 + }, + { + "type": "float", + "name": "angle_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 7 + }, + { + "type": "float", + "name": "angle_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 7 + }, + { + "type": "Curve", + "name": "angle_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 7 + }, + { + "type": "float", + "name": "scale_amount_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 8 + }, + { + "type": "float", + "name": "scale_amount_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 8 + }, + { + "type": "Curve", + "name": "scale_amount_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 8 + }, + { + "type": "bool", + "name": "split_scale", + "setter": "set_split_scale", + "getter": "get_split_scale" + }, + { + "type": "Curve", + "name": "scale_curve_x", + "setter": "set_scale_curve_x", + "getter": "get_scale_curve_x" + }, + { + "type": "Curve", + "name": "scale_curve_y", + "setter": "set_scale_curve_y", + "getter": "get_scale_curve_y" + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "Gradient", + "name": "color_ramp", + "setter": "set_color_ramp", + "getter": "get_color_ramp" + }, + { + "type": "Gradient", + "name": "color_initial_ramp", + "setter": "set_color_initial_ramp", + "getter": "get_color_initial_ramp" + }, + { + "type": "float", + "name": "hue_variation_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 9 + }, + { + "type": "float", + "name": "hue_variation_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 9 + }, + { + "type": "Curve", + "name": "hue_variation_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 9 + }, + { + "type": "float", + "name": "anim_speed_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 10 + }, + { + "type": "float", + "name": "anim_speed_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 10 + }, + { + "type": "Curve", + "name": "anim_speed_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 10 + }, + { + "type": "float", + "name": "anim_offset_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 11 + }, + { + "type": "float", + "name": "anim_offset_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 11 + }, + { + "type": "Curve", + "name": "anim_offset_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 11 + } + ] + }, + { + "name": "CPUParticles3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GeometryInstance3D", + "api_type": "core", + "enums": [ + { + "name": "DrawOrder", + "is_bitfield": false, + "values": [ + { + "name": "DRAW_ORDER_INDEX", + "value": 0 + }, + { + "name": "DRAW_ORDER_LIFETIME", + "value": 1 + }, + { + "name": "DRAW_ORDER_VIEW_DEPTH", + "value": 2 + } + ] + }, + { + "name": "Parameter", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_INITIAL_LINEAR_VELOCITY", + "value": 0 + }, + { + "name": "PARAM_ANGULAR_VELOCITY", + "value": 1 + }, + { + "name": "PARAM_ORBIT_VELOCITY", + "value": 2 + }, + { + "name": "PARAM_LINEAR_ACCEL", + "value": 3 + }, + { + "name": "PARAM_RADIAL_ACCEL", + "value": 4 + }, + { + "name": "PARAM_TANGENTIAL_ACCEL", + "value": 5 + }, + { + "name": "PARAM_DAMPING", + "value": 6 + }, + { + "name": "PARAM_ANGLE", + "value": 7 + }, + { + "name": "PARAM_SCALE", + "value": 8 + }, + { + "name": "PARAM_HUE_VARIATION", + "value": 9 + }, + { + "name": "PARAM_ANIM_SPEED", + "value": 10 + }, + { + "name": "PARAM_ANIM_OFFSET", + "value": 11 + }, + { + "name": "PARAM_MAX", + "value": 12 + } + ] + }, + { + "name": "ParticleFlags", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", + "value": 0 + }, + { + "name": "PARTICLE_FLAG_ROTATE_Y", + "value": 1 + }, + { + "name": "PARTICLE_FLAG_DISABLE_Z", + "value": 2 + }, + { + "name": "PARTICLE_FLAG_MAX", + "value": 3 + } + ] + }, + { + "name": "EmissionShape", + "is_bitfield": false, + "values": [ + { + "name": "EMISSION_SHAPE_POINT", + "value": 0 + }, + { + "name": "EMISSION_SHAPE_SPHERE", + "value": 1 + }, + { + "name": "EMISSION_SHAPE_SPHERE_SURFACE", + "value": 2 + }, + { + "name": "EMISSION_SHAPE_BOX", + "value": 3 + }, + { + "name": "EMISSION_SHAPE_POINTS", + "value": 4 + }, + { + "name": "EMISSION_SHAPE_DIRECTED_POINTS", + "value": 5 + }, + { + "name": "EMISSION_SHAPE_RING", + "value": 6 + }, + { + "name": "EMISSION_SHAPE_MAX", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "emitting", + "type": "bool" + } + ] + }, + { + "name": "set_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_pre_process_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_explosiveness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_randomness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_lifetime_randomness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "random", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_use_local_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_fixed_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fractional_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_emitting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pre_process_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_explosiveness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_randomness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_lifetime_randomness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_use_local_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_fixed_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_fractional_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_draw_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1427401774, + "arguments": [ + { + "name": "order", + "type": "enum::CPUParticles3D.DrawOrder" + } + ] + }, + { + "name": "get_draw_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321900776, + "return_value": { + "type": "enum::CPUParticles3D.DrawOrder" + } + }, + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "restart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "direction", + "type": "Vector3" + } + ] + }, + { + "name": "get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_spread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_spread", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_flatness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_flatness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_param_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 557936109, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 597646162, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + } + ] + }, + { + "name": "set_param_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 557936109, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 597646162, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + } + ] + }, + { + "name": "set_param_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4044142537, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + }, + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_param_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4132790277, + "return_value": { + "type": "Curve" + }, + "arguments": [ + { + "name": "param", + "type": "enum::CPUParticles3D.Parameter" + } + ] + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_color_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "ramp", + "type": "Gradient" + } + ] + }, + { + "name": "get_color_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_color_initial_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "ramp", + "type": "Gradient" + } + ] + }, + { + "name": "get_color_initial_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_particle_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3515406498, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::CPUParticles3D.ParticleFlags" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_particle_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2845201987, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::CPUParticles3D.ParticleFlags" + } + ] + }, + { + "name": "set_emission_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 491823814, + "arguments": [ + { + "name": "shape", + "type": "enum::CPUParticles3D.EmissionShape" + } + ] + }, + { + "name": "get_emission_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961454842, + "return_value": { + "type": "enum::CPUParticles3D.EmissionShape" + } + }, + { + "name": "set_emission_sphere_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_sphere_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_box_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "extents", + "type": "Vector3" + } + ] + }, + { + "name": "get_emission_box_extents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_emission_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "array", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_emission_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "set_emission_normals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "array", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_emission_normals", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "set_emission_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3546319833, + "arguments": [ + { + "name": "array", + "type": "PackedColorArray" + } + ] + }, + { + "name": "get_emission_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "set_emission_ring_axis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + } + ] + }, + { + "name": "get_emission_ring_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_emission_ring_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_ring_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_ring_inner_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "inner_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_inner_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "accel_vec", + "type": "Vector3" + } + ] + }, + { + "name": "get_split_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_split_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "split_scale", + "type": "bool" + } + ] + }, + { + "name": "get_scale_curve_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_scale_curve_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "scale_curve", + "type": "Curve" + } + ] + }, + { + "name": "get_scale_curve_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_scale_curve_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "scale_curve", + "type": "Curve" + } + ] + }, + { + "name": "get_scale_curve_z", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_scale_curve_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "scale_curve", + "type": "Curve" + } + ] + }, + { + "name": "convert_from_particles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "particles", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "emitting", + "setter": "set_emitting", + "getter": "is_emitting" + }, + { + "type": "int", + "name": "amount", + "setter": "set_amount", + "getter": "get_amount" + }, + { + "type": "float", + "name": "lifetime", + "setter": "set_lifetime", + "getter": "get_lifetime" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "get_one_shot" + }, + { + "type": "float", + "name": "preprocess", + "setter": "set_pre_process_time", + "getter": "get_pre_process_time" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "float", + "name": "explosiveness", + "setter": "set_explosiveness_ratio", + "getter": "get_explosiveness_ratio" + }, + { + "type": "float", + "name": "randomness", + "setter": "set_randomness_ratio", + "getter": "get_randomness_ratio" + }, + { + "type": "float", + "name": "lifetime_randomness", + "setter": "set_lifetime_randomness", + "getter": "get_lifetime_randomness" + }, + { + "type": "int", + "name": "fixed_fps", + "setter": "set_fixed_fps", + "getter": "get_fixed_fps" + }, + { + "type": "bool", + "name": "fract_delta", + "setter": "set_fractional_delta", + "getter": "get_fractional_delta" + }, + { + "type": "bool", + "name": "local_coords", + "setter": "set_use_local_coordinates", + "getter": "get_use_local_coordinates" + }, + { + "type": "int", + "name": "draw_order", + "setter": "set_draw_order", + "getter": "get_draw_order" + }, + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "int", + "name": "emission_shape", + "setter": "set_emission_shape", + "getter": "get_emission_shape" + }, + { + "type": "float", + "name": "emission_sphere_radius", + "setter": "set_emission_sphere_radius", + "getter": "get_emission_sphere_radius" + }, + { + "type": "Vector3", + "name": "emission_box_extents", + "setter": "set_emission_box_extents", + "getter": "get_emission_box_extents" + }, + { + "type": "PackedVector3Array", + "name": "emission_points", + "setter": "set_emission_points", + "getter": "get_emission_points" + }, + { + "type": "PackedVector3Array", + "name": "emission_normals", + "setter": "set_emission_normals", + "getter": "get_emission_normals" + }, + { + "type": "PackedColorArray", + "name": "emission_colors", + "setter": "set_emission_colors", + "getter": "get_emission_colors" + }, + { + "type": "Vector3", + "name": "emission_ring_axis", + "setter": "set_emission_ring_axis", + "getter": "get_emission_ring_axis" + }, + { + "type": "float", + "name": "emission_ring_height", + "setter": "set_emission_ring_height", + "getter": "get_emission_ring_height" + }, + { + "type": "float", + "name": "emission_ring_radius", + "setter": "set_emission_ring_radius", + "getter": "get_emission_ring_radius" + }, + { + "type": "float", + "name": "emission_ring_inner_radius", + "setter": "set_emission_ring_inner_radius", + "getter": "get_emission_ring_inner_radius" + }, + { + "type": "bool", + "name": "particle_flag_align_y", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 0 + }, + { + "type": "bool", + "name": "particle_flag_rotate_y", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 1 + }, + { + "type": "bool", + "name": "particle_flag_disable_z", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 2 + }, + { + "type": "Vector3", + "name": "direction", + "setter": "set_direction", + "getter": "get_direction" + }, + { + "type": "float", + "name": "spread", + "setter": "set_spread", + "getter": "get_spread" + }, + { + "type": "float", + "name": "flatness", + "setter": "set_flatness", + "getter": "get_flatness" + }, + { + "type": "Vector3", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + }, + { + "type": "float", + "name": "initial_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 0 + }, + { + "type": "float", + "name": "initial_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 0 + }, + { + "type": "float", + "name": "angular_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 1 + }, + { + "type": "float", + "name": "angular_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 1 + }, + { + "type": "Curve", + "name": "angular_velocity_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 1 + }, + { + "type": "float", + "name": "orbit_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 2 + }, + { + "type": "float", + "name": "orbit_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 2 + }, + { + "type": "Curve", + "name": "orbit_velocity_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 2 + }, + { + "type": "float", + "name": "linear_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 3 + }, + { + "type": "float", + "name": "linear_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 3 + }, + { + "type": "Curve", + "name": "linear_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 3 + }, + { + "type": "float", + "name": "radial_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 4 + }, + { + "type": "float", + "name": "radial_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 4 + }, + { + "type": "Curve", + "name": "radial_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 4 + }, + { + "type": "float", + "name": "tangential_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 5 + }, + { + "type": "float", + "name": "tangential_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 5 + }, + { + "type": "Curve", + "name": "tangential_accel_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 5 + }, + { + "type": "float", + "name": "damping_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 6 + }, + { + "type": "float", + "name": "damping_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 6 + }, + { + "type": "Curve", + "name": "damping_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 6 + }, + { + "type": "float", + "name": "angle_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 7 + }, + { + "type": "float", + "name": "angle_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 7 + }, + { + "type": "Curve", + "name": "angle_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 7 + }, + { + "type": "float", + "name": "scale_amount_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 8 + }, + { + "type": "float", + "name": "scale_amount_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 8 + }, + { + "type": "Curve", + "name": "scale_amount_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 8 + }, + { + "type": "bool", + "name": "split_scale", + "setter": "set_split_scale", + "getter": "get_split_scale" + }, + { + "type": "Curve", + "name": "scale_curve_x", + "setter": "set_scale_curve_x", + "getter": "get_scale_curve_x" + }, + { + "type": "Curve", + "name": "scale_curve_y", + "setter": "set_scale_curve_y", + "getter": "get_scale_curve_y" + }, + { + "type": "Curve", + "name": "scale_curve_z", + "setter": "set_scale_curve_z", + "getter": "get_scale_curve_z" + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "Gradient", + "name": "color_ramp", + "setter": "set_color_ramp", + "getter": "get_color_ramp" + }, + { + "type": "Gradient", + "name": "color_initial_ramp", + "setter": "set_color_initial_ramp", + "getter": "get_color_initial_ramp" + }, + { + "type": "float", + "name": "hue_variation_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 9 + }, + { + "type": "float", + "name": "hue_variation_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 9 + }, + { + "type": "Curve", + "name": "hue_variation_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 9 + }, + { + "type": "float", + "name": "anim_speed_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 10 + }, + { + "type": "float", + "name": "anim_speed_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 10 + }, + { + "type": "Curve", + "name": "anim_speed_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 10 + }, + { + "type": "float", + "name": "anim_offset_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 11 + }, + { + "type": "float", + "name": "anim_offset_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 11 + }, + { + "type": "Curve", + "name": "anim_offset_curve", + "setter": "set_param_curve", + "getter": "get_param_curve", + "index": 11 + } + ] + }, + { + "name": "CSGBox3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CSGCombiner3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGShape3D", + "api_type": "core" + }, + { + "name": "CSGCylinder3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_cone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "cone", + "type": "bool" + } + ] + }, + { + "name": "is_cone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_smooth_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "smooth_faces", + "type": "bool" + } + ] + }, + { + "name": "get_smooth_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "int", + "name": "sides", + "setter": "set_sides", + "getter": "get_sides" + }, + { + "type": "bool", + "name": "cone", + "setter": "set_cone", + "getter": "is_cone" + }, + { + "type": "bool", + "name": "smooth_faces", + "setter": "set_smooth_faces", + "getter": "get_smooth_faces" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CSGMesh3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4081188045, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ], + "properties": [ + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CSGPolygon3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_DEPTH", + "value": 0 + }, + { + "name": "MODE_SPIN", + "value": 1 + }, + { + "name": "MODE_PATH", + "value": 2 + } + ] + }, + { + "name": "PathRotation", + "is_bitfield": false, + "values": [ + { + "name": "PATH_ROTATION_POLYGON", + "value": 0 + }, + { + "name": "PATH_ROTATION_PATH", + "value": 1 + }, + { + "name": "PATH_ROTATION_PATH_FOLLOW", + "value": 2 + } + ] + }, + { + "name": "PathIntervalType", + "is_bitfield": false, + "values": [ + { + "name": "PATH_INTERVAL_DISTANCE", + "value": 0 + }, + { + "name": "PATH_INTERVAL_SUBDIVIDE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3158377035, + "arguments": [ + { + "name": "mode", + "type": "enum::CSGPolygon3D.Mode" + } + ] + }, + { + "name": "get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1201612222, + "return_value": { + "type": "enum::CSGPolygon3D.Mode" + } + }, + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_spin_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_spin_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_spin_sides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "spin_sides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_spin_sides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_path_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_path_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_path_interval_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744240707, + "arguments": [ + { + "name": "interval_type", + "type": "enum::CSGPolygon3D.PathIntervalType" + } + ] + }, + { + "name": "get_path_interval_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3434618397, + "return_value": { + "type": "enum::CSGPolygon3D.PathIntervalType" + } + }, + { + "name": "set_path_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "interval", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_path_simplify_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_simplify_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_path_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1412947288, + "arguments": [ + { + "name": "path_rotation", + "type": "enum::CSGPolygon3D.PathRotation" + } + ] + }, + { + "name": "get_path_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 647219346, + "return_value": { + "type": "enum::CSGPolygon3D.PathRotation" + } + }, + { + "name": "set_path_local", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_path_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_path_continuous_u", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_path_continuous_u", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_path_u_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_u_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_path_joined", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_path_joined", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_smooth_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "smooth_faces", + "type": "bool" + } + ] + }, + { + "name": "get_smooth_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + }, + { + "type": "int", + "name": "mode", + "setter": "set_mode", + "getter": "get_mode" + }, + { + "type": "float", + "name": "depth", + "setter": "set_depth", + "getter": "get_depth" + }, + { + "type": "float", + "name": "spin_degrees", + "setter": "set_spin_degrees", + "getter": "get_spin_degrees" + }, + { + "type": "int", + "name": "spin_sides", + "setter": "set_spin_sides", + "getter": "get_spin_sides" + }, + { + "type": "NodePath", + "name": "path_node", + "setter": "set_path_node", + "getter": "get_path_node" + }, + { + "type": "int", + "name": "path_interval_type", + "setter": "set_path_interval_type", + "getter": "get_path_interval_type" + }, + { + "type": "float", + "name": "path_interval", + "setter": "set_path_interval", + "getter": "get_path_interval" + }, + { + "type": "float", + "name": "path_simplify_angle", + "setter": "set_path_simplify_angle", + "getter": "get_path_simplify_angle" + }, + { + "type": "int", + "name": "path_rotation", + "setter": "set_path_rotation", + "getter": "get_path_rotation" + }, + { + "type": "bool", + "name": "path_local", + "setter": "set_path_local", + "getter": "is_path_local" + }, + { + "type": "bool", + "name": "path_continuous_u", + "setter": "set_path_continuous_u", + "getter": "is_path_continuous_u" + }, + { + "type": "float", + "name": "path_u_distance", + "setter": "set_path_u_distance", + "getter": "get_path_u_distance" + }, + { + "type": "bool", + "name": "path_joined", + "setter": "set_path_joined", + "getter": "is_path_joined" + }, + { + "type": "bool", + "name": "smooth_faces", + "setter": "set_smooth_faces", + "getter": "get_smooth_faces" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CSGPrimitive3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "CSGShape3D", + "api_type": "core", + "methods": [ + { + "name": "set_flip_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_faces", + "type": "bool" + } + ] + }, + { + "name": "get_flip_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "flip_faces", + "setter": "set_flip_faces", + "getter": "get_flip_faces" + } + ] + }, + { + "name": "CSGShape3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "GeometryInstance3D", + "api_type": "core", + "enums": [ + { + "name": "Operation", + "is_bitfield": false, + "values": [ + { + "name": "OPERATION_UNION", + "value": 0 + }, + { + "name": "OPERATION_INTERSECTION", + "value": 1 + }, + { + "name": "OPERATION_SUBTRACTION", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "is_root_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_operation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 811425055, + "arguments": [ + { + "name": "operation", + "type": "enum::CSGShape3D.Operation" + } + ] + }, + { + "name": "get_operation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2662425879, + "return_value": { + "type": "enum::CSGShape3D.Operation" + } + }, + { + "name": "set_snap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "snap", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_snap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "operation", + "type": "bool" + } + ] + }, + { + "name": "is_using_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_calculate_tangents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_calculating_tangents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_meshes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operation", + "setter": "set_operation", + "getter": "get_operation" + }, + { + "type": "float", + "name": "snap", + "setter": "set_snap", + "getter": "get_snap" + }, + { + "type": "bool", + "name": "calculate_tangents", + "setter": "set_calculate_tangents", + "getter": "is_calculating_tangents" + }, + { + "type": "bool", + "name": "use_collision", + "setter": "set_use_collision", + "getter": "is_using_collision" + }, + { + "type": "int", + "name": "collision_layer", + "setter": "set_collision_layer", + "getter": "get_collision_layer" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "float", + "name": "collision_priority", + "setter": "set_collision_priority", + "getter": "get_collision_priority" + } + ] + }, + { + "name": "CSGSphere3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "radial_segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_radial_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_smooth_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "smooth_faces", + "type": "bool" + } + ] + }, + { + "name": "get_smooth_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "int", + "name": "radial_segments", + "setter": "set_radial_segments", + "getter": "get_radial_segments" + }, + { + "type": "int", + "name": "rings", + "setter": "set_rings", + "getter": "get_rings" + }, + { + "type": "bool", + "name": "smooth_faces", + "setter": "set_smooth_faces", + "getter": "get_smooth_faces" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CSGTorus3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CSGPrimitive3D", + "api_type": "core", + "methods": [ + { + "name": "set_inner_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_inner_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_outer_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_outer_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_ring_sides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ring_sides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_smooth_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "smooth_faces", + "type": "bool" + } + ] + }, + { + "name": "get_smooth_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "inner_radius", + "setter": "set_inner_radius", + "getter": "get_inner_radius" + }, + { + "type": "float", + "name": "outer_radius", + "setter": "set_outer_radius", + "getter": "get_outer_radius" + }, + { + "type": "int", + "name": "sides", + "setter": "set_sides", + "getter": "get_sides" + }, + { + "type": "int", + "name": "ring_sides", + "setter": "set_ring_sides", + "getter": "get_ring_sides" + }, + { + "type": "bool", + "name": "smooth_faces", + "setter": "set_smooth_faces", + "getter": "get_smooth_faces" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "CallbackTweener", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Tweener", + "api_type": "core", + "methods": [ + { + "name": "set_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3008182292, + "return_value": { + "type": "CallbackTweener" + }, + "arguments": [ + { + "name": "delay", + "type": "float", + "meta": "double" + } + ] + } + ] + }, + { + "name": "Camera2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "AnchorMode", + "is_bitfield": false, + "values": [ + { + "name": "ANCHOR_MODE_FIXED_TOP_LEFT", + "value": 0 + }, + { + "name": "ANCHOR_MODE_DRAG_CENTER", + "value": 1 + } + ] + }, + { + "name": "Camera2DProcessCallback", + "is_bitfield": false, + "values": [ + { + "name": "CAMERA2D_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "CAMERA2D_PROCESS_IDLE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_anchor_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2050398218, + "arguments": [ + { + "name": "anchor_mode", + "type": "enum::Camera2D.AnchorMode" + } + ] + }, + { + "name": "get_anchor_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 155978067, + "return_value": { + "type": "enum::Camera2D.AnchorMode" + } + }, + { + "name": "set_ignore_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "is_ignoring_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4201947462, + "arguments": [ + { + "name": "mode", + "type": "enum::Camera2D.Camera2DProcessCallback" + } + ] + }, + { + "name": "get_process_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2325344499, + "return_value": { + "type": "enum::Camera2D.Camera2DProcessCallback" + } + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "make_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_current", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 437707142, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "limit", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_limit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1983885014, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_limit_smoothing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "limit_smoothing_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_limit_smoothing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drag_vertical_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_drag_vertical_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drag_horizontal_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_drag_horizontal_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drag_vertical_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_drag_vertical_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_drag_horizontal_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_drag_horizontal_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_drag_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "drag_margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_drag_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_screen_center_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_zoom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "zoom", + "type": "Vector2" + } + ] + }, + { + "name": "get_zoom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_custom_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "viewport", + "type": "Node" + } + ] + }, + { + "name": "get_custom_viewport", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "set_position_smoothing_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "position_smoothing_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_position_smoothing_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_position_smoothing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "position_smoothing_speed", + "type": "bool" + } + ] + }, + { + "name": "is_position_smoothing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_rotation_smoothing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_rotation_smoothing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_rotation_smoothing_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rotation_smoothing_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "force_update_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "reset_smoothing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_screen_drawing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "screen_drawing_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_screen_drawing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_limit_drawing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "limit_drawing_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_limit_drawing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_margin_drawing_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "margin_drawing_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_margin_drawing_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "int", + "name": "anchor_mode", + "setter": "set_anchor_mode", + "getter": "get_anchor_mode" + }, + { + "type": "bool", + "name": "ignore_rotation", + "setter": "set_ignore_rotation", + "getter": "is_ignoring_rotation" + }, + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "Vector2", + "name": "zoom", + "setter": "set_zoom", + "getter": "get_zoom" + }, + { + "type": "Viewport", + "name": "custom_viewport", + "setter": "set_custom_viewport", + "getter": "get_custom_viewport" + }, + { + "type": "int", + "name": "process_callback", + "setter": "set_process_callback", + "getter": "get_process_callback" + }, + { + "type": "int", + "name": "limit_left", + "setter": "set_limit", + "getter": "get_limit", + "index": 0 + }, + { + "type": "int", + "name": "limit_top", + "setter": "set_limit", + "getter": "get_limit", + "index": 1 + }, + { + "type": "int", + "name": "limit_right", + "setter": "set_limit", + "getter": "get_limit", + "index": 2 + }, + { + "type": "int", + "name": "limit_bottom", + "setter": "set_limit", + "getter": "get_limit", + "index": 3 + }, + { + "type": "bool", + "name": "limit_smoothed", + "setter": "set_limit_smoothing_enabled", + "getter": "is_limit_smoothing_enabled" + }, + { + "type": "bool", + "name": "position_smoothing_enabled", + "setter": "set_position_smoothing_enabled", + "getter": "is_position_smoothing_enabled" + }, + { + "type": "float", + "name": "position_smoothing_speed", + "setter": "set_position_smoothing_speed", + "getter": "get_position_smoothing_speed" + }, + { + "type": "bool", + "name": "rotation_smoothing_enabled", + "setter": "set_rotation_smoothing_enabled", + "getter": "is_rotation_smoothing_enabled" + }, + { + "type": "float", + "name": "rotation_smoothing_speed", + "setter": "set_rotation_smoothing_speed", + "getter": "get_rotation_smoothing_speed" + }, + { + "type": "bool", + "name": "drag_horizontal_enabled", + "setter": "set_drag_horizontal_enabled", + "getter": "is_drag_horizontal_enabled" + }, + { + "type": "bool", + "name": "drag_vertical_enabled", + "setter": "set_drag_vertical_enabled", + "getter": "is_drag_vertical_enabled" + }, + { + "type": "float", + "name": "drag_horizontal_offset", + "setter": "set_drag_horizontal_offset", + "getter": "get_drag_horizontal_offset" + }, + { + "type": "float", + "name": "drag_vertical_offset", + "setter": "set_drag_vertical_offset", + "getter": "get_drag_vertical_offset" + }, + { + "type": "float", + "name": "drag_left_margin", + "setter": "set_drag_margin", + "getter": "get_drag_margin", + "index": 0 + }, + { + "type": "float", + "name": "drag_top_margin", + "setter": "set_drag_margin", + "getter": "get_drag_margin", + "index": 1 + }, + { + "type": "float", + "name": "drag_right_margin", + "setter": "set_drag_margin", + "getter": "get_drag_margin", + "index": 2 + }, + { + "type": "float", + "name": "drag_bottom_margin", + "setter": "set_drag_margin", + "getter": "get_drag_margin", + "index": 3 + }, + { + "type": "bool", + "name": "editor_draw_screen", + "setter": "set_screen_drawing_enabled", + "getter": "is_screen_drawing_enabled" + }, + { + "type": "bool", + "name": "editor_draw_limits", + "setter": "set_limit_drawing_enabled", + "getter": "is_limit_drawing_enabled" + }, + { + "type": "bool", + "name": "editor_draw_drag_margin", + "setter": "set_margin_drawing_enabled", + "getter": "is_margin_drawing_enabled" + } + ] + }, + { + "name": "Camera3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "ProjectionType", + "is_bitfield": false, + "values": [ + { + "name": "PROJECTION_PERSPECTIVE", + "value": 0 + }, + { + "name": "PROJECTION_ORTHOGONAL", + "value": 1 + }, + { + "name": "PROJECTION_FRUSTUM", + "value": 2 + } + ] + }, + { + "name": "KeepAspect", + "is_bitfield": false, + "values": [ + { + "name": "KEEP_WIDTH", + "value": 0 + }, + { + "name": "KEEP_HEIGHT", + "value": 1 + } + ] + }, + { + "name": "DopplerTracking", + "is_bitfield": false, + "values": [ + { + "name": "DOPPLER_TRACKING_DISABLED", + "value": 0 + }, + { + "name": "DOPPLER_TRACKING_IDLE_STEP", + "value": 1 + }, + { + "name": "DOPPLER_TRACKING_PHYSICS_STEP", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "project_ray_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1718073306, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "screen_point", + "type": "Vector2" + } + ] + }, + { + "name": "project_local_ray_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1718073306, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "screen_point", + "type": "Vector2" + } + ] + }, + { + "name": "project_ray_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1718073306, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "screen_point", + "type": "Vector2" + } + ] + }, + { + "name": "unproject_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3758901831, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "world_point", + "type": "Vector3" + } + ] + }, + { + "name": "is_position_behind", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3108956480, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "world_point", + "type": "Vector3" + } + ] + }, + { + "name": "project_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2171975744, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "screen_point", + "type": "Vector2" + }, + { + "name": "z_depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_perspective", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2385087082, + "arguments": [ + { + "name": "fov", + "type": "float", + "meta": "float" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_orthogonal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2385087082, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_frustum", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 354890663, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + }, + { + "name": "offset", + "type": "Vector2" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "make_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "enable_next", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_current", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_camera_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_fov", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_frustum_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_far", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_near", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fov", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fov", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_frustum_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_far", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_near", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "near", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_projection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2624185235, + "return_value": { + "type": "enum::Camera3D.ProjectionType" + } + }, + { + "name": "set_projection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4218540108, + "arguments": [ + { + "name": "mode", + "type": "enum::Camera3D.ProjectionType" + } + ] + }, + { + "name": "set_h_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_h_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_v_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_v_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4143518816, + "arguments": [ + { + "name": "env", + "type": "Environment" + } + ] + }, + { + "name": "get_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082064660, + "return_value": { + "type": "Environment" + } + }, + { + "name": "set_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817810567, + "arguments": [ + { + "name": "env", + "type": "CameraAttributes" + } + ] + }, + { + "name": "get_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3921283215, + "return_value": { + "type": "CameraAttributes" + } + }, + { + "name": "set_keep_aspect_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740651252, + "arguments": [ + { + "name": "mode", + "type": "enum::Camera3D.KeepAspect" + } + ] + }, + { + "name": "get_keep_aspect_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2790278316, + "return_value": { + "type": "enum::Camera3D.KeepAspect" + } + }, + { + "name": "set_doppler_tracking", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3109431270, + "arguments": [ + { + "name": "mode", + "type": "enum::Camera3D.DopplerTracking" + } + ] + }, + { + "name": "get_doppler_tracking", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1584483649, + "return_value": { + "type": "enum::Camera3D.DopplerTracking" + } + }, + { + "name": "get_frustum", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Plane" + } + }, + { + "name": "is_position_in_frustum", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3108956480, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "world_point", + "type": "Vector3" + } + ] + }, + { + "name": "get_camera_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_pyramid_shape_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_cull_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_cull_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "keep_aspect", + "setter": "set_keep_aspect_mode", + "getter": "get_keep_aspect_mode" + }, + { + "type": "int", + "name": "cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + }, + { + "type": "Environment", + "name": "environment", + "setter": "set_environment", + "getter": "get_environment" + }, + { + "type": "CameraAttributesPractical,CameraAttributesPhysical", + "name": "attributes", + "setter": "set_attributes", + "getter": "get_attributes" + }, + { + "type": "float", + "name": "h_offset", + "setter": "set_h_offset", + "getter": "get_h_offset" + }, + { + "type": "float", + "name": "v_offset", + "setter": "set_v_offset", + "getter": "get_v_offset" + }, + { + "type": "int", + "name": "doppler_tracking", + "setter": "set_doppler_tracking", + "getter": "get_doppler_tracking" + }, + { + "type": "int", + "name": "projection", + "setter": "set_projection", + "getter": "get_projection" + }, + { + "type": "bool", + "name": "current", + "setter": "set_current", + "getter": "is_current" + }, + { + "type": "float", + "name": "fov", + "setter": "set_fov", + "getter": "get_fov" + }, + { + "type": "float", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Vector2", + "name": "frustum_offset", + "setter": "set_frustum_offset", + "getter": "get_frustum_offset" + }, + { + "type": "float", + "name": "near", + "setter": "set_near", + "getter": "get_near" + }, + { + "type": "float", + "name": "far", + "setter": "set_far", + "getter": "get_far" + } + ] + }, + { + "name": "CameraAttributes", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_exposure_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_exposure_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_exposure_sensitivity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sensitivity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_exposure_sensitivity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_auto_exposure_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_exposure_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "exposure_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "exposure_grey", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "exposure_sensitivity", + "setter": "set_exposure_sensitivity", + "getter": "get_exposure_sensitivity" + }, + { + "type": "float", + "name": "exposure_multiplier", + "setter": "set_exposure_multiplier", + "getter": "get_exposure_multiplier" + }, + { + "type": "bool", + "name": "auto_exposure_enabled", + "setter": "set_auto_exposure_enabled", + "getter": "is_auto_exposure_enabled" + }, + { + "type": "float", + "name": "auto_exposure_scale", + "setter": "set_auto_exposure_scale", + "getter": "get_auto_exposure_scale" + }, + { + "type": "float", + "name": "auto_exposure_speed", + "setter": "set_auto_exposure_speed", + "getter": "get_auto_exposure_speed" + } + ] + }, + { + "name": "CameraAttributesPhysical", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "CameraAttributes", + "api_type": "core", + "methods": [ + { + "name": "set_aperture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "aperture", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_aperture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_shutter_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "shutter_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_shutter_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_focal_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "focal_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_focal_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_focus_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "focus_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_focus_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_near", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "near", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_near", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_far", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_far", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_fov", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_max_exposure_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "exposure_value_max", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_max_exposure_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_min_exposure_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "exposure_value_min", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_min_exposure_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "frustum_focus_distance", + "setter": "set_focus_distance", + "getter": "get_focus_distance" + }, + { + "type": "float", + "name": "frustum_focal_length", + "setter": "set_focal_length", + "getter": "get_focal_length" + }, + { + "type": "float", + "name": "frustum_near", + "setter": "set_near", + "getter": "get_near" + }, + { + "type": "float", + "name": "frustum_far", + "setter": "set_far", + "getter": "get_far" + }, + { + "type": "float", + "name": "exposure_aperture", + "setter": "set_aperture", + "getter": "get_aperture" + }, + { + "type": "float", + "name": "exposure_shutter_speed", + "setter": "set_shutter_speed", + "getter": "get_shutter_speed" + }, + { + "type": "float", + "name": "auto_exposure_min_exposure_value", + "setter": "set_auto_exposure_min_exposure_value", + "getter": "get_auto_exposure_min_exposure_value" + }, + { + "type": "float", + "name": "auto_exposure_max_exposure_value", + "setter": "set_auto_exposure_max_exposure_value", + "getter": "get_auto_exposure_max_exposure_value" + } + ] + }, + { + "name": "CameraAttributesPractical", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "CameraAttributes", + "api_type": "core", + "methods": [ + { + "name": "set_dof_blur_far_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_dof_blur_far_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_dof_blur_far_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dof_blur_far_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dof_blur_far_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dof_blur_far_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dof_blur_near_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_dof_blur_near_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_dof_blur_near_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dof_blur_near_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dof_blur_near_transition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dof_blur_near_transition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_dof_blur_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dof_blur_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_max_sensitivity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_sensitivity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_max_sensitivity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_auto_exposure_min_sensitivity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "min_sensitivity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_auto_exposure_min_sensitivity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "dof_blur_far_enabled", + "setter": "set_dof_blur_far_enabled", + "getter": "is_dof_blur_far_enabled" + }, + { + "type": "float", + "name": "dof_blur_far_distance", + "setter": "set_dof_blur_far_distance", + "getter": "get_dof_blur_far_distance" + }, + { + "type": "float", + "name": "dof_blur_far_transition", + "setter": "set_dof_blur_far_transition", + "getter": "get_dof_blur_far_transition" + }, + { + "type": "bool", + "name": "dof_blur_near_enabled", + "setter": "set_dof_blur_near_enabled", + "getter": "is_dof_blur_near_enabled" + }, + { + "type": "float", + "name": "dof_blur_near_distance", + "setter": "set_dof_blur_near_distance", + "getter": "get_dof_blur_near_distance" + }, + { + "type": "float", + "name": "dof_blur_near_transition", + "setter": "set_dof_blur_near_transition", + "getter": "get_dof_blur_near_transition" + }, + { + "type": "float", + "name": "dof_blur_amount", + "setter": "set_dof_blur_amount", + "getter": "get_dof_blur_amount" + }, + { + "type": "float", + "name": "auto_exposure_min_sensitivity", + "setter": "set_auto_exposure_min_sensitivity", + "getter": "get_auto_exposure_min_sensitivity" + }, + { + "type": "float", + "name": "auto_exposure_max_sensitivity", + "setter": "set_auto_exposure_max_sensitivity", + "getter": "get_auto_exposure_max_sensitivity" + } + ] + }, + { + "name": "CameraFeed", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "FeedDataType", + "is_bitfield": false, + "values": [ + { + "name": "FEED_NOIMAGE", + "value": 0 + }, + { + "name": "FEED_RGB", + "value": 1 + }, + { + "name": "FEED_YCBCR", + "value": 2 + }, + { + "name": "FEED_YCBCR_SEP", + "value": 3 + } + ] + }, + { + "name": "FeedPosition", + "is_bitfield": false, + "values": [ + { + "name": "FEED_UNSPECIFIED", + "value": 0 + }, + { + "name": "FEED_FRONT", + "value": 1 + }, + { + "name": "FEED_BACK", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2711679033, + "return_value": { + "type": "enum::CameraFeed.FeedPosition" + } + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_datatype", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1477782850, + "return_value": { + "type": "enum::CameraFeed.FeedDataType" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "feed_is_active", + "setter": "set_active", + "getter": "is_active" + }, + { + "type": "Transform2D", + "name": "feed_transform", + "setter": "set_transform", + "getter": "get_transform" + } + ] + }, + { + "name": "CameraServer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "FeedImage", + "is_bitfield": false, + "values": [ + { + "name": "FEED_RGBA_IMAGE", + "value": 0 + }, + { + "name": "FEED_YCBCR_IMAGE", + "value": 0 + }, + { + "name": "FEED_Y_IMAGE", + "value": 0 + }, + { + "name": "FEED_CBCR_IMAGE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "get_feed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 361927068, + "return_value": { + "type": "CameraFeed" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_feed_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "feeds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::CameraFeed" + } + }, + { + "name": "add_feed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3204782488, + "arguments": [ + { + "name": "feed", + "type": "CameraFeed" + } + ] + }, + { + "name": "remove_feed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3204782488, + "arguments": [ + { + "name": "feed", + "type": "CameraFeed" + } + ] + } + ], + "signals": [ + { + "name": "camera_feed_added", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "camera_feed_removed", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + } + ] + }, + { + "name": "CameraTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_camera_feed_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "feed_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_camera_feed_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_which_feed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1595299230, + "arguments": [ + { + "name": "which_feed", + "type": "enum::CameraServer.FeedImage" + } + ] + }, + { + "name": "get_which_feed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 91039457, + "return_value": { + "type": "enum::CameraServer.FeedImage" + } + }, + { + "name": "set_camera_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_camera_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "camera_feed_id", + "setter": "set_camera_feed_id", + "getter": "get_camera_feed_id" + }, + { + "type": "int", + "name": "which_feed", + "setter": "set_which_feed", + "getter": "get_which_feed" + }, + { + "type": "bool", + "name": "camera_is_active", + "setter": "set_camera_active", + "getter": "get_camera_active" + } + ] + }, + { + "name": "CanvasGroup", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_fit_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fit_margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fit_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_clear_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "clear_margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_clear_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_mipmaps", + "type": "bool" + } + ] + }, + { + "name": "is_using_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "fit_margin", + "setter": "set_fit_margin", + "getter": "get_fit_margin" + }, + { + "type": "float", + "name": "clear_margin", + "setter": "set_clear_margin", + "getter": "get_clear_margin" + }, + { + "type": "bool", + "name": "use_mipmaps", + "setter": "set_use_mipmaps", + "getter": "is_using_mipmaps" + } + ] + }, + { + "name": "CanvasItem", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_TRANSFORM_CHANGED", + "value": 2000 + }, + { + "name": "NOTIFICATION_LOCAL_TRANSFORM_CHANGED", + "value": 35 + }, + { + "name": "NOTIFICATION_DRAW", + "value": 30 + }, + { + "name": "NOTIFICATION_VISIBILITY_CHANGED", + "value": 31 + }, + { + "name": "NOTIFICATION_ENTER_CANVAS", + "value": 32 + }, + { + "name": "NOTIFICATION_EXIT_CANVAS", + "value": 33 + } + ], + "enums": [ + { + "name": "TextureFilter", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_FILTER_PARENT_NODE", + "value": 0 + }, + { + "name": "TEXTURE_FILTER_NEAREST", + "value": 1 + }, + { + "name": "TEXTURE_FILTER_LINEAR", + "value": 2 + }, + { + "name": "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", + "value": 3 + }, + { + "name": "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", + "value": 4 + }, + { + "name": "TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", + "value": 5 + }, + { + "name": "TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", + "value": 6 + }, + { + "name": "TEXTURE_FILTER_MAX", + "value": 7 + } + ] + }, + { + "name": "TextureRepeat", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_REPEAT_PARENT_NODE", + "value": 0 + }, + { + "name": "TEXTURE_REPEAT_DISABLED", + "value": 1 + }, + { + "name": "TEXTURE_REPEAT_ENABLED", + "value": 2 + }, + { + "name": "TEXTURE_REPEAT_MIRROR", + "value": 3 + }, + { + "name": "TEXTURE_REPEAT_MAX", + "value": 4 + } + ] + }, + { + "name": "ClipChildrenMode", + "is_bitfield": false, + "values": [ + { + "name": "CLIP_CHILDREN_DISABLED", + "value": 0 + }, + { + "name": "CLIP_CHILDREN_ONLY", + "value": 1 + }, + { + "name": "CLIP_CHILDREN_AND_DRAW", + "value": 2 + }, + { + "name": "CLIP_CHILDREN_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "_draw", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "get_canvas_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_visible_in_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "hide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "queue_redraw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "move_to_front", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_as_top_level", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_set_as_top_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_light_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "light_mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_light_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_self_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "self_modulate", + "type": "Color" + } + ] + }, + { + "name": "get_self_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_z_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "z_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_z_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_z_as_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_z_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_y_sort_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_y_sort_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_behind_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_draw_behind_parent_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "draw_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2516941890, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_dashed_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2175215884, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "dash", + "type": "float", + "meta": "float", + "default_value": "2.0" + }, + { + "name": "aligned", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "draw_polyline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4175878946, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_polyline_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2239164197, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_arc", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3486841771, + "arguments": [ + { + "name": "center", + "type": "Vector2" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "start_angle", + "type": "float", + "meta": "float" + }, + { + "name": "end_angle", + "type": "float", + "meta": "float" + }, + { + "name": "point_count", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_multiline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4230657331, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + } + ] + }, + { + "name": "draw_multiline_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 235933050, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + } + ] + }, + { + "name": "draw_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 84391229, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "filled", + "type": "bool", + "default_value": "true" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + } + ] + }, + { + "name": "draw_circle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3063020269, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "draw_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1695860435, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "position", + "type": "Vector2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_texture_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3204081724, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "tile", + "type": "bool" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3196597532, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + }, + { + "name": "clip_uv", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "draw_msdf_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2672026175, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "outline", + "type": "float", + "meta": "double", + "default_value": "0.0" + }, + { + "name": "pixel_range", + "type": "float", + "meta": "double", + "default_value": "4.0" + }, + { + "name": "scale", + "type": "float", + "meta": "double", + "default_value": "1.0" + } + ] + }, + { + "name": "draw_lcd_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 169610548, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_style_box", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 388176283, + "arguments": [ + { + "name": "style_box", + "type": "StyleBox" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "draw_primitive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2248678295, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "uvs", + "type": "PackedVector2Array" + }, + { + "name": "texture", + "type": "Texture2D", + "default_value": "null" + } + ] + }, + { + "name": "draw_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2683625537, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "uvs", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "texture", + "type": "Texture2D", + "default_value": "null" + } + ] + }, + { + "name": "draw_colored_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1659099617, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "uvs", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "texture", + "type": "Texture2D", + "default_value": "null" + } + ] + }, + { + "name": "draw_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2552080639, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_multiline_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4002645436, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "max_lines", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "brk_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_string_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 850005221, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_multiline_string_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3717870722, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "max_lines", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "brk_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2329089032, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "char", + "type": "String" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_char_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 419453826, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "char", + "type": "String" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1634855856, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + }, + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "transform", + "type": "Transform2D", + "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_multimesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937992368, + "arguments": [ + { + "name": "multimesh", + "type": "MultiMesh" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "draw_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4181505845, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "rotation", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "scale", + "type": "Vector2", + "default_value": "Vector2(1, 1)" + } + ] + }, + { + "name": "draw_set_transform_matrix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "draw_animation_slice", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2295343543, + "arguments": [ + { + "name": "animation_length", + "type": "float", + "meta": "double" + }, + { + "name": "slice_begin", + "type": "float", + "meta": "double" + }, + { + "name": "slice_end", + "type": "float", + "meta": "double" + }, + { + "name": "offset", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, + { + "name": "draw_end_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_global_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_global_transform_with_canvas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_viewport_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_viewport_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "get_canvas_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_screen_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_local_mouse_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_global_mouse_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_canvas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_world_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339128592, + "return_value": { + "type": "World2D" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_use_parent_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_use_parent_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_notify_local_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_local_transform_notification_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_notify_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_transform_notification_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "force_update_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "make_canvas_position_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "screen_point", + "type": "Vector2" + } + ] + }, + { + "name": "make_input_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 811130057, + "return_value": { + "type": "InputEvent" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "set_visibility_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_visibility_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_visibility_layer_bit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_visibility_layer_bit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1037999706, + "arguments": [ + { + "name": "mode", + "type": "enum::CanvasItem.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121960042, + "return_value": { + "type": "enum::CanvasItem.TextureFilter" + } + }, + { + "name": "set_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1716472974, + "arguments": [ + { + "name": "mode", + "type": "enum::CanvasItem.TextureRepeat" + } + ] + }, + { + "name": "get_texture_repeat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2667158319, + "return_value": { + "type": "enum::CanvasItem.TextureRepeat" + } + }, + { + "name": "set_clip_children_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1319393776, + "arguments": [ + { + "name": "mode", + "type": "enum::CanvasItem.ClipChildrenMode" + } + ] + }, + { + "name": "get_clip_children_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3581808349, + "return_value": { + "type": "enum::CanvasItem.ClipChildrenMode" + } + } + ], + "signals": [ + { + "name": "draw" + }, + { + "name": "visibility_changed" + }, + { + "name": "hidden" + }, + { + "name": "item_rect_changed" + } + ], + "properties": [ + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + }, + { + "type": "Color", + "name": "modulate", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "Color", + "name": "self_modulate", + "setter": "set_self_modulate", + "getter": "get_self_modulate" + }, + { + "type": "bool", + "name": "show_behind_parent", + "setter": "set_draw_behind_parent", + "getter": "is_draw_behind_parent_enabled" + }, + { + "type": "bool", + "name": "top_level", + "setter": "set_as_top_level", + "getter": "is_set_as_top_level" + }, + { + "type": "int", + "name": "clip_children", + "setter": "set_clip_children_mode", + "getter": "get_clip_children_mode" + }, + { + "type": "int", + "name": "light_mask", + "setter": "set_light_mask", + "getter": "get_light_mask" + }, + { + "type": "int", + "name": "visibility_layer", + "setter": "set_visibility_layer", + "getter": "get_visibility_layer" + }, + { + "type": "int", + "name": "z_index", + "setter": "set_z_index", + "getter": "get_z_index" + }, + { + "type": "bool", + "name": "z_as_relative", + "setter": "set_z_as_relative", + "getter": "is_z_relative" + }, + { + "type": "bool", + "name": "y_sort_enabled", + "setter": "set_y_sort_enabled", + "getter": "is_y_sort_enabled" + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "int", + "name": "texture_repeat", + "setter": "set_texture_repeat", + "getter": "get_texture_repeat" + }, + { + "type": "CanvasItemMaterial,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + }, + { + "type": "bool", + "name": "use_parent_material", + "setter": "set_use_parent_material", + "getter": "get_use_parent_material" + } + ] + }, + { + "name": "CanvasItemMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "enums": [ + { + "name": "BlendMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_MODE_MIX", + "value": 0 + }, + { + "name": "BLEND_MODE_ADD", + "value": 1 + }, + { + "name": "BLEND_MODE_SUB", + "value": 2 + }, + { + "name": "BLEND_MODE_MUL", + "value": 3 + }, + { + "name": "BLEND_MODE_PREMULT_ALPHA", + "value": 4 + } + ] + }, + { + "name": "LightMode", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_MODE_NORMAL", + "value": 0 + }, + { + "name": "LIGHT_MODE_UNSHADED", + "value": 1 + }, + { + "name": "LIGHT_MODE_LIGHT_ONLY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1786054936, + "arguments": [ + { + "name": "blend_mode", + "type": "enum::CanvasItemMaterial.BlendMode" + } + ] + }, + { + "name": "get_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3318684035, + "return_value": { + "type": "enum::CanvasItemMaterial.BlendMode" + } + }, + { + "name": "set_light_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 628074070, + "arguments": [ + { + "name": "light_mode", + "type": "enum::CanvasItemMaterial.LightMode" + } + ] + }, + { + "name": "get_light_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3863292382, + "return_value": { + "type": "enum::CanvasItemMaterial.LightMode" + } + }, + { + "name": "set_particles_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "particles_anim", + "type": "bool" + } + ] + }, + { + "name": "get_particles_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_particles_anim_h_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_particles_anim_h_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_particles_anim_v_frames", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frames", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_particles_anim_v_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_particles_anim_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "get_particles_anim_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "blend_mode", + "setter": "set_blend_mode", + "getter": "get_blend_mode" + }, + { + "type": "int", + "name": "light_mode", + "setter": "set_light_mode", + "getter": "get_light_mode" + }, + { + "type": "bool", + "name": "particles_animation", + "setter": "set_particles_animation", + "getter": "get_particles_animation" + }, + { + "type": "int", + "name": "particles_anim_h_frames", + "setter": "set_particles_anim_h_frames", + "getter": "get_particles_anim_h_frames" + }, + { + "type": "int", + "name": "particles_anim_v_frames", + "setter": "set_particles_anim_v_frames", + "getter": "get_particles_anim_v_frames" + }, + { + "type": "bool", + "name": "particles_anim_loop", + "setter": "set_particles_anim_loop", + "getter": "get_particles_anim_loop" + } + ] + }, + { + "name": "CanvasLayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "set_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "hide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_final_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_follow_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_following_viewport", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_follow_viewport_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_follow_viewport_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_custom_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "viewport", + "type": "Node" + } + ] + }, + { + "name": "get_custom_viewport", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "get_canvas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + } + ], + "signals": [ + { + "name": "visibility_changed" + } + ], + "properties": [ + { + "type": "int", + "name": "layer", + "setter": "set_layer", + "getter": "get_layer" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "float", + "name": "rotation", + "setter": "set_rotation", + "getter": "get_rotation" + }, + { + "type": "Vector2", + "name": "scale", + "setter": "set_scale", + "getter": "get_scale" + }, + { + "type": "Transform2D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "Viewport", + "name": "custom_viewport", + "setter": "set_custom_viewport", + "getter": "get_custom_viewport" + }, + { + "type": "bool", + "name": "follow_viewport_enabled", + "setter": "set_follow_viewport", + "getter": "is_following_viewport" + }, + { + "type": "float", + "name": "follow_viewport_scale", + "setter": "set_follow_viewport_scale", + "getter": "get_follow_viewport_scale" + } + ] + }, + { + "name": "CanvasModulate", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + } + ] + }, + { + "name": "CanvasTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_diffuse_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_diffuse_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_normal_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_normal_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_specular_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_specular_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_specular_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_specular_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_specular_shininess", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "shininess", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_specular_shininess", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1037999706, + "arguments": [ + { + "name": "filter", + "type": "enum::CanvasItem.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121960042, + "return_value": { + "type": "enum::CanvasItem.TextureFilter" + } + }, + { + "name": "set_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1716472974, + "arguments": [ + { + "name": "repeat", + "type": "enum::CanvasItem.TextureRepeat" + } + ] + }, + { + "name": "get_texture_repeat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2667158319, + "return_value": { + "type": "enum::CanvasItem.TextureRepeat" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "diffuse_texture", + "setter": "set_diffuse_texture", + "getter": "get_diffuse_texture" + }, + { + "type": "Texture2D", + "name": "normal_texture", + "setter": "set_normal_texture", + "getter": "get_normal_texture" + }, + { + "type": "Texture2D", + "name": "specular_texture", + "setter": "set_specular_texture", + "getter": "get_specular_texture" + }, + { + "type": "Color", + "name": "specular_color", + "setter": "set_specular_color", + "getter": "get_specular_color" + }, + { + "type": "float", + "name": "specular_shininess", + "setter": "set_specular_shininess", + "getter": "get_specular_shininess" + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "int", + "name": "texture_repeat", + "setter": "set_texture_repeat", + "getter": "get_texture_repeat" + } + ] + }, + { + "name": "CapsuleMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_radial_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "int", + "name": "radial_segments", + "setter": "set_radial_segments", + "getter": "get_radial_segments" + }, + { + "type": "int", + "name": "rings", + "setter": "set_rings", + "getter": "get_rings" + } + ] + }, + { + "name": "CapsuleShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + } + ] + }, + { + "name": "CapsuleShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + } + ] + }, + { + "name": "CenterContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "methods": [ + { + "name": "set_use_top_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_top_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "use_top_left", + "setter": "set_use_top_left", + "getter": "is_using_top_left" + } + ] + }, + { + "name": "CharFXTransform", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2741790807, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "range", + "type": "Vector2i" + } + ] + }, + { + "name": "get_elapsed_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_elapsed_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_visibility", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visibility", + "type": "bool" + } + ] + }, + { + "name": "is_outline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_outline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "outline", + "type": "bool" + } + ] + }, + { + "name": "get_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200896285, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "environment", + "type": "Dictionary" + } + ] + }, + { + "name": "get_glyph_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_glyph_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "glyph_index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_relative_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_relative_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "relative_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_glyph_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint8" + } + }, + { + "name": "set_glyph_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "glyph_count", + "type": "int", + "meta": "uint8" + } + ] + }, + { + "name": "get_glyph_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint16" + } + }, + { + "name": "set_glyph_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "glyph_flags", + "type": "int", + "meta": "uint16" + } + ] + }, + { + "name": "get_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "font", + "type": "RID" + } + ] + } + ], + "properties": [ + { + "type": "Vector2i", + "name": "range", + "setter": "set_range", + "getter": "get_range" + }, + { + "type": "float", + "name": "elapsed_time", + "setter": "set_elapsed_time", + "getter": "get_elapsed_time" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visibility", + "getter": "is_visible" + }, + { + "type": "bool", + "name": "outline", + "setter": "set_outline", + "getter": "is_outline" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "Dictionary", + "name": "env", + "setter": "set_environment", + "getter": "get_environment" + }, + { + "type": "int", + "name": "glyph_index", + "setter": "set_glyph_index", + "getter": "get_glyph_index" + }, + { + "type": "int", + "name": "glyph_count", + "setter": "set_glyph_count", + "getter": "get_glyph_count" + }, + { + "type": "int", + "name": "glyph_flags", + "setter": "set_glyph_flags", + "getter": "get_glyph_flags" + }, + { + "type": "int", + "name": "relative_index", + "setter": "set_relative_index", + "getter": "get_relative_index" + }, + { + "type": "RID", + "name": "font", + "setter": "set_font", + "getter": "get_font" + } + ] + }, + { + "name": "CharacterBody2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody2D", + "api_type": "core", + "enums": [ + { + "name": "MotionMode", + "is_bitfield": false, + "values": [ + { + "name": "MOTION_MODE_GROUNDED", + "value": 0 + }, + { + "name": "MOTION_MODE_FLOATING", + "value": 1 + } + ] + }, + { + "name": "PlatformOnLeave", + "is_bitfield": false, + "values": [ + { + "name": "PLATFORM_ON_LEAVE_ADD_VELOCITY", + "value": 0 + }, + { + "name": "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY", + "value": 1 + }, + { + "name": "PLATFORM_ON_LEAVE_DO_NOTHING", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "move_and_slide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_safe_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_safe_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "is_floor_stop_on_slope_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_floor_stop_on_slope_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_floor_constant_speed_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_floor_constant_speed_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_floor_block_on_wall_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_floor_block_on_wall_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_slide_on_ceiling_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_slide_on_ceiling_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_platform_floor_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "exclude_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_platform_floor_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_platform_wall_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "exclude_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_platform_wall_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_max_slides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_slides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_slides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_floor_max_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_floor_max_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_floor_snap_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_floor_snap_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "floor_snap_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wall_min_slide_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wall_min_slide_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_up_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_up_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "up_direction", + "type": "Vector2" + } + ] + }, + { + "name": "set_motion_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1224392233, + "arguments": [ + { + "name": "mode", + "type": "enum::CharacterBody2D.MotionMode" + } + ] + }, + { + "name": "get_motion_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1160151236, + "return_value": { + "type": "enum::CharacterBody2D.MotionMode" + } + }, + { + "name": "set_platform_on_leave", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2423324375, + "arguments": [ + { + "name": "on_leave_apply_velocity", + "type": "enum::CharacterBody2D.PlatformOnLeave" + } + ] + }, + { + "name": "get_platform_on_leave", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4054324341, + "return_value": { + "type": "enum::CharacterBody2D.PlatformOnLeave" + } + }, + { + "name": "is_on_floor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_floor_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_ceiling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_ceiling_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_wall", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_wall_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_floor_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_wall_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_last_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_position_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_real_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_floor_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841063350, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "up_direction", + "type": "Vector2", + "default_value": "Vector2(0, -1)" + } + ] + }, + { + "name": "get_platform_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_slide_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_slide_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 860659811, + "return_value": { + "type": "KinematicCollision2D" + }, + "arguments": [ + { + "name": "slide_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_last_slide_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2161834755, + "return_value": { + "type": "KinematicCollision2D" + } + } + ], + "properties": [ + { + "type": "int", + "name": "motion_mode", + "setter": "set_motion_mode", + "getter": "get_motion_mode" + }, + { + "type": "Vector2", + "name": "up_direction", + "setter": "set_up_direction", + "getter": "get_up_direction" + }, + { + "type": "Vector2", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + }, + { + "type": "bool", + "name": "slide_on_ceiling", + "setter": "set_slide_on_ceiling_enabled", + "getter": "is_slide_on_ceiling_enabled" + }, + { + "type": "int", + "name": "max_slides", + "setter": "set_max_slides", + "getter": "get_max_slides" + }, + { + "type": "float", + "name": "wall_min_slide_angle", + "setter": "set_wall_min_slide_angle", + "getter": "get_wall_min_slide_angle" + }, + { + "type": "bool", + "name": "floor_stop_on_slope", + "setter": "set_floor_stop_on_slope_enabled", + "getter": "is_floor_stop_on_slope_enabled" + }, + { + "type": "bool", + "name": "floor_constant_speed", + "setter": "set_floor_constant_speed_enabled", + "getter": "is_floor_constant_speed_enabled" + }, + { + "type": "bool", + "name": "floor_block_on_wall", + "setter": "set_floor_block_on_wall_enabled", + "getter": "is_floor_block_on_wall_enabled" + }, + { + "type": "float", + "name": "floor_max_angle", + "setter": "set_floor_max_angle", + "getter": "get_floor_max_angle" + }, + { + "type": "float", + "name": "floor_snap_length", + "setter": "set_floor_snap_length", + "getter": "get_floor_snap_length" + }, + { + "type": "int", + "name": "platform_on_leave", + "setter": "set_platform_on_leave", + "getter": "get_platform_on_leave" + }, + { + "type": "int", + "name": "platform_floor_layers", + "setter": "set_platform_floor_layers", + "getter": "get_platform_floor_layers" + }, + { + "type": "int", + "name": "platform_wall_layers", + "setter": "set_platform_wall_layers", + "getter": "get_platform_wall_layers" + }, + { + "type": "float", + "name": "safe_margin", + "setter": "set_safe_margin", + "getter": "get_safe_margin" + } + ] + }, + { + "name": "CharacterBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody3D", + "api_type": "core", + "enums": [ + { + "name": "MotionMode", + "is_bitfield": false, + "values": [ + { + "name": "MOTION_MODE_GROUNDED", + "value": 0 + }, + { + "name": "MOTION_MODE_FLOATING", + "value": 1 + } + ] + }, + { + "name": "PlatformOnLeave", + "is_bitfield": false, + "values": [ + { + "name": "PLATFORM_ON_LEAVE_ADD_VELOCITY", + "value": 0 + }, + { + "name": "PLATFORM_ON_LEAVE_ADD_UPWARD_VELOCITY", + "value": 1 + }, + { + "name": "PLATFORM_ON_LEAVE_DO_NOTHING", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "move_and_slide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_safe_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_safe_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "is_floor_stop_on_slope_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_floor_stop_on_slope_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_floor_constant_speed_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_floor_constant_speed_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_floor_block_on_wall_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_floor_block_on_wall_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_slide_on_ceiling_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_slide_on_ceiling_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_platform_floor_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "exclude_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_platform_floor_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_platform_wall_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "exclude_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_platform_wall_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_max_slides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_slides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_slides", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_floor_max_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_floor_max_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_floor_snap_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_floor_snap_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "floor_snap_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_wall_min_slide_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_wall_min_slide_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_up_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_up_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "up_direction", + "type": "Vector3" + } + ] + }, + { + "name": "set_motion_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2690739026, + "arguments": [ + { + "name": "mode", + "type": "enum::CharacterBody3D.MotionMode" + } + ] + }, + { + "name": "get_motion_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3529553604, + "return_value": { + "type": "enum::CharacterBody3D.MotionMode" + } + }, + { + "name": "set_platform_on_leave", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1459986142, + "arguments": [ + { + "name": "on_leave_apply_velocity", + "type": "enum::CharacterBody3D.PlatformOnLeave" + } + ] + }, + { + "name": "get_platform_on_leave", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 996491171, + "return_value": { + "type": "enum::CharacterBody3D.PlatformOnLeave" + } + }, + { + "name": "is_on_floor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_floor_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_ceiling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_ceiling_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_wall", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_on_wall_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_floor_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_wall_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_last_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_position_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_real_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_floor_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2906300789, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "up_direction", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "get_platform_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_platform_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_slide_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_slide_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107003663, + "return_value": { + "type": "KinematicCollision3D" + }, + "arguments": [ + { + "name": "slide_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_last_slide_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 186875014, + "return_value": { + "type": "KinematicCollision3D" + } + } + ], + "properties": [ + { + "type": "int", + "name": "motion_mode", + "setter": "set_motion_mode", + "getter": "get_motion_mode" + }, + { + "type": "Vector3", + "name": "up_direction", + "setter": "set_up_direction", + "getter": "get_up_direction" + }, + { + "type": "bool", + "name": "slide_on_ceiling", + "setter": "set_slide_on_ceiling_enabled", + "getter": "is_slide_on_ceiling_enabled" + }, + { + "type": "Vector3", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + }, + { + "type": "int", + "name": "max_slides", + "setter": "set_max_slides", + "getter": "get_max_slides" + }, + { + "type": "float", + "name": "wall_min_slide_angle", + "setter": "set_wall_min_slide_angle", + "getter": "get_wall_min_slide_angle" + }, + { + "type": "bool", + "name": "floor_stop_on_slope", + "setter": "set_floor_stop_on_slope_enabled", + "getter": "is_floor_stop_on_slope_enabled" + }, + { + "type": "bool", + "name": "floor_constant_speed", + "setter": "set_floor_constant_speed_enabled", + "getter": "is_floor_constant_speed_enabled" + }, + { + "type": "bool", + "name": "floor_block_on_wall", + "setter": "set_floor_block_on_wall_enabled", + "getter": "is_floor_block_on_wall_enabled" + }, + { + "type": "float", + "name": "floor_max_angle", + "setter": "set_floor_max_angle", + "getter": "get_floor_max_angle" + }, + { + "type": "float", + "name": "floor_snap_length", + "setter": "set_floor_snap_length", + "getter": "get_floor_snap_length" + }, + { + "type": "int", + "name": "platform_on_leave", + "setter": "set_platform_on_leave", + "getter": "get_platform_on_leave" + }, + { + "type": "int", + "name": "platform_floor_layers", + "setter": "set_platform_floor_layers", + "getter": "get_platform_floor_layers" + }, + { + "type": "int", + "name": "platform_wall_layers", + "setter": "set_platform_wall_layers", + "getter": "get_platform_wall_layers" + }, + { + "type": "float", + "name": "safe_margin", + "setter": "set_safe_margin", + "getter": "get_safe_margin" + } + ] + }, + { + "name": "CheckBox", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Button", + "api_type": "core" + }, + { + "name": "CheckButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Button", + "api_type": "core" + }, + { + "name": "CircleShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "ClassDB", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_class_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_inheriters_from_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1761182771, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + }, + { + "name": "get_parent_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + }, + { + "name": "class_exists", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + }, + { + "name": "is_parent_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "inherits", + "type": "StringName" + } + ] + }, + { + "name": "can_instantiate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + }, + { + "name": "instantiate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + }, + { + "name": "class_has_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "class_get_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3061114238, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "class_get_signal_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3504980660, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_property_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3504980660, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_property", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2498641674, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "class_set_property", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1690314931, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "class_has_method", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3860701026, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "method", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_method_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3504980660, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_integer_constant_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3031669221, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_has_integer_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "class_get_integer_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2419549490, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "class_has_enum", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3860701026, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_enum_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3031669221, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_enum_constants", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 661528303, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "enum", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "class_get_integer_constant_enum", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2457504236, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "no_inheritance", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_class_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "StringName" + } + ] + } + ] + }, + { + "name": "CodeEdit", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "TextEdit", + "api_type": "core", + "enums": [ + { + "name": "CodeCompletionKind", + "is_bitfield": false, + "values": [ + { + "name": "KIND_CLASS", + "value": 0 + }, + { + "name": "KIND_FUNCTION", + "value": 1 + }, + { + "name": "KIND_SIGNAL", + "value": 2 + }, + { + "name": "KIND_VARIABLE", + "value": 3 + }, + { + "name": "KIND_MEMBER", + "value": 4 + }, + { + "name": "KIND_ENUM", + "value": 5 + }, + { + "name": "KIND_CONSTANT", + "value": 6 + }, + { + "name": "KIND_NODE_PATH", + "value": 7 + }, + { + "name": "KIND_FILE_PATH", + "value": 8 + }, + { + "name": "KIND_PLAIN_TEXT", + "value": 9 + } + ] + } + ], + "methods": [ + { + "name": "_confirm_code_completion", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "replace", + "type": "bool" + } + ] + }, + { + "name": "_request_code_completion", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "bool" + } + ] + }, + { + "name": "_filter_code_completion_candidates", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "candidates", + "type": "typedarray::Dictionary" + } + ] + }, + { + "name": "set_indent_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_indent_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_indent_using_spaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_spaces", + "type": "bool" + } + ] + }, + { + "name": "is_indent_using_spaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_indent_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_auto_indent_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_indent_prefixes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "prefixes", + "type": "typedarray::String" + } + ] + }, + { + "name": "get_auto_indent_prefixes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "do_indent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "indent_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "unindent_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_auto_brace_completion_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_auto_brace_completion_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_highlight_matching_braces_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_highlight_matching_braces_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_auto_brace_completion_pair", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3186203200, + "arguments": [ + { + "name": "start_key", + "type": "String" + }, + { + "name": "end_key", + "type": "String" + } + ] + }, + { + "name": "set_auto_brace_completion_pairs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "pairs", + "type": "Dictionary" + } + ] + }, + { + "name": "get_auto_brace_completion_pairs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "has_auto_brace_completion_open_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "open_key", + "type": "String" + } + ] + }, + { + "name": "has_auto_brace_completion_close_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "close_key", + "type": "String" + } + ] + }, + { + "name": "get_auto_brace_completion_close_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "open_key", + "type": "String" + } + ] + }, + { + "name": "set_draw_breakpoints_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_breakpoints_gutter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_bookmarks_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_bookmarks_gutter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_executing_lines_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_executing_lines_gutter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_line_as_breakpoint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "breakpointed", + "type": "bool" + } + ] + }, + { + "name": "is_line_breakpointed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_breakpointed_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_breakpointed_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_line_as_bookmarked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "bookmarked", + "type": "bool" + } + ] + }, + { + "name": "is_line_bookmarked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_bookmarked_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_bookmarked_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_line_as_executing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "executing", + "type": "bool" + } + ] + }, + { + "name": "is_line_executing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_executing_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_executing_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_draw_line_numbers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_draw_line_numbers_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_line_numbers_zero_padded", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_line_numbers_zero_padded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_fold_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_fold_gutter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_line_folding_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_line_folding_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "can_fold_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "fold_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "unfold_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "fold_all_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "unfold_all_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "toggle_foldable_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_line_folded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_folded_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::int" + } + }, + { + "name": "add_string_delimiter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3146098955, + "arguments": [ + { + "name": "start_key", + "type": "String" + }, + { + "name": "end_key", + "type": "String" + }, + { + "name": "line_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_string_delimiter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "has_string_delimiter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "set_string_delimiters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "string_delimiters", + "type": "typedarray::String" + } + ] + }, + { + "name": "clear_string_delimiters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_string_delimiters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "is_in_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3294126239, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_comment_delimiter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3146098955, + "arguments": [ + { + "name": "start_key", + "type": "String" + }, + { + "name": "end_key", + "type": "String" + }, + { + "name": "line_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_comment_delimiter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "has_comment_delimiter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "set_comment_delimiters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "comment_delimiters", + "type": "typedarray::String" + } + ] + }, + { + "name": "clear_comment_delimiters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_comment_delimiters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "is_in_comment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3294126239, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_delimiter_start_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "delimiter_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_delimiter_end_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "delimiter_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_delimiter_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_delimiter_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_code_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "code_hint", + "type": "String" + } + ] + }, + { + "name": "set_code_hint_draw_below", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draw_below", + "type": "bool" + } + ] + }, + { + "name": "get_text_for_code_completion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "request_code_completion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107499316, + "arguments": [ + { + "name": "force", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_code_completion_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3965792804, + "arguments": [ + { + "name": "type", + "type": "enum::CodeEdit.CodeCompletionKind" + }, + { + "name": "display_text", + "type": "String" + }, + { + "name": "insert_text", + "type": "String" + }, + { + "name": "text_color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "icon", + "type": "Resource", + "default_value": "null" + }, + { + "name": "value", + "type": "Variant", + "default_value": "0" + } + ] + }, + { + "name": "update_code_completion_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "force", + "type": "bool" + } + ] + }, + { + "name": "get_code_completion_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_code_completion_option", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_code_completion_selected_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_code_completion_selected_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "confirm_code_completion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107499316, + "arguments": [ + { + "name": "replace", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "cancel_code_completion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_code_completion_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_code_completion_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_code_completion_prefixes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "prefixes", + "type": "typedarray::String" + } + ] + }, + { + "name": "get_code_completion_prefixes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "set_line_length_guidelines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "guideline_columns", + "type": "typedarray::int" + } + ] + }, + { + "name": "get_line_length_guidelines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::int" + } + }, + { + "name": "set_symbol_lookup_on_click_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_symbol_lookup_on_click_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_text_for_symbol_lookup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_symbol_lookup_word_as_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "valid", + "type": "bool" + } + ] + } + ], + "signals": [ + { + "name": "breakpoint_toggled", + "arguments": [ + { + "name": "line", + "type": "int" + } + ] + }, + { + "name": "code_completion_requested" + }, + { + "name": "symbol_lookup", + "arguments": [ + { + "name": "symbol", + "type": "String" + }, + { + "name": "line", + "type": "int" + }, + { + "name": "column", + "type": "int" + } + ] + }, + { + "name": "symbol_validate", + "arguments": [ + { + "name": "symbol", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "symbol_lookup_on_click", + "setter": "set_symbol_lookup_on_click_enabled", + "getter": "is_symbol_lookup_on_click_enabled" + }, + { + "type": "bool", + "name": "line_folding", + "setter": "set_line_folding_enabled", + "getter": "is_line_folding_enabled" + }, + { + "type": "PackedInt32Array", + "name": "line_length_guidelines", + "setter": "set_line_length_guidelines", + "getter": "get_line_length_guidelines" + }, + { + "type": "bool", + "name": "gutters_draw_breakpoints_gutter", + "setter": "set_draw_breakpoints_gutter", + "getter": "is_drawing_breakpoints_gutter" + }, + { + "type": "bool", + "name": "gutters_draw_bookmarks", + "setter": "set_draw_bookmarks_gutter", + "getter": "is_drawing_bookmarks_gutter" + }, + { + "type": "bool", + "name": "gutters_draw_executing_lines", + "setter": "set_draw_executing_lines_gutter", + "getter": "is_drawing_executing_lines_gutter" + }, + { + "type": "bool", + "name": "gutters_draw_line_numbers", + "setter": "set_draw_line_numbers", + "getter": "is_draw_line_numbers_enabled" + }, + { + "type": "bool", + "name": "gutters_zero_pad_line_numbers", + "setter": "set_line_numbers_zero_padded", + "getter": "is_line_numbers_zero_padded" + }, + { + "type": "bool", + "name": "gutters_draw_fold_gutter", + "setter": "set_draw_fold_gutter", + "getter": "is_drawing_fold_gutter" + }, + { + "type": "PackedStringArray", + "name": "delimiter_strings", + "setter": "set_string_delimiters", + "getter": "get_string_delimiters" + }, + { + "type": "PackedStringArray", + "name": "delimiter_comments", + "setter": "set_comment_delimiters", + "getter": "get_comment_delimiters" + }, + { + "type": "bool", + "name": "code_completion_enabled", + "setter": "set_code_completion_enabled", + "getter": "is_code_completion_enabled" + }, + { + "type": "PackedStringArray", + "name": "code_completion_prefixes", + "setter": "set_code_completion_prefixes", + "getter": "get_code_completion_prefixes" + }, + { + "type": "int", + "name": "indent_size", + "setter": "set_indent_size", + "getter": "get_indent_size" + }, + { + "type": "bool", + "name": "indent_use_spaces", + "setter": "set_indent_using_spaces", + "getter": "is_indent_using_spaces" + }, + { + "type": "bool", + "name": "indent_automatic", + "setter": "set_auto_indent_enabled", + "getter": "is_auto_indent_enabled" + }, + { + "type": "PackedStringArray", + "name": "indent_automatic_prefixes", + "setter": "set_auto_indent_prefixes", + "getter": "get_auto_indent_prefixes" + }, + { + "type": "bool", + "name": "auto_brace_completion_enabled", + "setter": "set_auto_brace_completion_enabled", + "getter": "is_auto_brace_completion_enabled" + }, + { + "type": "bool", + "name": "auto_brace_completion_highlight_matching", + "setter": "set_highlight_matching_braces_enabled", + "getter": "is_highlight_matching_braces_enabled" + }, + { + "type": "Dictionary", + "name": "auto_brace_completion_pairs", + "setter": "set_auto_brace_completion_pairs", + "getter": "get_auto_brace_completion_pairs" + } + ] + }, + { + "name": "CodeHighlighter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SyntaxHighlighter", + "api_type": "core", + "methods": [ + { + "name": "add_keyword_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1636512886, + "arguments": [ + { + "name": "keyword", + "type": "String" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "remove_keyword_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "keyword", + "type": "String" + } + ] + }, + { + "name": "has_keyword_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "keyword", + "type": "String" + } + ] + }, + { + "name": "get_keyword_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3855908743, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "keyword", + "type": "String" + } + ] + }, + { + "name": "set_keyword_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "keywords", + "type": "Dictionary" + } + ] + }, + { + "name": "clear_keyword_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_keyword_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "add_member_keyword_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1636512886, + "arguments": [ + { + "name": "member_keyword", + "type": "String" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "remove_member_keyword_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "member_keyword", + "type": "String" + } + ] + }, + { + "name": "has_member_keyword_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "member_keyword", + "type": "String" + } + ] + }, + { + "name": "get_member_keyword_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3855908743, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "member_keyword", + "type": "String" + } + ] + }, + { + "name": "set_member_keyword_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "member_keyword", + "type": "Dictionary" + } + ] + }, + { + "name": "clear_member_keyword_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_member_keyword_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "add_color_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2924977451, + "arguments": [ + { + "name": "start_key", + "type": "String" + }, + { + "name": "end_key", + "type": "String" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "line_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_color_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "has_color_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "start_key", + "type": "String" + } + ] + }, + { + "name": "set_color_regions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "color_regions", + "type": "Dictionary" + } + ] + }, + { + "name": "clear_color_regions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_color_regions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_function_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_function_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_number_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_number_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_symbol_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_symbol_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_member_variable_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_member_variable_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "number_color", + "setter": "set_number_color", + "getter": "get_number_color" + }, + { + "type": "Color", + "name": "symbol_color", + "setter": "set_symbol_color", + "getter": "get_symbol_color" + }, + { + "type": "Color", + "name": "function_color", + "setter": "set_function_color", + "getter": "get_function_color" + }, + { + "type": "Color", + "name": "member_variable_color", + "setter": "set_member_variable_color", + "getter": "get_member_variable_color" + }, + { + "type": "Dictionary", + "name": "keyword_colors", + "setter": "set_keyword_colors", + "getter": "get_keyword_colors" + }, + { + "type": "Dictionary", + "name": "member_keyword_colors", + "setter": "set_member_keyword_colors", + "getter": "get_member_keyword_colors" + }, + { + "type": "Dictionary", + "name": "color_regions", + "setter": "set_color_regions", + "getter": "get_color_regions" + } + ] + }, + { + "name": "CollisionObject2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "DisableMode", + "is_bitfield": false, + "values": [ + { + "name": "DISABLE_MODE_REMOVE", + "value": 0 + }, + { + "name": "DISABLE_MODE_MAKE_STATIC", + "value": 1 + }, + { + "name": "DISABLE_MODE_KEEP_ACTIVE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_input_event", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "viewport", + "type": "Viewport" + }, + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_mouse_enter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_mouse_exit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_mouse_shape_enter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_mouse_shape_exit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_disable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1919204045, + "arguments": [ + { + "name": "mode", + "type": "enum::CollisionObject2D.DisableMode" + } + ] + }, + { + "name": "get_disable_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3172846349, + "return_value": { + "type": "enum::CollisionObject2D.DisableMode" + } + }, + { + "name": "set_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_pickable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "create_shape_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3429307534, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "owner", + "type": "Object" + } + ] + }, + { + "name": "remove_shape_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_shape_owners", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "shape_owner_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 30160968, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "shape_owner_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3836996910, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_get_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_shape_owner_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_set_one_way_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_shape_owner_one_way_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_set_one_way_collision_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_shape_owner_one_way_collision_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2077425081, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape", + "type": "Shape2D" + } + ] + }, + { + "name": "shape_owner_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3106725749, + "return_value": { + "type": "Shape2D" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_get_shape_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_find_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "shape_index", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "input_event", + "arguments": [ + { + "name": "viewport", + "type": "Node" + }, + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "mouse_entered" + }, + { + "name": "mouse_exited" + }, + { + "name": "mouse_shape_entered", + "arguments": [ + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "mouse_shape_exited", + "arguments": [ + { + "name": "shape_idx", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "disable_mode", + "setter": "set_disable_mode", + "getter": "get_disable_mode" + }, + { + "type": "int", + "name": "collision_layer", + "setter": "set_collision_layer", + "getter": "get_collision_layer" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "float", + "name": "collision_priority", + "setter": "set_collision_priority", + "getter": "get_collision_priority" + }, + { + "type": "bool", + "name": "input_pickable", + "setter": "set_pickable", + "getter": "is_pickable" + } + ] + }, + { + "name": "CollisionObject3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "DisableMode", + "is_bitfield": false, + "values": [ + { + "name": "DISABLE_MODE_REMOVE", + "value": 0 + }, + { + "name": "DISABLE_MODE_MAKE_STATIC", + "value": 1 + }, + { + "name": "DISABLE_MODE_KEEP_ACTIVE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_input_event", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "position", + "type": "Vector3" + }, + { + "name": "normal", + "type": "Vector3" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_mouse_enter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_mouse_exit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_disable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1623620376, + "arguments": [ + { + "name": "mode", + "type": "enum::CollisionObject3D.DisableMode" + } + ] + }, + { + "name": "get_disable_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410164780, + "return_value": { + "type": "enum::CollisionObject3D.DisableMode" + } + }, + { + "name": "set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ray_pickable", + "type": "bool" + } + ] + }, + { + "name": "is_ray_pickable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_capture_input_on_drag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_capture_input_on_drag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "create_shape_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3429307534, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "owner", + "type": "Object" + } + ] + }, + { + "name": "remove_shape_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_shape_owners", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "shape_owner_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "shape_owner_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_get_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_shape_owner_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2566676345, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape", + "type": "Shape3D" + } + ] + }, + { + "name": "shape_owner_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_owner_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015519174, + "return_value": { + "type": "Shape3D" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_get_shape_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + }, + { + "name": "shape_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shape_owner_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "owner_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shape_find_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "shape_index", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "input_event", + "arguments": [ + { + "name": "camera", + "type": "Node" + }, + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "position", + "type": "Vector3" + }, + { + "name": "normal", + "type": "Vector3" + }, + { + "name": "shape_idx", + "type": "int" + } + ] + }, + { + "name": "mouse_entered" + }, + { + "name": "mouse_exited" + } + ], + "properties": [ + { + "type": "int", + "name": "disable_mode", + "setter": "set_disable_mode", + "getter": "get_disable_mode" + }, + { + "type": "int", + "name": "collision_layer", + "setter": "set_collision_layer", + "getter": "get_collision_layer" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "float", + "name": "collision_priority", + "setter": "set_collision_priority", + "getter": "get_collision_priority" + }, + { + "type": "bool", + "name": "input_ray_pickable", + "setter": "set_ray_pickable", + "getter": "is_ray_pickable" + }, + { + "type": "bool", + "name": "input_capture_on_drag", + "setter": "set_capture_input_on_drag", + "getter": "get_capture_input_on_drag" + } + ] + }, + { + "name": "CollisionPolygon2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "BuildMode", + "is_bitfield": false, + "values": [ + { + "name": "BUILD_SOLIDS", + "value": 0 + }, + { + "name": "BUILD_SEGMENTS", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_build_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2780803135, + "arguments": [ + { + "name": "build_mode", + "type": "enum::CollisionPolygon2D.BuildMode" + } + ] + }, + { + "name": "get_build_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3044948800, + "return_value": { + "type": "enum::CollisionPolygon2D.BuildMode" + } + }, + { + "name": "set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_one_way_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_one_way_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_one_way_collision_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_one_way_collision_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "build_mode", + "setter": "set_build_mode", + "getter": "get_build_mode" + }, + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + }, + { + "type": "bool", + "name": "disabled", + "setter": "set_disabled", + "getter": "is_disabled" + }, + { + "type": "bool", + "name": "one_way_collision", + "setter": "set_one_way_collision", + "getter": "is_one_way_collision_enabled" + }, + { + "type": "float", + "name": "one_way_collision_margin", + "setter": "set_one_way_collision_margin", + "getter": "get_one_way_collision_margin" + } + ] + }, + { + "name": "CollisionPolygon3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "depth", + "setter": "set_depth", + "getter": "get_depth" + }, + { + "type": "bool", + "name": "disabled", + "setter": "set_disabled", + "getter": "is_disabled" + }, + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + } + ] + }, + { + "name": "CollisionShape2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 771364740, + "arguments": [ + { + "name": "shape", + "type": "Shape2D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 522005891, + "return_value": { + "type": "Shape2D" + } + }, + { + "name": "set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_one_way_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_one_way_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_one_way_collision_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_one_way_collision_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_debug_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_debug_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "Shape2D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "bool", + "name": "disabled", + "setter": "set_disabled", + "getter": "is_disabled" + }, + { + "type": "bool", + "name": "one_way_collision", + "setter": "set_one_way_collision", + "getter": "is_one_way_collision_enabled" + }, + { + "type": "float", + "name": "one_way_collision_margin", + "setter": "set_one_way_collision_margin", + "getter": "get_one_way_collision_margin" + }, + { + "type": "Color", + "name": "debug_color", + "setter": "set_debug_color", + "getter": "get_debug_color" + } + ] + }, + { + "name": "CollisionShape3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "resource_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549710052, + "arguments": [ + { + "name": "shape", + "type": "Shape3D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3214262478, + "return_value": { + "type": "Shape3D" + } + }, + { + "name": "set_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "make_convex_from_siblings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "Shape3D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "bool", + "name": "disabled", + "setter": "set_disabled", + "getter": "is_disabled" + } + ] + }, + { + "name": "ColorPicker", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VBoxContainer", + "api_type": "core", + "enums": [ + { + "name": "ColorModeType", + "is_bitfield": false, + "values": [ + { + "name": "MODE_RGB", + "value": 0 + }, + { + "name": "MODE_HSV", + "value": 1 + }, + { + "name": "MODE_RAW", + "value": 2 + }, + { + "name": "MODE_OKHSL", + "value": 3 + } + ] + }, + { + "name": "PickerShapeType", + "is_bitfield": false, + "values": [ + { + "name": "SHAPE_HSV_RECTANGLE", + "value": 0 + }, + { + "name": "SHAPE_HSV_WHEEL", + "value": 1 + }, + { + "name": "SHAPE_VHS_CIRCLE", + "value": 2 + }, + { + "name": "SHAPE_OKHSL_CIRCLE", + "value": 3 + }, + { + "name": "SHAPE_NONE", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_pick_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_pick_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_deferred_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "mode", + "type": "bool" + } + ] + }, + { + "name": "is_deferred_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_color_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1579114136, + "arguments": [ + { + "name": "color_mode", + "type": "enum::ColorPicker.ColorModeType" + } + ] + }, + { + "name": "get_color_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 392907674, + "return_value": { + "type": "enum::ColorPicker.ColorModeType" + } + }, + { + "name": "set_edit_alpha", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "is_editing_alpha", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_can_add_swatches", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "are_swatches_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_presets_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "are_presets_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_modes_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "are_modes_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sampler_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_sampler_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sliders_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "are_sliders_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hex_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_hex_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "erase_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_presets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "add_recent_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "erase_recent_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_recent_presets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "set_picker_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3981373861, + "arguments": [ + { + "name": "shape", + "type": "enum::ColorPicker.PickerShapeType" + } + ] + }, + { + "name": "get_picker_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1143229889, + "return_value": { + "type": "enum::ColorPicker.PickerShapeType" + } + } + ], + "signals": [ + { + "name": "color_changed", + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "preset_added", + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "preset_removed", + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_pick_color", + "getter": "get_pick_color" + }, + { + "type": "bool", + "name": "edit_alpha", + "setter": "set_edit_alpha", + "getter": "is_editing_alpha" + }, + { + "type": "int", + "name": "color_mode", + "setter": "set_color_mode", + "getter": "get_color_mode" + }, + { + "type": "bool", + "name": "deferred_mode", + "setter": "set_deferred_mode", + "getter": "is_deferred_mode" + }, + { + "type": "int", + "name": "picker_shape", + "setter": "set_picker_shape", + "getter": "get_picker_shape" + }, + { + "type": "bool", + "name": "can_add_swatches", + "setter": "set_can_add_swatches", + "getter": "are_swatches_enabled" + }, + { + "type": "bool", + "name": "sampler_visible", + "setter": "set_sampler_visible", + "getter": "is_sampler_visible" + }, + { + "type": "bool", + "name": "color_modes_visible", + "setter": "set_modes_visible", + "getter": "are_modes_visible" + }, + { + "type": "bool", + "name": "sliders_visible", + "setter": "set_sliders_visible", + "getter": "are_sliders_visible" + }, + { + "type": "bool", + "name": "hex_visible", + "setter": "set_hex_visible", + "getter": "is_hex_visible" + }, + { + "type": "bool", + "name": "presets_visible", + "setter": "set_presets_visible", + "getter": "are_presets_visible" + } + ] + }, + { + "name": "ColorPickerButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Button", + "api_type": "core", + "methods": [ + { + "name": "set_pick_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_pick_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "get_picker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 331835996, + "return_value": { + "type": "ColorPicker" + } + }, + { + "name": "get_popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1322440207, + "return_value": { + "type": "PopupPanel" + } + }, + { + "name": "set_edit_alpha", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "is_editing_alpha", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "color_changed", + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "popup_closed" + }, + { + "name": "picker_created" + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_pick_color", + "getter": "get_pick_color" + }, + { + "type": "bool", + "name": "edit_alpha", + "setter": "set_edit_alpha", + "getter": "is_editing_alpha" + } + ] + }, + { + "name": "ColorRect", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + } + ] + }, + { + "name": "CompressedCubemap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "CompressedTextureLayered", + "api_type": "core" + }, + { + "name": "CompressedCubemapArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "CompressedTextureLayered", + "api_type": "core" + }, + { + "name": "CompressedTexture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_load_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "load_path", + "setter": "load", + "getter": "get_load_path" + } + ] + }, + { + "name": "CompressedTexture2DArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "CompressedTextureLayered", + "api_type": "core" + }, + { + "name": "CompressedTexture3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture3D", + "api_type": "core", + "methods": [ + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_load_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "load_path", + "setter": "load", + "getter": "get_load_path" + } + ] + }, + { + "name": "CompressedTextureLayered", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "TextureLayered", + "api_type": "core", + "methods": [ + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_load_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "load_path", + "setter": "load", + "getter": "get_load_path" + } + ] + }, + { + "name": "ConcavePolygonShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "segments", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "segments", + "setter": "set_segments", + "getter": "get_segments" + } + ] + }, + { + "name": "ConcavePolygonShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "faces", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "set_backface_collision_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_backface_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "PackedVector3Array", + "name": "data", + "setter": "set_faces", + "getter": "get_faces" + }, + { + "type": "bool", + "name": "backface_collision", + "setter": "set_backface_collision_enabled", + "getter": "is_backface_collision_enabled" + } + ] + }, + { + "name": "ConeTwistJoint3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_SWING_SPAN", + "value": 0 + }, + { + "name": "PARAM_TWIST_SPAN", + "value": 1 + }, + { + "name": "PARAM_BIAS", + "value": 2 + }, + { + "name": "PARAM_SOFTNESS", + "value": 3 + }, + { + "name": "PARAM_RELAXATION", + "value": 4 + }, + { + "name": "PARAM_MAX", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1062470226, + "arguments": [ + { + "name": "param", + "type": "enum::ConeTwistJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2928790850, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::ConeTwistJoint3D.Param" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "swing_span", + "setter": "set_param", + "getter": "get_param", + "index": 0 + }, + { + "type": "float", + "name": "twist_span", + "setter": "set_param", + "getter": "get_param", + "index": 1 + }, + { + "type": "float", + "name": "bias", + "setter": "set_param", + "getter": "get_param", + "index": 2 + }, + { + "type": "float", + "name": "softness", + "setter": "set_param", + "getter": "get_param", + "index": 3 + }, + { + "type": "float", + "name": "relaxation", + "setter": "set_param", + "getter": "get_param", + "index": 4 + } + ] + }, + { + "name": "ConfigFile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2504492430, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 89809366, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + }, + { + "name": "default", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "has_section", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "section", + "type": "String" + } + ] + }, + { + "name": "has_section_key", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 820780508, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + } + ] + }, + { + "name": "get_sections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_section_keys", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "section", + "type": "String" + } + ] + }, + { + "name": "erase_section", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "section", + "type": "String" + } + ] + }, + { + "name": "erase_section_key", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3186203200, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + } + ] + }, + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "parse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "data", + "type": "String" + } + ] + }, + { + "name": "save", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "encode_to_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "load_encrypted", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 887037711, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "key", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_encrypted_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "password", + "type": "String" + } + ] + }, + { + "name": "save_encrypted", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 887037711, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "key", + "type": "PackedByteArray" + } + ] + }, + { + "name": "save_encrypted_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "password", + "type": "String" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "ConfirmationDialog", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "AcceptDialog", + "api_type": "core", + "methods": [ + { + "name": "get_cancel_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1856205918, + "return_value": { + "type": "Button" + } + }, + { + "name": "set_cancel_button_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_cancel_button_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "cancel_button_text", + "setter": "set_cancel_button_text", + "getter": "get_cancel_button_text" + } + ] + }, + { + "name": "Container", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_PRE_SORT_CHILDREN", + "value": 50 + }, + { + "name": "NOTIFICATION_SORT_CHILDREN", + "value": 51 + } + ], + "methods": [ + { + "name": "_get_allowed_size_flags_horizontal", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "_get_allowed_size_flags_vertical", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "queue_sort", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "fit_child_in_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1993438598, + "arguments": [ + { + "name": "child", + "type": "Control" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + } + ], + "signals": [ + { + "name": "pre_sort_children" + }, + { + "name": "sort_children" + } + ] + }, + { + "name": "Control", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CanvasItem", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_RESIZED", + "value": 40 + }, + { + "name": "NOTIFICATION_MOUSE_ENTER", + "value": 41 + }, + { + "name": "NOTIFICATION_MOUSE_EXIT", + "value": 42 + }, + { + "name": "NOTIFICATION_FOCUS_ENTER", + "value": 43 + }, + { + "name": "NOTIFICATION_FOCUS_EXIT", + "value": 44 + }, + { + "name": "NOTIFICATION_THEME_CHANGED", + "value": 45 + }, + { + "name": "NOTIFICATION_SCROLL_BEGIN", + "value": 47 + }, + { + "name": "NOTIFICATION_SCROLL_END", + "value": 48 + }, + { + "name": "NOTIFICATION_LAYOUT_DIRECTION_CHANGED", + "value": 49 + } + ], + "enums": [ + { + "name": "FocusMode", + "is_bitfield": false, + "values": [ + { + "name": "FOCUS_NONE", + "value": 0 + }, + { + "name": "FOCUS_CLICK", + "value": 1 + }, + { + "name": "FOCUS_ALL", + "value": 2 + } + ] + }, + { + "name": "CursorShape", + "is_bitfield": false, + "values": [ + { + "name": "CURSOR_ARROW", + "value": 0 + }, + { + "name": "CURSOR_IBEAM", + "value": 1 + }, + { + "name": "CURSOR_POINTING_HAND", + "value": 2 + }, + { + "name": "CURSOR_CROSS", + "value": 3 + }, + { + "name": "CURSOR_WAIT", + "value": 4 + }, + { + "name": "CURSOR_BUSY", + "value": 5 + }, + { + "name": "CURSOR_DRAG", + "value": 6 + }, + { + "name": "CURSOR_CAN_DROP", + "value": 7 + }, + { + "name": "CURSOR_FORBIDDEN", + "value": 8 + }, + { + "name": "CURSOR_VSIZE", + "value": 9 + }, + { + "name": "CURSOR_HSIZE", + "value": 10 + }, + { + "name": "CURSOR_BDIAGSIZE", + "value": 11 + }, + { + "name": "CURSOR_FDIAGSIZE", + "value": 12 + }, + { + "name": "CURSOR_MOVE", + "value": 13 + }, + { + "name": "CURSOR_VSPLIT", + "value": 14 + }, + { + "name": "CURSOR_HSPLIT", + "value": 15 + }, + { + "name": "CURSOR_HELP", + "value": 16 + } + ] + }, + { + "name": "LayoutPreset", + "is_bitfield": false, + "values": [ + { + "name": "PRESET_TOP_LEFT", + "value": 0 + }, + { + "name": "PRESET_TOP_RIGHT", + "value": 1 + }, + { + "name": "PRESET_BOTTOM_LEFT", + "value": 2 + }, + { + "name": "PRESET_BOTTOM_RIGHT", + "value": 3 + }, + { + "name": "PRESET_CENTER_LEFT", + "value": 4 + }, + { + "name": "PRESET_CENTER_TOP", + "value": 5 + }, + { + "name": "PRESET_CENTER_RIGHT", + "value": 6 + }, + { + "name": "PRESET_CENTER_BOTTOM", + "value": 7 + }, + { + "name": "PRESET_CENTER", + "value": 8 + }, + { + "name": "PRESET_LEFT_WIDE", + "value": 9 + }, + { + "name": "PRESET_TOP_WIDE", + "value": 10 + }, + { + "name": "PRESET_RIGHT_WIDE", + "value": 11 + }, + { + "name": "PRESET_BOTTOM_WIDE", + "value": 12 + }, + { + "name": "PRESET_VCENTER_WIDE", + "value": 13 + }, + { + "name": "PRESET_HCENTER_WIDE", + "value": 14 + }, + { + "name": "PRESET_FULL_RECT", + "value": 15 + } + ] + }, + { + "name": "LayoutPresetMode", + "is_bitfield": false, + "values": [ + { + "name": "PRESET_MODE_MINSIZE", + "value": 0 + }, + { + "name": "PRESET_MODE_KEEP_WIDTH", + "value": 1 + }, + { + "name": "PRESET_MODE_KEEP_HEIGHT", + "value": 2 + }, + { + "name": "PRESET_MODE_KEEP_SIZE", + "value": 3 + } + ] + }, + { + "name": "SizeFlags", + "is_bitfield": true, + "values": [ + { + "name": "SIZE_SHRINK_BEGIN", + "value": 0 + }, + { + "name": "SIZE_FILL", + "value": 1 + }, + { + "name": "SIZE_EXPAND", + "value": 2 + }, + { + "name": "SIZE_EXPAND_FILL", + "value": 3 + }, + { + "name": "SIZE_SHRINK_CENTER", + "value": 4 + }, + { + "name": "SIZE_SHRINK_END", + "value": 8 + } + ] + }, + { + "name": "MouseFilter", + "is_bitfield": false, + "values": [ + { + "name": "MOUSE_FILTER_STOP", + "value": 0 + }, + { + "name": "MOUSE_FILTER_PASS", + "value": 1 + }, + { + "name": "MOUSE_FILTER_IGNORE", + "value": 2 + } + ] + }, + { + "name": "GrowDirection", + "is_bitfield": false, + "values": [ + { + "name": "GROW_DIRECTION_BEGIN", + "value": 0 + }, + { + "name": "GROW_DIRECTION_END", + "value": 1 + }, + { + "name": "GROW_DIRECTION_BOTH", + "value": 2 + } + ] + }, + { + "name": "Anchor", + "is_bitfield": false, + "values": [ + { + "name": "ANCHOR_BEGIN", + "value": 0 + }, + { + "name": "ANCHOR_END", + "value": 1 + } + ] + }, + { + "name": "LayoutDirection", + "is_bitfield": false, + "values": [ + { + "name": "LAYOUT_DIRECTION_INHERITED", + "value": 0 + }, + { + "name": "LAYOUT_DIRECTION_LOCALE", + "value": 1 + }, + { + "name": "LAYOUT_DIRECTION_LTR", + "value": 2 + }, + { + "name": "LAYOUT_DIRECTION_RTL", + "value": 3 + } + ] + }, + { + "name": "TextDirection", + "is_bitfield": false, + "values": [ + { + "name": "TEXT_DIRECTION_INHERITED", + "value": 3 + }, + { + "name": "TEXT_DIRECTION_AUTO", + "value": 0 + }, + { + "name": "TEXT_DIRECTION_LTR", + "value": 1 + }, + { + "name": "TEXT_DIRECTION_RTL", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_has_point", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "_structured_text_parser", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Vector3i" + }, + "arguments": [ + { + "name": "args", + "type": "Array" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "_get_minimum_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_drag_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "at_position", + "type": "Vector2" + } + ] + }, + { + "name": "_can_drop_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "at_position", + "type": "Vector2" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "_drop_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "at_position", + "type": "Vector2" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "_make_custom_tooltip", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "for_text", + "type": "String" + } + ] + }, + { + "name": "_gui_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "accept_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_minimum_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_combined_minimum_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_anchors_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 509135270, + "arguments": [ + { + "name": "preset", + "type": "enum::Control.LayoutPreset" + }, + { + "name": "keep_offsets", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_offsets_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3651818904, + "arguments": [ + { + "name": "preset", + "type": "enum::Control.LayoutPreset" + }, + { + "name": "resize_mode", + "type": "enum::Control.LayoutPresetMode", + "default_value": "0" + }, + { + "name": "margin", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_anchors_and_offsets_preset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3651818904, + "arguments": [ + { + "name": "preset", + "type": "enum::Control.LayoutPreset" + }, + { + "name": "resize_mode", + "type": "enum::Control.LayoutPresetMode", + "default_value": "0" + }, + { + "name": "margin", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_anchor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2589937826, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + }, + { + "name": "anchor", + "type": "float", + "meta": "float" + }, + { + "name": "keep_offset", + "type": "bool", + "default_value": "false" + }, + { + "name": "push_opposite_anchor", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_anchor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + } + ] + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "offset", + "type": "enum::Side" + } + ] + }, + { + "name": "set_anchor_and_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4031722181, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + }, + { + "name": "anchor", + "type": "float", + "meta": "float" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + }, + { + "name": "push_opposite_anchor", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "set_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2436320129, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "keep_offsets", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2436320129, + "arguments": [ + { + "name": "size", + "type": "Vector2" + }, + { + "name": "keep_offsets", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "reset_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_custom_minimum_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "set_global_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2436320129, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "keep_offsets", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_rotation_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "set_pivot_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "pivot_offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_rotation_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_pivot_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_custom_minimum_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_parent_area_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_global_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_screen_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "get_global_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_focus_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3232914922, + "arguments": [ + { + "name": "mode", + "type": "enum::Control.FocusMode" + } + ] + }, + { + "name": "get_focus_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2132829277, + "return_value": { + "type": "enum::Control.FocusMode" + } + }, + { + "name": "has_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "grab_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "release_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "find_prev_valid_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, + { + "name": "find_next_valid_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, + { + "name": "set_h_size_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 394851643, + "arguments": [ + { + "name": "flags", + "type": "bitfield::Control.SizeFlags" + } + ] + }, + { + "name": "get_h_size_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3781367401, + "return_value": { + "type": "bitfield::Control.SizeFlags" + } + }, + { + "name": "set_stretch_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_stretch_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_v_size_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 394851643, + "arguments": [ + { + "name": "flags", + "type": "bitfield::Control.SizeFlags" + } + ] + }, + { + "name": "get_v_size_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3781367401, + "return_value": { + "type": "bitfield::Control.SizeFlags" + } + }, + { + "name": "set_theme", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2326690814, + "arguments": [ + { + "name": "theme", + "type": "Theme" + } + ] + }, + { + "name": "get_theme", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3846893731, + "return_value": { + "type": "Theme" + } + }, + { + "name": "set_theme_type_variation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_theme_type_variation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "begin_bulk_theme_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "end_bulk_theme_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_theme_icon_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1373065600, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "add_theme_stylebox_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4188838905, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "stylebox", + "type": "StyleBox" + } + ] + }, + { + "name": "add_theme_font_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3518018674, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "add_theme_font_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_theme_color_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4260178595, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "add_theme_constant_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "constant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_theme_icon_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_stylebox_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_font_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_font_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_color_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_constant_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_theme_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2336455395, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2759935355, + "return_value": { + "type": "StyleBox" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 387378635, + "return_value": { + "type": "Font" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229578101, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2377051548, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229578101, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_icon_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_stylebox_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_font_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_font_size_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_color_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_constant_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_default_base_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_theme_default_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "get_theme_default_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_parent_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, + { + "name": "set_h_grow_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2022385301, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.GrowDirection" + } + ] + }, + { + "name": "get_h_grow_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635610155, + "return_value": { + "type": "enum::Control.GrowDirection" + } + }, + { + "name": "set_v_grow_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2022385301, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.GrowDirection" + } + ] + }, + { + "name": "get_v_grow_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635610155, + "return_value": { + "type": "enum::Control.GrowDirection" + } + }, + { + "name": "set_tooltip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "hint", + "type": "String" + } + ] + }, + { + "name": "get_tooltip_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2895288280, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "at_position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "set_default_cursor_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 217062046, + "arguments": [ + { + "name": "shape", + "type": "enum::Control.CursorShape" + } + ] + }, + { + "name": "get_default_cursor_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2359535750, + "return_value": { + "type": "enum::Control.CursorShape" + } + }, + { + "name": "get_cursor_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1395773853, + "return_value": { + "type": "enum::Control.CursorShape" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "set_focus_neighbor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2024461774, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + }, + { + "name": "neighbor", + "type": "NodePath" + } + ] + }, + { + "name": "get_focus_neighbor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757935761, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "side", + "type": "enum::Side" + } + ] + }, + { + "name": "set_focus_next", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "next", + "type": "NodePath" + } + ] + }, + { + "name": "get_focus_next", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_focus_previous", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "previous", + "type": "NodePath" + } + ] + }, + { + "name": "get_focus_previous", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "force_drag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3191844692, + "arguments": [ + { + "name": "data", + "type": "Variant" + }, + { + "name": "preview", + "type": "Control" + } + ] + }, + { + "name": "set_mouse_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3891156122, + "arguments": [ + { + "name": "filter", + "type": "enum::Control.MouseFilter" + } + ] + }, + { + "name": "get_mouse_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1572545674, + "return_value": { + "type": "enum::Control.MouseFilter" + } + }, + { + "name": "set_force_pass_scroll_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "force_pass_scroll_events", + "type": "bool" + } + ] + }, + { + "name": "is_force_pass_scroll_events", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_clip_contents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_clipping_contents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "grab_click_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_drag_forwarding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1076571380, + "arguments": [ + { + "name": "drag_func", + "type": "Callable" + }, + { + "name": "can_drop_func", + "type": "Callable" + }, + { + "name": "drop_func", + "type": "Callable" + } + ] + }, + { + "name": "set_drag_preview", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "is_drag_successful", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "warp_mouse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "set_shortcut_context", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_shortcut_context", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "update_minimum_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_layout_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3310692370, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.LayoutDirection" + } + ] + }, + { + "name": "get_layout_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1546772008, + "return_value": { + "type": "enum::Control.LayoutDirection" + } + }, + { + "name": "is_layout_rtl", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_auto_translating", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_localize_numeral_system", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_localizing_numeral_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "resized" + }, + { + "name": "gui_input", + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "mouse_entered" + }, + { + "name": "mouse_exited" + }, + { + "name": "focus_entered" + }, + { + "name": "focus_exited" + }, + { + "name": "size_flags_changed" + }, + { + "name": "minimum_size_changed" + }, + { + "name": "theme_changed" + } + ], + "properties": [ + { + "type": "bool", + "name": "clip_contents", + "setter": "set_clip_contents", + "getter": "is_clipping_contents" + }, + { + "type": "Vector2", + "name": "custom_minimum_size", + "setter": "set_custom_minimum_size", + "getter": "get_custom_minimum_size" + }, + { + "type": "int", + "name": "layout_direction", + "setter": "set_layout_direction", + "getter": "get_layout_direction" + }, + { + "type": "int", + "name": "layout_mode", + "setter": "_set_layout_mode", + "getter": "_get_layout_mode" + }, + { + "type": "int", + "name": "anchors_preset", + "setter": "_set_anchors_layout_preset", + "getter": "_get_anchors_layout_preset" + }, + { + "type": "float", + "name": "anchor_left", + "setter": "_set_anchor", + "getter": "get_anchor", + "index": 0 + }, + { + "type": "float", + "name": "anchor_top", + "setter": "_set_anchor", + "getter": "get_anchor", + "index": 1 + }, + { + "type": "float", + "name": "anchor_right", + "setter": "_set_anchor", + "getter": "get_anchor", + "index": 2 + }, + { + "type": "float", + "name": "anchor_bottom", + "setter": "_set_anchor", + "getter": "get_anchor", + "index": 3 + }, + { + "type": "int", + "name": "offset_left", + "setter": "set_offset", + "getter": "get_offset", + "index": 0 + }, + { + "type": "int", + "name": "offset_top", + "setter": "set_offset", + "getter": "get_offset", + "index": 1 + }, + { + "type": "int", + "name": "offset_right", + "setter": "set_offset", + "getter": "get_offset", + "index": 2 + }, + { + "type": "int", + "name": "offset_bottom", + "setter": "set_offset", + "getter": "get_offset", + "index": 3 + }, + { + "type": "int", + "name": "grow_horizontal", + "setter": "set_h_grow_direction", + "getter": "get_h_grow_direction" + }, + { + "type": "int", + "name": "grow_vertical", + "setter": "set_v_grow_direction", + "getter": "get_v_grow_direction" + }, + { + "type": "Vector2", + "name": "size", + "setter": "_set_size", + "getter": "get_size" + }, + { + "type": "Vector2", + "name": "position", + "setter": "_set_position", + "getter": "get_position" + }, + { + "type": "Vector2", + "name": "global_position", + "setter": "_set_global_position", + "getter": "get_global_position" + }, + { + "type": "float", + "name": "rotation", + "setter": "set_rotation", + "getter": "get_rotation" + }, + { + "type": "float", + "name": "rotation_degrees", + "setter": "set_rotation_degrees", + "getter": "get_rotation_degrees" + }, + { + "type": "Vector2", + "name": "scale", + "setter": "set_scale", + "getter": "get_scale" + }, + { + "type": "Vector2", + "name": "pivot_offset", + "setter": "set_pivot_offset", + "getter": "get_pivot_offset" + }, + { + "type": "int", + "name": "size_flags_horizontal", + "setter": "set_h_size_flags", + "getter": "get_h_size_flags" + }, + { + "type": "int", + "name": "size_flags_vertical", + "setter": "set_v_size_flags", + "getter": "get_v_size_flags" + }, + { + "type": "float", + "name": "size_flags_stretch_ratio", + "setter": "set_stretch_ratio", + "getter": "get_stretch_ratio" + }, + { + "type": "bool", + "name": "auto_translate", + "setter": "set_auto_translate", + "getter": "is_auto_translating" + }, + { + "type": "bool", + "name": "localize_numeral_system", + "setter": "set_localize_numeral_system", + "getter": "is_localizing_numeral_system" + }, + { + "type": "String", + "name": "tooltip_text", + "setter": "set_tooltip_text", + "getter": "get_tooltip_text" + }, + { + "type": "NodePath", + "name": "focus_neighbor_left", + "setter": "set_focus_neighbor", + "getter": "get_focus_neighbor", + "index": 0 + }, + { + "type": "NodePath", + "name": "focus_neighbor_top", + "setter": "set_focus_neighbor", + "getter": "get_focus_neighbor", + "index": 1 + }, + { + "type": "NodePath", + "name": "focus_neighbor_right", + "setter": "set_focus_neighbor", + "getter": "get_focus_neighbor", + "index": 2 + }, + { + "type": "NodePath", + "name": "focus_neighbor_bottom", + "setter": "set_focus_neighbor", + "getter": "get_focus_neighbor", + "index": 3 + }, + { + "type": "NodePath", + "name": "focus_next", + "setter": "set_focus_next", + "getter": "get_focus_next" + }, + { + "type": "NodePath", + "name": "focus_previous", + "setter": "set_focus_previous", + "getter": "get_focus_previous" + }, + { + "type": "int", + "name": "focus_mode", + "setter": "set_focus_mode", + "getter": "get_focus_mode" + }, + { + "type": "int", + "name": "mouse_filter", + "setter": "set_mouse_filter", + "getter": "get_mouse_filter" + }, + { + "type": "bool", + "name": "mouse_force_pass_scroll_events", + "setter": "set_force_pass_scroll_events", + "getter": "is_force_pass_scroll_events" + }, + { + "type": "int", + "name": "mouse_default_cursor_shape", + "setter": "set_default_cursor_shape", + "getter": "get_default_cursor_shape" + }, + { + "type": "Object", + "name": "shortcut_context", + "setter": "set_shortcut_context", + "getter": "get_shortcut_context" + }, + { + "type": "Theme", + "name": "theme", + "setter": "set_theme", + "getter": "get_theme" + }, + { + "type": "String", + "name": "theme_type_variation", + "setter": "set_theme_type_variation", + "getter": "get_theme_type_variation" + } + ] + }, + { + "name": "ConvexPolygonShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_point_cloud", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "point_cloud", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "set_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "points", + "setter": "set_points", + "getter": "get_points" + } + ] + }, + { + "name": "ConvexPolygonShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "points", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + } + ], + "properties": [ + { + "type": "Array", + "name": "points", + "setter": "set_points", + "getter": "get_points" + } + ] + }, + { + "name": "Crypto", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "generate_random_bytes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 47165747, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "generate_rsa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1237515462, + "return_value": { + "type": "CryptoKey" + }, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "generate_self_signed_certificate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 947314696, + "return_value": { + "type": "X509Certificate" + }, + "arguments": [ + { + "name": "key", + "type": "CryptoKey" + }, + { + "name": "issuer_name", + "type": "String", + "default_value": "\"CN=myserver,O=myorganisation,C=IT\"" + }, + { + "name": "not_before", + "type": "String", + "default_value": "\"20140101000000\"" + }, + { + "name": "not_after", + "type": "String", + "default_value": "\"20340101000000\"" + } + ] + }, + { + "name": "sign", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1673662703, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "hash_type", + "type": "enum::HashingContext.HashType" + }, + { + "name": "hash", + "type": "PackedByteArray" + }, + { + "name": "key", + "type": "CryptoKey" + } + ] + }, + { + "name": "verify", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2805902225, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "hash_type", + "type": "enum::HashingContext.HashType" + }, + { + "name": "hash", + "type": "PackedByteArray" + }, + { + "name": "signature", + "type": "PackedByteArray" + }, + { + "name": "key", + "type": "CryptoKey" + } + ] + }, + { + "name": "encrypt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2361793670, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "key", + "type": "CryptoKey" + }, + { + "name": "plaintext", + "type": "PackedByteArray" + } + ] + }, + { + "name": "decrypt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2361793670, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "key", + "type": "CryptoKey" + }, + { + "name": "ciphertext", + "type": "PackedByteArray" + } + ] + }, + { + "name": "hmac_digest", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2368951203, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "hash_type", + "type": "enum::HashingContext.HashType" + }, + { + "name": "key", + "type": "PackedByteArray" + }, + { + "name": "msg", + "type": "PackedByteArray" + } + ] + }, + { + "name": "constant_time_compare", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1024142237, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "trusted", + "type": "PackedByteArray" + }, + { + "name": "received", + "type": "PackedByteArray" + } + ] + } + ] + }, + { + "name": "CryptoKey", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "save", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 885841341, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "public_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 885841341, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "public_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_public_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "save_to_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 32795936, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "public_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "load_from_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 885841341, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "string_key", + "type": "String" + }, + { + "name": "public_only", + "type": "bool", + "default_value": "false" + } + ] + } + ] + }, + { + "name": "Cubemap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ImageTextureLayered", + "api_type": "core", + "methods": [ + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ] + }, + { + "name": "CubemapArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ImageTextureLayered", + "api_type": "core", + "methods": [ + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ] + }, + { + "name": "Curve", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "TangentMode", + "is_bitfield": false, + "values": [ + { + "name": "TANGENT_FREE", + "value": 0 + }, + { + "name": "TANGENT_LINEAR", + "value": 1 + }, + { + "name": "TANGENT_MODE_COUNT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_point_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2766148617, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "left_tangent", + "type": "float", + "meta": "float", + "default_value": "0" + }, + { + "name": "right_tangent", + "type": "float", + "meta": "float", + "default_value": "0" + }, + { + "name": "left_mode", + "type": "enum::Curve.TangentMode", + "default_value": "0" + }, + { + "name": "right_mode", + "type": "enum::Curve.TangentMode", + "default_value": "0" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_point_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780573764, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "sample", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3919130443, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "sample_baked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3919130443, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_left_tangent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_point_right_tangent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_point_left_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 426950354, + "return_value": { + "type": "enum::Curve.TangentMode" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_point_right_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 426950354, + "return_value": { + "type": "enum::Curve.TangentMode" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_left_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "tangent", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_point_right_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "tangent", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_point_left_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1217242874, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::Curve.TangentMode" + } + ] + }, + { + "name": "set_point_right_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1217242874, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::Curve.TangentMode" + } + ] + }, + { + "name": "get_min_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_min_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "min", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "clean_dupes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "bake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_bake_resolution", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_bake_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "resolution", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "range_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "min_value", + "setter": "set_min_value", + "getter": "get_min_value" + }, + { + "type": "float", + "name": "max_value", + "setter": "set_max_value", + "getter": "get_max_value" + }, + { + "type": "int", + "name": "bake_resolution", + "setter": "set_bake_resolution", + "getter": "get_bake_resolution" + }, + { + "type": "int", + "name": "point_count", + "setter": "set_point_count", + "getter": "get_point_count" + } + ] + }, + { + "name": "Curve2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_point_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2437345566, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "in", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + }, + { + "name": "out", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_in", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_in", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_out", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_out", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "sample", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 26514310, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "t", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "samplef", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3588506812, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "fofs", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_bake_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bake_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_baked_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "sample_baked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3750540263, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "cubic", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "sample_baked_with_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 255128112, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "cubic", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_baked_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "to_point", + "type": "Vector2" + } + ] + }, + { + "name": "get_closest_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2276447920, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "to_point", + "type": "Vector2" + } + ] + }, + { + "name": "tessellate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 958145977, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "max_stages", + "type": "int", + "meta": "int32", + "default_value": "5" + }, + { + "name": "tolerance_degrees", + "type": "float", + "meta": "float", + "default_value": "4" + } + ] + }, + { + "name": "tessellate_even_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4229237857, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "max_stages", + "type": "int", + "meta": "int32", + "default_value": "5" + }, + { + "name": "tolerance_length", + "type": "float", + "meta": "float", + "default_value": "20.0" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "bake_interval", + "setter": "set_bake_interval", + "getter": "get_bake_interval" + }, + { + "type": "int", + "name": "point_count", + "setter": "set_point_count", + "getter": "get_point_count" + } + ] + }, + { + "name": "Curve3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_point_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3836314258, + "arguments": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "in", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + }, + { + "name": "out", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_tilt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tilt", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_tilt", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_in", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_point_in", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_out", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_point_out", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "sample", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3285246857, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "t", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "samplef", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2553580215, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "fofs", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_bake_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bake_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_up_vector_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_up_vector_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_baked_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "sample_baked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4240323138, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "cubic", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "sample_baked_with_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2486289007, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "cubic", + "type": "bool", + "default_value": "false" + }, + { + "name": "apply_tilt", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "sample_baked_up_vector", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1362627031, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + }, + { + "name": "apply_tilt", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_baked_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "get_baked_tilts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675695659, + "return_value": { + "type": "PackedFloat32Array" + } + }, + { + "name": "get_baked_up_vectors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 192990374, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "get_closest_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1109078154, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "tessellate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1519759391, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "max_stages", + "type": "int", + "meta": "int32", + "default_value": "5" + }, + { + "name": "tolerance_degrees", + "type": "float", + "meta": "float", + "default_value": "4" + } + ] + }, + { + "name": "tessellate_even_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3915530683, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "max_stages", + "type": "int", + "meta": "int32", + "default_value": "5" + }, + { + "name": "tolerance_length", + "type": "float", + "meta": "float", + "default_value": "0.2" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "bake_interval", + "setter": "set_bake_interval", + "getter": "get_bake_interval" + }, + { + "type": "int", + "name": "point_count", + "setter": "set_point_count", + "getter": "get_point_count" + }, + { + "type": "bool", + "name": "up_vector_enabled", + "setter": "set_up_vector_enabled", + "getter": "is_up_vector_enabled" + } + ] + }, + { + "name": "CurveTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "enums": [ + { + "name": "TextureMode", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_MODE_RGB", + "value": 0 + }, + { + "name": "TEXTURE_MODE_RED", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_texture_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321955367, + "arguments": [ + { + "name": "texture_mode", + "type": "enum::CurveTexture.TextureMode" + } + ] + }, + { + "name": "get_texture_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 715756376, + "return_value": { + "type": "enum::CurveTexture.TextureMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "texture_mode", + "setter": "set_texture_mode", + "getter": "get_texture_mode" + }, + { + "type": "Curve", + "name": "curve", + "setter": "set_curve", + "getter": "get_curve" + } + ] + }, + { + "name": "CurveXYZTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_curve_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_curve_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_curve_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve_z", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + } + ], + "properties": [ + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "Curve", + "name": "curve_x", + "setter": "set_curve_x", + "getter": "get_curve_x" + }, + { + "type": "Curve", + "name": "curve_y", + "setter": "set_curve_y", + "getter": "get_curve_y" + }, + { + "type": "Curve", + "name": "curve_z", + "setter": "set_curve_z", + "getter": "get_curve_z" + } + ] + }, + { + "name": "CylinderMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_top_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_top_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bottom_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bottom_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_radial_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_cap_top", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "cap_top", + "type": "bool" + } + ] + }, + { + "name": "is_cap_top", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cap_bottom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "cap_bottom", + "type": "bool" + } + ] + }, + { + "name": "is_cap_bottom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "top_radius", + "setter": "set_top_radius", + "getter": "get_top_radius" + }, + { + "type": "float", + "name": "bottom_radius", + "setter": "set_bottom_radius", + "getter": "get_bottom_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "int", + "name": "radial_segments", + "setter": "set_radial_segments", + "getter": "get_radial_segments" + }, + { + "type": "int", + "name": "rings", + "setter": "set_rings", + "getter": "get_rings" + }, + { + "type": "bool", + "name": "cap_top", + "setter": "set_cap_top", + "getter": "is_cap_top" + }, + { + "type": "bool", + "name": "cap_bottom", + "setter": "set_cap_bottom", + "getter": "is_cap_bottom" + } + ] + }, + { + "name": "CylinderShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "DTLSServer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262296096, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "server_options", + "type": "TLSOptions" + } + ] + }, + { + "name": "take_connection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3946580474, + "return_value": { + "type": "PacketPeerDTLS" + }, + "arguments": [ + { + "name": "udp_peer", + "type": "PacketPeerUDP" + } + ] + } + ] + }, + { + "name": "DampedSpringJoint2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint2D", + "api_type": "core", + "methods": [ + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rest_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rest_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rest_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_stiffness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "damping", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "float", + "name": "rest_length", + "setter": "set_rest_length", + "getter": "get_rest_length" + }, + { + "type": "float", + "name": "stiffness", + "setter": "set_stiffness", + "getter": "get_stiffness" + }, + { + "type": "float", + "name": "damping", + "setter": "set_damping", + "getter": "get_damping" + } + ] + }, + { + "name": "Decal", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "DecalTexture", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_ALBEDO", + "value": 0 + }, + { + "name": "TEXTURE_NORMAL", + "value": 1 + }, + { + "name": "TEXTURE_ORM", + "value": 2 + }, + { + "name": "TEXTURE_EMISSION", + "value": 3 + }, + { + "name": "TEXTURE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2086764391, + "arguments": [ + { + "name": "type", + "type": "enum::Decal.DecalTexture" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3244119503, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "type", + "type": "enum::Decal.DecalTexture" + } + ] + }, + { + "name": "set_emission_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_albedo_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_albedo_mix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_upper_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fade", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_upper_fade", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_lower_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fade", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lower_fade", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_normal_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fade", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_normal_fade", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_enable_distance_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_distance_fade_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_distance_fade_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_distance_fade_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Texture", + "name": "texture_albedo", + "setter": "set_texture", + "getter": "get_texture", + "index": 0 + }, + { + "type": "Texture", + "name": "texture_normal", + "setter": "set_texture", + "getter": "get_texture", + "index": 1 + }, + { + "type": "Texture", + "name": "texture_orm", + "setter": "set_texture", + "getter": "get_texture", + "index": 2 + }, + { + "type": "Texture", + "name": "texture_emission", + "setter": "set_texture", + "getter": "get_texture", + "index": 3 + }, + { + "type": "float", + "name": "emission_energy", + "setter": "set_emission_energy", + "getter": "get_emission_energy" + }, + { + "type": "Color", + "name": "modulate", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "float", + "name": "albedo_mix", + "setter": "set_albedo_mix", + "getter": "get_albedo_mix" + }, + { + "type": "float", + "name": "normal_fade", + "setter": "set_normal_fade", + "getter": "get_normal_fade" + }, + { + "type": "float", + "name": "upper_fade", + "setter": "set_upper_fade", + "getter": "get_upper_fade" + }, + { + "type": "float", + "name": "lower_fade", + "setter": "set_lower_fade", + "getter": "get_lower_fade" + }, + { + "type": "bool", + "name": "distance_fade_enabled", + "setter": "set_enable_distance_fade", + "getter": "is_distance_fade_enabled" + }, + { + "type": "float", + "name": "distance_fade_begin", + "setter": "set_distance_fade_begin", + "getter": "get_distance_fade_begin" + }, + { + "type": "float", + "name": "distance_fade_length", + "setter": "set_distance_fade_length", + "getter": "get_distance_fade_length" + }, + { + "type": "int", + "name": "cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + } + ] + }, + { + "name": "DirAccess", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1923528528, + "return_value": { + "type": "DirAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_open_error", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "list_dir_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2018049411, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_next", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "current_is_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "list_dir_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_files_at", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_directories", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_directories_at", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_drive_count", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_drive_name", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_drive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "change_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "to_dir", + "type": "String" + } + ] + }, + { + "name": "get_current_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1287308131, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "include_drive", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "make_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_recursive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "make_dir_recursive_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "file_exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "dir_exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "dir_exists_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_space_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "copy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 198434953, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + }, + { + "name": "chmod_flags", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "copy_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 198434953, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + }, + { + "name": "chmod_flags", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "rename", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "rename_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from", + "type": "String" + }, + { + "name": "to", + "type": "String" + } + ] + }, + { + "name": "remove", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "remove_absolute", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_include_navigational", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_include_navigational", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_include_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_include_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "include_navigational", + "setter": "set_include_navigational", + "getter": "get_include_navigational" + }, + { + "type": "bool", + "name": "include_hidden", + "setter": "set_include_hidden", + "getter": "get_include_hidden" + } + ] + }, + { + "name": "DirectionalLight2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Light2D", + "api_type": "core", + "methods": [ + { + "name": "set_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixels", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "float", + "name": "max_distance", + "setter": "set_max_distance", + "getter": "get_max_distance" + } + ] + }, + { + "name": "DirectionalLight3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Light3D", + "api_type": "core", + "enums": [ + { + "name": "ShadowMode", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_ORTHOGONAL", + "value": 0 + }, + { + "name": "SHADOW_PARALLEL_2_SPLITS", + "value": 1 + }, + { + "name": "SHADOW_PARALLEL_4_SPLITS", + "value": 2 + } + ] + }, + { + "name": "SkyMode", + "is_bitfield": false, + "values": [ + { + "name": "SKY_MODE_LIGHT_AND_SKY", + "value": 0 + }, + { + "name": "SKY_MODE_LIGHT_ONLY", + "value": 1 + }, + { + "name": "SKY_MODE_SKY_ONLY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_shadow_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1261211726, + "arguments": [ + { + "name": "mode", + "type": "enum::DirectionalLight3D.ShadowMode" + } + ] + }, + { + "name": "get_shadow_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2765228544, + "return_value": { + "type": "enum::DirectionalLight3D.ShadowMode" + } + }, + { + "name": "set_blend_splits", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_blend_splits_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sky_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2691194817, + "arguments": [ + { + "name": "mode", + "type": "enum::DirectionalLight3D.SkyMode" + } + ] + }, + { + "name": "get_sky_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3819982774, + "return_value": { + "type": "enum::DirectionalLight3D.SkyMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "directional_shadow_mode", + "setter": "set_shadow_mode", + "getter": "get_shadow_mode" + }, + { + "type": "float", + "name": "directional_shadow_split_1", + "setter": "set_param", + "getter": "get_param", + "index": 10 + }, + { + "type": "float", + "name": "directional_shadow_split_2", + "setter": "set_param", + "getter": "get_param", + "index": 11 + }, + { + "type": "float", + "name": "directional_shadow_split_3", + "setter": "set_param", + "getter": "get_param", + "index": 12 + }, + { + "type": "bool", + "name": "directional_shadow_blend_splits", + "setter": "set_blend_splits", + "getter": "is_blend_splits_enabled" + }, + { + "type": "float", + "name": "directional_shadow_fade_start", + "setter": "set_param", + "getter": "get_param", + "index": 13 + }, + { + "type": "float", + "name": "directional_shadow_max_distance", + "setter": "set_param", + "getter": "get_param", + "index": 9 + }, + { + "type": "float", + "name": "directional_shadow_pancake_size", + "setter": "set_param", + "getter": "get_param", + "index": 16 + }, + { + "type": "int", + "name": "sky_mode", + "setter": "set_sky_mode", + "getter": "get_sky_mode" + } + ] + }, + { + "name": "DisplayServer", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "SCREEN_PRIMARY", + "value": -2 + }, + { + "name": "SCREEN_OF_MAIN_WINDOW", + "value": -1 + }, + { + "name": "MAIN_WINDOW_ID", + "value": 0 + }, + { + "name": "INVALID_WINDOW_ID", + "value": -1 + } + ], + "enums": [ + { + "name": "Feature", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_GLOBAL_MENU", + "value": 0 + }, + { + "name": "FEATURE_SUBWINDOWS", + "value": 1 + }, + { + "name": "FEATURE_TOUCHSCREEN", + "value": 2 + }, + { + "name": "FEATURE_MOUSE", + "value": 3 + }, + { + "name": "FEATURE_MOUSE_WARP", + "value": 4 + }, + { + "name": "FEATURE_CLIPBOARD", + "value": 5 + }, + { + "name": "FEATURE_VIRTUAL_KEYBOARD", + "value": 6 + }, + { + "name": "FEATURE_CURSOR_SHAPE", + "value": 7 + }, + { + "name": "FEATURE_CUSTOM_CURSOR_SHAPE", + "value": 8 + }, + { + "name": "FEATURE_NATIVE_DIALOG", + "value": 9 + }, + { + "name": "FEATURE_IME", + "value": 10 + }, + { + "name": "FEATURE_WINDOW_TRANSPARENCY", + "value": 11 + }, + { + "name": "FEATURE_HIDPI", + "value": 12 + }, + { + "name": "FEATURE_ICON", + "value": 13 + }, + { + "name": "FEATURE_NATIVE_ICON", + "value": 14 + }, + { + "name": "FEATURE_ORIENTATION", + "value": 15 + }, + { + "name": "FEATURE_SWAP_BUFFERS", + "value": 16 + }, + { + "name": "FEATURE_CLIPBOARD_PRIMARY", + "value": 18 + }, + { + "name": "FEATURE_TEXT_TO_SPEECH", + "value": 19 + }, + { + "name": "FEATURE_EXTEND_TO_TITLE", + "value": 20 + } + ] + }, + { + "name": "MouseMode", + "is_bitfield": false, + "values": [ + { + "name": "MOUSE_MODE_VISIBLE", + "value": 0 + }, + { + "name": "MOUSE_MODE_HIDDEN", + "value": 1 + }, + { + "name": "MOUSE_MODE_CAPTURED", + "value": 2 + }, + { + "name": "MOUSE_MODE_CONFINED", + "value": 3 + }, + { + "name": "MOUSE_MODE_CONFINED_HIDDEN", + "value": 4 + } + ] + }, + { + "name": "ScreenOrientation", + "is_bitfield": false, + "values": [ + { + "name": "SCREEN_LANDSCAPE", + "value": 0 + }, + { + "name": "SCREEN_PORTRAIT", + "value": 1 + }, + { + "name": "SCREEN_REVERSE_LANDSCAPE", + "value": 2 + }, + { + "name": "SCREEN_REVERSE_PORTRAIT", + "value": 3 + }, + { + "name": "SCREEN_SENSOR_LANDSCAPE", + "value": 4 + }, + { + "name": "SCREEN_SENSOR_PORTRAIT", + "value": 5 + }, + { + "name": "SCREEN_SENSOR", + "value": 6 + } + ] + }, + { + "name": "VirtualKeyboardType", + "is_bitfield": false, + "values": [ + { + "name": "KEYBOARD_TYPE_DEFAULT", + "value": 0 + }, + { + "name": "KEYBOARD_TYPE_MULTILINE", + "value": 1 + }, + { + "name": "KEYBOARD_TYPE_NUMBER", + "value": 2 + }, + { + "name": "KEYBOARD_TYPE_NUMBER_DECIMAL", + "value": 3 + }, + { + "name": "KEYBOARD_TYPE_PHONE", + "value": 4 + }, + { + "name": "KEYBOARD_TYPE_EMAIL_ADDRESS", + "value": 5 + }, + { + "name": "KEYBOARD_TYPE_PASSWORD", + "value": 6 + }, + { + "name": "KEYBOARD_TYPE_URL", + "value": 7 + } + ] + }, + { + "name": "CursorShape", + "is_bitfield": false, + "values": [ + { + "name": "CURSOR_ARROW", + "value": 0 + }, + { + "name": "CURSOR_IBEAM", + "value": 1 + }, + { + "name": "CURSOR_POINTING_HAND", + "value": 2 + }, + { + "name": "CURSOR_CROSS", + "value": 3 + }, + { + "name": "CURSOR_WAIT", + "value": 4 + }, + { + "name": "CURSOR_BUSY", + "value": 5 + }, + { + "name": "CURSOR_DRAG", + "value": 6 + }, + { + "name": "CURSOR_CAN_DROP", + "value": 7 + }, + { + "name": "CURSOR_FORBIDDEN", + "value": 8 + }, + { + "name": "CURSOR_VSIZE", + "value": 9 + }, + { + "name": "CURSOR_HSIZE", + "value": 10 + }, + { + "name": "CURSOR_BDIAGSIZE", + "value": 11 + }, + { + "name": "CURSOR_FDIAGSIZE", + "value": 12 + }, + { + "name": "CURSOR_MOVE", + "value": 13 + }, + { + "name": "CURSOR_VSPLIT", + "value": 14 + }, + { + "name": "CURSOR_HSPLIT", + "value": 15 + }, + { + "name": "CURSOR_HELP", + "value": 16 + }, + { + "name": "CURSOR_MAX", + "value": 17 + } + ] + }, + { + "name": "WindowMode", + "is_bitfield": false, + "values": [ + { + "name": "WINDOW_MODE_WINDOWED", + "value": 0 + }, + { + "name": "WINDOW_MODE_MINIMIZED", + "value": 1 + }, + { + "name": "WINDOW_MODE_MAXIMIZED", + "value": 2 + }, + { + "name": "WINDOW_MODE_FULLSCREEN", + "value": 3 + }, + { + "name": "WINDOW_MODE_EXCLUSIVE_FULLSCREEN", + "value": 4 + } + ] + }, + { + "name": "WindowFlags", + "is_bitfield": false, + "values": [ + { + "name": "WINDOW_FLAG_RESIZE_DISABLED", + "value": 0 + }, + { + "name": "WINDOW_FLAG_BORDERLESS", + "value": 1 + }, + { + "name": "WINDOW_FLAG_ALWAYS_ON_TOP", + "value": 2 + }, + { + "name": "WINDOW_FLAG_TRANSPARENT", + "value": 3 + }, + { + "name": "WINDOW_FLAG_NO_FOCUS", + "value": 4 + }, + { + "name": "WINDOW_FLAG_POPUP", + "value": 5 + }, + { + "name": "WINDOW_FLAG_EXTEND_TO_TITLE", + "value": 6 + }, + { + "name": "WINDOW_FLAG_MOUSE_PASSTHROUGH", + "value": 7 + }, + { + "name": "WINDOW_FLAG_MAX", + "value": 8 + } + ] + }, + { + "name": "WindowEvent", + "is_bitfield": false, + "values": [ + { + "name": "WINDOW_EVENT_MOUSE_ENTER", + "value": 0 + }, + { + "name": "WINDOW_EVENT_MOUSE_EXIT", + "value": 1 + }, + { + "name": "WINDOW_EVENT_FOCUS_IN", + "value": 2 + }, + { + "name": "WINDOW_EVENT_FOCUS_OUT", + "value": 3 + }, + { + "name": "WINDOW_EVENT_CLOSE_REQUEST", + "value": 4 + }, + { + "name": "WINDOW_EVENT_GO_BACK_REQUEST", + "value": 5 + }, + { + "name": "WINDOW_EVENT_DPI_CHANGE", + "value": 6 + }, + { + "name": "WINDOW_EVENT_TITLEBAR_CHANGE", + "value": 7 + } + ] + }, + { + "name": "VSyncMode", + "is_bitfield": false, + "values": [ + { + "name": "VSYNC_DISABLED", + "value": 0 + }, + { + "name": "VSYNC_ENABLED", + "value": 1 + }, + { + "name": "VSYNC_ADAPTIVE", + "value": 2 + }, + { + "name": "VSYNC_MAILBOX", + "value": 3 + } + ] + }, + { + "name": "HandleType", + "is_bitfield": false, + "values": [ + { + "name": "DISPLAY_HANDLE", + "value": 0 + }, + { + "name": "WINDOW_HANDLE", + "value": 1 + }, + { + "name": "WINDOW_VIEW", + "value": 2 + }, + { + "name": "OPENGL_CONTEXT", + "value": 3 + } + ] + }, + { + "name": "TTSUtteranceEvent", + "is_bitfield": false, + "values": [ + { + "name": "TTS_UTTERANCE_STARTED", + "value": 0 + }, + { + "name": "TTS_UTTERANCE_ENDED", + "value": 1 + }, + { + "name": "TTS_UTTERANCE_CANCELED", + "value": 2 + }, + { + "name": "TTS_UTTERANCE_BOUNDARY", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334065950, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::DisplayServer.Feature" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "global_menu_add_submenu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3806306913, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "submenu", + "type": "String" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415468211, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415468211, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_icon_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1700867534, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_icon_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1700867534, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415468211, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_icon_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1700867534, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_multistate_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 635750054, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + }, + { + "name": "default_state", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "key_callback", + "type": "Callable", + "default_value": "" + }, + { + "name": "tag", + "type": "Variant", + "default_value": "null" + }, + { + "name": "accelerator", + "type": "enum::Key", + "default_value": "0" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_add_separator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1041533178, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "global_menu_get_item_index_from_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878152881, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "global_menu_get_item_index_from_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2941063483, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "tag", + "type": "Variant" + } + ] + }, + { + "name": "global_menu_is_item_checked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3511468594, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_is_item_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3511468594, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_is_item_radio_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3511468594, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 748666903, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_key_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 748666903, + "return_value": { + "type": "Callable" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 330672633, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 591067909, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_submenu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 591067909, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_accelerator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 936065394, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_is_item_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3511468594, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 591067909, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3422818498, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_max_states", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3422818498, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3591713183, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_indentation_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3422818498, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_set_item_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108344793, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "global_menu_set_item_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108344793, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checkable", + "type": "bool" + } + ] + }, + { + "name": "global_menu_set_item_radio_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108344793, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "checkable", + "type": "bool" + } + ] + }, + { + "name": "global_menu_set_item_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3809915389, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "global_menu_set_item_key_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3809915389, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "key_callback", + "type": "Callable" + } + ] + }, + { + "name": "global_menu_set_item_tag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 453659863, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tag", + "type": "Variant" + } + ] + }, + { + "name": "global_menu_set_item_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 965966136, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "global_menu_set_item_submenu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 965966136, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "submenu", + "type": "String" + } + ] + }, + { + "name": "global_menu_set_item_accelerator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 566943293, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "global_menu_set_item_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108344793, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "global_menu_set_item_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 965966136, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "global_menu_set_item_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3474840532, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "state", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_set_item_max_states", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3474840532, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_set_item_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201338066, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "global_menu_set_item_indentation_level", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3474840532, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "menu_root", + "type": "String" + } + ] + }, + { + "name": "global_menu_remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "menu_root", + "type": "String" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_menu_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "menu_root", + "type": "String" + } + ] + }, + { + "name": "tts_is_speaking", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "tts_is_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "tts_get_voices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "tts_get_voices_for_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "tts_speak", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3723082199, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "voice", + "type": "String" + }, + { + "name": "volume", + "type": "int", + "meta": "int32", + "default_value": "50" + }, + { + "name": "pitch", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "rate", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "utterance_id", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "interrupt", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "tts_pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "tts_resume", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "tts_stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "tts_set_utterance_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 109679083, + "arguments": [ + { + "name": "event", + "type": "enum::DisplayServer.TTSUtteranceEvent" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "is_dark_mode_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_dark_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_accent_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "mouse_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 348288463, + "arguments": [ + { + "name": "mouse_mode", + "type": "enum::DisplayServer.MouseMode" + } + ] + }, + { + "name": "mouse_get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1353961651, + "return_value": { + "type": "enum::DisplayServer.MouseMode" + } + }, + { + "name": "warp_mouse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "mouse_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "mouse_get_button_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2512161324, + "return_value": { + "type": "bitfield::MouseButtonMask" + } + }, + { + "name": "clipboard_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "clipboard", + "type": "String" + } + ] + }, + { + "name": "clipboard_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "clipboard_has", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "clipboard_set_primary", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "clipboard_primary", + "type": "String" + } + ] + }, + { + "name": "clipboard_get_primary", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_display_cutouts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Rect2" + } + }, + { + "name": "get_display_safe_area", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410525958, + "return_value": { + "type": "Rect2i" + } + }, + { + "name": "get_screen_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_primary_screen", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_screen_from_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 741354659, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "screen_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1725937825, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1725937825, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_get_usable_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2439012528, + "return_value": { + "type": "Rect2i" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_get_dpi", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 181039630, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 909105437, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "is_touchscreen_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4162880507, + "return_value": { + "type": "bool" + } + }, + { + "name": "screen_get_max_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "screen_get_refresh_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 909105437, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_set_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2629526904, + "arguments": [ + { + "name": "orientation", + "type": "enum::DisplayServer.ScreenOrientation" + }, + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_get_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 133818562, + "return_value": { + "type": "enum::DisplayServer.ScreenOrientation" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "screen_set_keep_on", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "screen_is_kept_on", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_window_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "get_window_at_screen_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "window_get_native_handle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2709193271, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "handle_type", + "type": "enum::DisplayServer.HandleType" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_active_popup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "window_set_popup_safe_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3317281434, + "arguments": [ + { + "name": "window", + "type": "int", + "meta": "int32" + }, + { + "name": "rect", + "type": "Rect2i" + } + ] + }, + { + "name": "window_get_popup_safe_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2161169500, + "return_value": { + "type": "Rect2i" + }, + "arguments": [ + { + "name": "window", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "window_set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3043792800, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_mouse_passthrough", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3958815166, + "arguments": [ + { + "name": "region", + "type": "PackedVector2Array" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_current_screen", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_current_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3023605688, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_position_with_decorations", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_rect_changed_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3653650673, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_window_event_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3653650673, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_input_event_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3653650673, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_input_text_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3653650673, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_drop_files_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3653650673, + "arguments": [ + { + "name": "callback", + "type": "Callable" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_attached_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_max_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_max_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "max_size", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_min_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_min_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "min_size", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_size_with_decorations", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 763922886, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2185728461, + "return_value": { + "type": "enum::DisplayServer.WindowMode" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2942569511, + "arguments": [ + { + "name": "mode", + "type": "enum::DisplayServer.WindowMode" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971592565, + "arguments": [ + { + "name": "flag", + "type": "enum::DisplayServer.WindowFlags" + }, + { + "name": "enabled", + "type": "bool" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2662949986, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::DisplayServer.WindowFlags" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_window_buttons_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "offset", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_safe_title_margins", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2295066620, + "return_value": { + "type": "Vector3i" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_request_attention", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_move_to_foreground", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_can_draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1051549951, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_transient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32" + }, + { + "name": "parent_window_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "window_set_exclusive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32" + }, + { + "name": "exclusive", + "type": "bool" + } + ] + }, + { + "name": "window_set_ime_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 450484987, + "arguments": [ + { + "name": "active", + "type": "bool" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_ime_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614040015, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_set_vsync_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1708924624, + "arguments": [ + { + "name": "vsync_mode", + "type": "enum::DisplayServer.VSyncMode" + }, + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_get_vsync_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 578873795, + "return_value": { + "type": "enum::DisplayServer.VSyncMode" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_is_maximize_allowed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1051549951, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "window_id", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "window_maximize_on_title_dbl_click", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "window_minimize_on_title_dbl_click", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "ime_get_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "ime_get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "virtual_keyboard_show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 860410478, + "arguments": [ + { + "name": "existing_text", + "type": "String" + }, + { + "name": "position", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "type", + "type": "enum::DisplayServer.VirtualKeyboardType", + "default_value": "0" + }, + { + "name": "max_length", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "cursor_start", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "cursor_end", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "virtual_keyboard_hide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "virtual_keyboard_get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "cursor_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2026291549, + "arguments": [ + { + "name": "shape", + "type": "enum::DisplayServer.CursorShape" + } + ] + }, + { + "name": "cursor_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1087724927, + "return_value": { + "type": "enum::DisplayServer.CursorShape" + } + }, + { + "name": "cursor_set_custom_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1358907026, + "arguments": [ + { + "name": "cursor", + "type": "Resource" + }, + { + "name": "shape", + "type": "enum::DisplayServer.CursorShape", + "default_value": "0" + }, + { + "name": "hotspot", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "get_swap_cancel_ok", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "enable_for_stealing_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "process_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "dialog_show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4115553226, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "description", + "type": "String" + }, + { + "name": "buttons", + "type": "PackedStringArray" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "dialog_input_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3088703427, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "title", + "type": "String" + }, + { + "name": "description", + "type": "String" + }, + { + "name": "existing_text", + "type": "String" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "keyboard_get_layout_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "keyboard_get_current_layout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "keyboard_set_current_layout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "keyboard_get_layout_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "keyboard_get_layout_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "keyboard_get_keycode_from_physical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3447613187, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "process_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "force_process_and_drop_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_native_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, + { + "name": "set_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "tablet_get_driver_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "tablet_get_driver_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "tablet_get_current_driver", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "tablet_set_current_driver", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + } + ] + }, + { + "name": "ENetConnection", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "CompressionMode", + "is_bitfield": false, + "values": [ + { + "name": "COMPRESS_NONE", + "value": 0 + }, + { + "name": "COMPRESS_RANGE_CODER", + "value": 1 + }, + { + "name": "COMPRESS_FASTLZ", + "value": 2 + }, + { + "name": "COMPRESS_ZLIB", + "value": 3 + }, + { + "name": "COMPRESS_ZSTD", + "value": 4 + } + ] + }, + { + "name": "EventType", + "is_bitfield": false, + "values": [ + { + "name": "EVENT_ERROR", + "value": -1 + }, + { + "name": "EVENT_NONE", + "value": 0 + }, + { + "name": "EVENT_CONNECT", + "value": 1 + }, + { + "name": "EVENT_DISCONNECT", + "value": 2 + }, + { + "name": "EVENT_RECEIVE", + "value": 3 + } + ] + }, + { + "name": "HostStatistic", + "is_bitfield": false, + "values": [ + { + "name": "HOST_TOTAL_SENT_DATA", + "value": 0 + }, + { + "name": "HOST_TOTAL_SENT_PACKETS", + "value": 1 + }, + { + "name": "HOST_TOTAL_RECEIVED_DATA", + "value": 2 + }, + { + "name": "HOST_TOTAL_RECEIVED_PACKETS", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "create_host_bound", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866250949, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "bind_address", + "type": "String" + }, + { + "name": "bind_port", + "type": "int", + "meta": "int32" + }, + { + "name": "max_peers", + "type": "int", + "meta": "int32", + "default_value": "32" + }, + { + "name": "max_channels", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "in_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "out_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "create_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 117198950, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "max_peers", + "type": "int", + "meta": "int32", + "default_value": "32" + }, + { + "name": "max_channels", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "in_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "out_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "destroy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "connect_to_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 385984708, + "return_value": { + "type": "ENetPacketPeer" + }, + "arguments": [ + { + "name": "address", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "channels", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "data", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "service", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2402345344, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "timeout", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "flush", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "bandwidth_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2302169788, + "arguments": [ + { + "name": "in_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "out_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "channel_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "limit", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "broadcast", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2772371345, + "arguments": [ + { + "name": "channel", + "type": "int", + "meta": "int32" + }, + { + "name": "packet", + "type": "PackedByteArray" + }, + { + "name": "flags", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "compress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2660215187, + "arguments": [ + { + "name": "mode", + "type": "enum::ENetConnection.CompressionMode" + } + ] + }, + { + "name": "dtls_server_setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262296096, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "server_options", + "type": "TLSOptions" + } + ] + }, + { + "name": "dtls_client_setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3097527179, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "hostname", + "type": "String" + }, + { + "name": "client_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "refuse_new_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "refuse", + "type": "bool" + } + ] + }, + { + "name": "pop_statistic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2166904170, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "statistic", + "type": "enum::ENetConnection.HostStatistic" + } + ] + }, + { + "name": "get_max_channels", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_peers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::ENetPacketPeer" + } + } + ] + }, + { + "name": "ENetMultiplayerPeer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerPeer", + "api_type": "core", + "methods": [ + { + "name": "create_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1616151701, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "max_clients", + "type": "int", + "meta": "int32", + "default_value": "32" + }, + { + "name": "max_channels", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "in_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "out_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "create_client", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 920217784, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "address", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "channel_count", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "in_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "out_bandwidth", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "local_port", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "create_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844576869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "unique_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_mesh_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1293458335, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "host", + "type": "ENetConnection" + } + ] + }, + { + "name": "set_bind_ip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "ip", + "type": "String" + } + ] + }, + { + "name": "get_host", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4103238886, + "return_value": { + "type": "ENetConnection" + } + }, + { + "name": "get_peer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3793311544, + "return_value": { + "type": "ENetPacketPeer" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "ENetConnection", + "name": "host", + "getter": "get_host" + } + ] + }, + { + "name": "ENetPacketPeer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "PacketPeer", + "api_type": "core", + "constants": [ + { + "name": "PACKET_LOSS_SCALE", + "value": 65536 + }, + { + "name": "PACKET_THROTTLE_SCALE", + "value": 32 + }, + { + "name": "FLAG_RELIABLE", + "value": 1 + }, + { + "name": "FLAG_UNSEQUENCED", + "value": 2 + }, + { + "name": "FLAG_UNRELIABLE_FRAGMENT", + "value": 8 + } + ], + "enums": [ + { + "name": "PeerState", + "is_bitfield": false, + "values": [ + { + "name": "STATE_DISCONNECTED", + "value": 0 + }, + { + "name": "STATE_CONNECTING", + "value": 1 + }, + { + "name": "STATE_ACKNOWLEDGING_CONNECT", + "value": 2 + }, + { + "name": "STATE_CONNECTION_PENDING", + "value": 3 + }, + { + "name": "STATE_CONNECTION_SUCCEEDED", + "value": 4 + }, + { + "name": "STATE_CONNECTED", + "value": 5 + }, + { + "name": "STATE_DISCONNECT_LATER", + "value": 6 + }, + { + "name": "STATE_DISCONNECTING", + "value": 7 + }, + { + "name": "STATE_ACKNOWLEDGING_DISCONNECT", + "value": 8 + }, + { + "name": "STATE_ZOMBIE", + "value": 9 + } + ] + }, + { + "name": "PeerStatistic", + "is_bitfield": false, + "values": [ + { + "name": "PEER_PACKET_LOSS", + "value": 0 + }, + { + "name": "PEER_PACKET_LOSS_VARIANCE", + "value": 1 + }, + { + "name": "PEER_PACKET_LOSS_EPOCH", + "value": 2 + }, + { + "name": "PEER_ROUND_TRIP_TIME", + "value": 3 + }, + { + "name": "PEER_ROUND_TRIP_TIME_VARIANCE", + "value": 4 + }, + { + "name": "PEER_LAST_ROUND_TRIP_TIME", + "value": 5 + }, + { + "name": "PEER_LAST_ROUND_TRIP_TIME_VARIANCE", + "value": 6 + }, + { + "name": "PEER_PACKET_THROTTLE", + "value": 7 + }, + { + "name": "PEER_PACKET_THROTTLE_LIMIT", + "value": 8 + }, + { + "name": "PEER_PACKET_THROTTLE_COUNTER", + "value": 9 + }, + { + "name": "PEER_PACKET_THROTTLE_EPOCH", + "value": 10 + }, + { + "name": "PEER_PACKET_THROTTLE_ACCELERATION", + "value": 11 + }, + { + "name": "PEER_PACKET_THROTTLE_DECELERATION", + "value": 12 + }, + { + "name": "PEER_PACKET_THROTTLE_INTERVAL", + "value": 13 + } + ] + } + ], + "methods": [ + { + "name": "peer_disconnect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "data", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "peer_disconnect_later", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "data", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "peer_disconnect_now", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "data", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "ping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "ping_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "ping_interval", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "reset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "send", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 120522849, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "channel", + "type": "int", + "meta": "int32" + }, + { + "name": "packet", + "type": "PackedByteArray" + }, + { + "name": "flags", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "throttle_configure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1649997291, + "arguments": [ + { + "name": "interval", + "type": "int", + "meta": "int32" + }, + { + "name": "acceleration", + "type": "int", + "meta": "int32" + }, + { + "name": "deceleration", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_timeout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1649997291, + "arguments": [ + { + "name": "timeout", + "type": "int", + "meta": "int32" + }, + { + "name": "timeout_min", + "type": "int", + "meta": "int32" + }, + { + "name": "timeout_max", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_remote_address", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_remote_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_statistic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1642578323, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "statistic", + "type": "enum::ENetPacketPeer.PeerStatistic" + } + ] + }, + { + "name": "get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711068532, + "return_value": { + "type": "enum::ENetPacketPeer.PeerState" + } + }, + { + "name": "get_channels", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "EditorCommandPalette", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "ConfirmationDialog", + "api_type": "editor", + "methods": [ + { + "name": "add_command", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3664614892, + "arguments": [ + { + "name": "command_name", + "type": "String" + }, + { + "name": "key_name", + "type": "String" + }, + { + "name": "binded_callable", + "type": "Callable" + }, + { + "name": "shortcut_text", + "type": "String", + "default_value": "\"None\"" + } + ] + }, + { + "name": "remove_command", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "key_name", + "type": "String" + } + ] + } + ] + }, + { + "name": "EditorDebuggerPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_setup_session", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "session_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_has_capture", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "capture", + "type": "String" + } + ] + }, + { + "name": "_capture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "message", + "type": "String" + }, + { + "name": "data", + "type": "Array" + }, + { + "name": "session_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_session", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3061968499, + "return_value": { + "type": "EditorDebuggerSession" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sessions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "Array" + } + } + ] + }, + { + "name": "EditorDebuggerSession", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "send_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780025912, + "arguments": [ + { + "name": "message", + "type": "String" + }, + { + "name": "data", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "toggle_profiler", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 35674246, + "arguments": [ + { + "name": "profiler", + "type": "String" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "data", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "is_breaked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_debuggable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_session_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "remove_session_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + } + ], + "signals": [ + { + "name": "started" + }, + { + "name": "stopped" + }, + { + "name": "breaked", + "arguments": [ + { + "name": "can_debug", + "type": "bool" + } + ] + }, + { + "name": "continued" + } + ] + }, + { + "name": "EditorExportPlatform", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor" + }, + { + "name": "EditorExportPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_export_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "type", + "type": "String" + }, + { + "name": "features", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_export_begin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "features", + "type": "PackedStringArray" + }, + { + "name": "is_debug", + "type": "bool" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_export_end", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_begin_customize_resources", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "features", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_customize_resource", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_begin_customize_scenes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "features", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_customize_scene", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "scene", + "type": "Node" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_customization_configuration_hash", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "_end_customize_scenes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_end_customize_resources", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_export_features", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "platform", + "type": "EditorExportPlatform" + }, + { + "name": "debug", + "type": "bool" + } + ] + }, + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "add_shared_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3098291045, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "tags", + "type": "PackedStringArray" + }, + { + "name": "target", + "type": "String" + } + ] + }, + { + "name": "add_ios_project_static_lib", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 527928637, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "file", + "type": "PackedByteArray" + }, + { + "name": "remap", + "type": "bool" + } + ] + }, + { + "name": "add_ios_framework", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_ios_embedded_framework", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_ios_plist_content", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "plist_content", + "type": "String" + } + ] + }, + { + "name": "add_ios_linker_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "flags", + "type": "String" + } + ] + }, + { + "name": "add_ios_bundle_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_ios_cpp_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "code", + "type": "String" + } + ] + }, + { + "name": "add_macos_plugin_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "skip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "EditorFeatureProfile", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "enums": [ + { + "name": "Feature", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_3D", + "value": 0 + }, + { + "name": "FEATURE_SCRIPT", + "value": 1 + }, + { + "name": "FEATURE_ASSET_LIB", + "value": 2 + }, + { + "name": "FEATURE_SCENE_TREE", + "value": 3 + }, + { + "name": "FEATURE_NODE_DOCK", + "value": 4 + }, + { + "name": "FEATURE_FILESYSTEM_DOCK", + "value": 5 + }, + { + "name": "FEATURE_IMPORT_DOCK", + "value": 6 + }, + { + "name": "FEATURE_HISTORY_DOCK", + "value": 7 + }, + { + "name": "FEATURE_MAX", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "set_disable_class", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2524380260, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_class_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + } + ] + }, + { + "name": "set_disable_class_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2524380260, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_class_editor_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + } + ] + }, + { + "name": "set_disable_class_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 865197084, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_class_property_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class_name", + "type": "StringName" + }, + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "set_disable_feature", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1884871044, + "arguments": [ + { + "name": "feature", + "type": "enum::EditorFeatureProfile.Feature" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_feature_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2974403161, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::EditorFeatureProfile.Feature" + } + ] + }, + { + "name": "get_feature_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3401335809, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::EditorFeatureProfile.Feature" + } + ] + }, + { + "name": "save_to_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "EditorFileDialog", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "ConfirmationDialog", + "api_type": "editor", + "enums": [ + { + "name": "FileMode", + "is_bitfield": false, + "values": [ + { + "name": "FILE_MODE_OPEN_FILE", + "value": 0 + }, + { + "name": "FILE_MODE_OPEN_FILES", + "value": 1 + }, + { + "name": "FILE_MODE_OPEN_DIR", + "value": 2 + }, + { + "name": "FILE_MODE_OPEN_ANY", + "value": 3 + }, + { + "name": "FILE_MODE_SAVE_FILE", + "value": 4 + } + ] + }, + { + "name": "Access", + "is_bitfield": false, + "values": [ + { + "name": "ACCESS_RESOURCES", + "value": 0 + }, + { + "name": "ACCESS_USERDATA", + "value": 1 + }, + { + "name": "ACCESS_FILESYSTEM", + "value": 2 + } + ] + }, + { + "name": "DisplayMode", + "is_bitfield": false, + "values": [ + { + "name": "DISPLAY_THUMBNAILS", + "value": 0 + }, + { + "name": "DISPLAY_LIST", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "clear_filters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 233059325, + "arguments": [ + { + "name": "filter", + "type": "String" + }, + { + "name": "description", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "set_filters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "filters", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_filters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_current_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_current_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_current_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_current_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "dir", + "type": "String" + } + ] + }, + { + "name": "set_current_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_current_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_file_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 274150415, + "arguments": [ + { + "name": "mode", + "type": "enum::EditorFileDialog.FileMode" + } + ] + }, + { + "name": "get_file_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2681044145, + "return_value": { + "type": "enum::EditorFileDialog.FileMode" + } + }, + { + "name": "get_vbox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 915758477, + "return_value": { + "type": "VBoxContainer" + } + }, + { + "name": "get_line_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4071694264, + "return_value": { + "type": "LineEdit" + } + }, + { + "name": "set_access", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3882893764, + "arguments": [ + { + "name": "access", + "type": "enum::EditorFileDialog.Access" + } + ] + }, + { + "name": "get_access", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 778734016, + "return_value": { + "type": "enum::EditorFileDialog.Access" + } + }, + { + "name": "set_show_hidden_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "is_showing_hidden_files", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_display_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3049004050, + "arguments": [ + { + "name": "mode", + "type": "enum::EditorFileDialog.DisplayMode" + } + ] + }, + { + "name": "get_display_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3517174669, + "return_value": { + "type": "enum::EditorFileDialog.DisplayMode" + } + }, + { + "name": "set_disable_overwrite_warning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_overwrite_warning_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "invalidate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "file_selected", + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "files_selected", + "arguments": [ + { + "name": "paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "dir_selected", + "arguments": [ + { + "name": "dir", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "access", + "setter": "set_access", + "getter": "get_access" + }, + { + "type": "int", + "name": "display_mode", + "setter": "set_display_mode", + "getter": "get_display_mode" + }, + { + "type": "int", + "name": "file_mode", + "setter": "set_file_mode", + "getter": "get_file_mode" + }, + { + "type": "String", + "name": "current_dir", + "setter": "set_current_dir", + "getter": "get_current_dir" + }, + { + "type": "String", + "name": "current_file", + "setter": "set_current_file", + "getter": "get_current_file" + }, + { + "type": "String", + "name": "current_path", + "setter": "set_current_path", + "getter": "get_current_path" + }, + { + "type": "PackedStringArray", + "name": "filters", + "setter": "set_filters", + "getter": "get_filters" + }, + { + "type": "bool", + "name": "show_hidden_files", + "setter": "set_show_hidden_files", + "getter": "is_showing_hidden_files" + }, + { + "type": "bool", + "name": "disable_overwrite_warning", + "setter": "set_disable_overwrite_warning", + "getter": "is_overwrite_warning_disabled" + } + ] + }, + { + "name": "EditorFileSystem", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "editor", + "methods": [ + { + "name": "get_filesystem", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 842323275, + "return_value": { + "type": "EditorFileSystemDirectory" + } + }, + { + "name": "is_scanning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_scanning_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "scan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "scan_sources", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "update_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_filesystem_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3188521125, + "return_value": { + "type": "EditorFileSystemDirectory" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_file_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "reimport_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "files", + "type": "PackedStringArray" + } + ] + } + ], + "signals": [ + { + "name": "filesystem_changed" + }, + { + "name": "script_classes_updated" + }, + { + "name": "sources_changed", + "arguments": [ + { + "name": "exist", + "type": "bool" + } + ] + }, + { + "name": "resources_reimported", + "arguments": [ + { + "name": "resources", + "type": "PackedStringArray" + } + ] + }, + { + "name": "resources_reload", + "arguments": [ + { + "name": "resources", + "type": "PackedStringArray" + } + ] + } + ] + }, + { + "name": "EditorFileSystemDirectory", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "editor", + "methods": [ + { + "name": "get_subdir_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_subdir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2330964164, + "return_value": { + "type": "EditorFileSystemDirectory" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_script_class_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_script_class_extends", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_file_import_is_valid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 842323275, + "return_value": { + "type": "EditorFileSystemDirectory" + } + }, + { + "name": "find_file_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "find_dir_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + } + ] + }, + { + "name": "EditorFileSystemImportFormatSupportQuery", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_is_active", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_file_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_query", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "EditorImportPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceImporter", + "api_type": "editor", + "methods": [ + { + "name": "_get_importer_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_visible_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_preset_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_preset_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "preset_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_get_import_options", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "preset_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_save_extension", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_resource_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_import_order", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_option_visibility", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "option_name", + "type": "StringName" + }, + { + "name": "options", + "type": "Dictionary" + } + ] + }, + { + "name": "_import", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "source_file", + "type": "String" + }, + { + "name": "save_path", + "type": "String" + }, + { + "name": "options", + "type": "Dictionary" + }, + { + "name": "platform_variants", + "type": "typedarray::String" + }, + { + "name": "gen_files", + "type": "typedarray::String" + } + ] + }, + { + "name": "append_import_external_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3645925746, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "custom_options", + "type": "Dictionary", + "default_value": "{}" + }, + { + "name": "custom_importer", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "generator_parameters", + "type": "Variant", + "default_value": "null" + } + ] + } + ] + }, + { + "name": "EditorInspector", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "ScrollContainer", + "api_type": "editor", + "methods": [ + { + "name": "get_selected_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "signals": [ + { + "name": "property_selected", + "arguments": [ + { + "name": "property", + "type": "String" + } + ] + }, + { + "name": "property_keyed", + "arguments": [ + { + "name": "property", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "advance", + "type": "bool" + } + ] + }, + { + "name": "property_deleted", + "arguments": [ + { + "name": "property", + "type": "String" + } + ] + }, + { + "name": "resource_selected", + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "object_id_selected", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "property_edited", + "arguments": [ + { + "name": "property", + "type": "String" + } + ] + }, + { + "name": "property_toggled", + "arguments": [ + { + "name": "property", + "type": "String" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "edited_object_changed" + }, + { + "name": "restart_requested" + } + ] + }, + { + "name": "EditorInspectorPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_can_handle", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "_parse_begin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "_parse_category", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "category", + "type": "String" + } + ] + }, + { + "name": "_parse_group", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "group", + "type": "String" + } + ] + }, + { + "name": "_parse_property", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "type", + "type": "enum::Variant.Type" + }, + { + "name": "name", + "type": "String" + }, + { + "name": "hint_type", + "type": "enum::PropertyHint" + }, + { + "name": "hint_string", + "type": "String" + }, + { + "name": "usage_flags", + "type": "bitfield::PropertyUsageFlags" + }, + { + "name": "wide", + "type": "bool" + } + ] + }, + { + "name": "_parse_end", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "add_custom_control", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "add_property_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3406284123, + "arguments": [ + { + "name": "property", + "type": "String" + }, + { + "name": "editor", + "type": "Control" + }, + { + "name": "add_to_end", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_property_editor_for_multiple_properties", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788598683, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "properties", + "type": "PackedStringArray" + }, + { + "name": "editor", + "type": "Control" + } + ] + } + ] + }, + { + "name": "EditorInterface", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "editor", + "methods": [ + { + "name": "inspect_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2564140749, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "for_property", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "inspector_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 50507531, + "return_value": { + "type": "EditorSelection" + } + }, + { + "name": "get_editor_settings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2469088558, + "return_value": { + "type": "EditorSettings" + } + }, + { + "name": "get_script_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3947407316, + "return_value": { + "type": "ScriptEditor" + } + }, + { + "name": "get_base_control", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 829782337, + "return_value": { + "type": "Control" + } + }, + { + "name": "get_editor_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "edit_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "edit_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "edit_script", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3664508569, + "arguments": [ + { + "name": "script", + "type": "Script" + }, + { + "name": "line", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "column", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "grab_focus", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "open_scene_from_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "scene_filepath", + "type": "String" + } + ] + }, + { + "name": "reload_scene_from_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "scene_filepath", + "type": "String" + } + ] + }, + { + "name": "play_main_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "play_current_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "play_custom_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "scene_filepath", + "type": "String" + } + ] + }, + { + "name": "stop_playing_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_playing_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_open_scenes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_edited_scene_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1818953479, + "return_value": { + "type": "Node" + } + }, + { + "name": "get_resource_previewer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1578506115, + "return_value": { + "type": "EditorResourcePreview" + } + }, + { + "name": "get_resource_filesystem", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 492575303, + "return_value": { + "type": "EditorFileSystem" + } + }, + { + "name": "get_editor_main_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 915758477, + "return_value": { + "type": "VBoxContainer" + } + }, + { + "name": "make_mesh_previews", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 878078554, + "return_value": { + "type": "typedarray::Texture2D" + }, + "arguments": [ + { + "name": "meshes", + "type": "typedarray::Mesh" + }, + { + "name": "preview_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "select_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "get_selected_paths", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_current_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_current_directory", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_file_system_dock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 561123517, + "return_value": { + "type": "FileSystemDock" + } + }, + { + "name": "get_editor_paths", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4197665367, + "return_value": { + "type": "EditorPaths" + } + }, + { + "name": "get_command_palette", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2471163807, + "return_value": { + "type": "EditorCommandPalette" + } + }, + { + "name": "set_plugin_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "plugin", + "type": "String" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_plugin_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "plugin", + "type": "String" + } + ] + }, + { + "name": "set_movie_maker_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_movie_maker_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_inspector", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3517113938, + "return_value": { + "type": "EditorInspector" + } + }, + { + "name": "save_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "save_scene_as", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1168363258, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "with_preview", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "restart_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "save", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_main_screen_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_distraction_free_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enter", + "type": "bool" + } + ] + }, + { + "name": "is_distraction_free_mode_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "distraction_free_mode", + "setter": "set_distraction_free_mode", + "getter": "is_distraction_free_mode_enabled" + } + ] + }, + { + "name": "EditorNode3DGizmo", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Node3DGizmo", + "api_type": "editor", + "methods": [ + { + "name": "_redraw", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_handle_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_is_handle_highlighted", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_get_handle_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_set_handle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + }, + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "_commit_handle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + }, + { + "name": "restore", + "type": "Variant" + }, + { + "name": "cancel", + "type": "bool" + } + ] + }, + { + "name": "_subgizmos_intersect_ray", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "_subgizmos_intersect_frustum", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "frustum", + "type": "typedarray::Plane" + } + ] + }, + { + "name": "_set_subgizmo_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_get_subgizmo_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_commit_subgizmos", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "ids", + "type": "PackedInt32Array" + }, + { + "name": "restores", + "type": "typedarray::Transform3D" + }, + { + "name": "cancel", + "type": "bool" + } + ] + }, + { + "name": "add_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 302451090, + "arguments": [ + { + "name": "lines", + "type": "PackedVector3Array" + }, + { + "name": "material", + "type": "Material" + }, + { + "name": "billboard", + "type": "bool", + "default_value": "false" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "add_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1868867708, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + }, + { + "name": "material", + "type": "Material", + "default_value": "null" + }, + { + "name": "transform", + "type": "Transform3D", + "default_value": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "skeleton", + "type": "SkinReference", + "default_value": "null" + } + ] + }, + { + "name": "add_collision_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "segments", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "add_collision_triangles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 54901064, + "arguments": [ + { + "name": "triangles", + "type": "TriangleMesh" + } + ] + }, + { + "name": "add_unscaled_billboard", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3719733075, + "arguments": [ + { + "name": "material", + "type": "Material" + }, + { + "name": "default_scale", + "type": "float", + "meta": "float", + "default_value": "1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "add_handles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2254560097, + "arguments": [ + { + "name": "handles", + "type": "PackedVector3Array" + }, + { + "name": "material", + "type": "Material" + }, + { + "name": "ids", + "type": "PackedInt32Array" + }, + { + "name": "billboard", + "type": "bool", + "default_value": "false" + }, + { + "name": "secondary", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_node_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_node_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 151077316, + "return_value": { + "type": "Node3D" + } + }, + { + "name": "get_plugin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4250544552, + "return_value": { + "type": "EditorNode3DGizmoPlugin" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "is_subgizmo_selected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subgizmo_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + } + ] + }, + { + "name": "EditorNode3DGizmoPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "editor", + "methods": [ + { + "name": "_has_gizmo", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "for_node_3d", + "type": "Node3D" + } + ] + }, + { + "name": "_create_gizmo", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "EditorNode3DGizmo" + }, + "arguments": [ + { + "name": "for_node_3d", + "type": "Node3D" + } + ] + }, + { + "name": "_get_gizmo_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_can_be_hidden", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_is_selectable_when_hidden", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_redraw", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + } + ] + }, + { + "name": "_get_handle_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_is_handle_highlighted", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_get_handle_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + } + ] + }, + { + "name": "_set_handle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + }, + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "screen_pos", + "type": "Vector2" + } + ] + }, + { + "name": "_commit_handle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "handle_id", + "type": "int", + "meta": "int32" + }, + { + "name": "secondary", + "type": "bool" + }, + { + "name": "restore", + "type": "Variant" + }, + { + "name": "cancel", + "type": "bool" + } + ] + }, + { + "name": "_subgizmos_intersect_ray", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "screen_pos", + "type": "Vector2" + } + ] + }, + { + "name": "_subgizmos_intersect_frustum", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "camera", + "type": "Camera3D" + }, + { + "name": "frustum_planes", + "type": "typedarray::Plane" + } + ] + }, + { + "name": "_get_subgizmo_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "subgizmo_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_set_subgizmo_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "subgizmo_id", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_commit_subgizmos", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "gizmo", + "type": "EditorNode3DGizmo" + }, + { + "name": "ids", + "type": "PackedInt32Array" + }, + { + "name": "restores", + "type": "typedarray::Transform3D" + }, + { + "name": "cancel", + "type": "bool" + } + ] + }, + { + "name": "create_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3486012546, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "billboard", + "type": "bool", + "default_value": "false" + }, + { + "name": "on_top", + "type": "bool", + "default_value": "false" + }, + { + "name": "use_vertex_color", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_icon_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2976007329, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "on_top", + "type": "bool", + "default_value": "false" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "create_handle_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2486475223, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "billboard", + "type": "bool", + "default_value": "false" + }, + { + "name": "texture", + "type": "Texture2D", + "default_value": "null" + } + ] + }, + { + "name": "add_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1374068695, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "material", + "type": "StandardMaterial3D" + } + ] + }, + { + "name": "get_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3501703615, + "return_value": { + "type": "StandardMaterial3D" + }, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "gizmo", + "type": "EditorNode3DGizmo", + "default_value": "null" + } + ] + } + ] + }, + { + "name": "EditorPaths", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "editor", + "methods": [ + { + "name": "get_data_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_config_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_cache_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_self_contained", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_self_contained_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_project_settings_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ] + }, + { + "name": "EditorPlugin", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "editor", + "enums": [ + { + "name": "CustomControlContainer", + "is_bitfield": false, + "values": [ + { + "name": "CONTAINER_TOOLBAR", + "value": 0 + }, + { + "name": "CONTAINER_SPATIAL_EDITOR_MENU", + "value": 1 + }, + { + "name": "CONTAINER_SPATIAL_EDITOR_SIDE_LEFT", + "value": 2 + }, + { + "name": "CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT", + "value": 3 + }, + { + "name": "CONTAINER_SPATIAL_EDITOR_BOTTOM", + "value": 4 + }, + { + "name": "CONTAINER_CANVAS_EDITOR_MENU", + "value": 5 + }, + { + "name": "CONTAINER_CANVAS_EDITOR_SIDE_LEFT", + "value": 6 + }, + { + "name": "CONTAINER_CANVAS_EDITOR_SIDE_RIGHT", + "value": 7 + }, + { + "name": "CONTAINER_CANVAS_EDITOR_BOTTOM", + "value": 8 + }, + { + "name": "CONTAINER_INSPECTOR_BOTTOM", + "value": 9 + }, + { + "name": "CONTAINER_PROJECT_SETTING_TAB_LEFT", + "value": 10 + }, + { + "name": "CONTAINER_PROJECT_SETTING_TAB_RIGHT", + "value": 11 + } + ] + }, + { + "name": "DockSlot", + "is_bitfield": false, + "values": [ + { + "name": "DOCK_SLOT_LEFT_UL", + "value": 0 + }, + { + "name": "DOCK_SLOT_LEFT_BL", + "value": 1 + }, + { + "name": "DOCK_SLOT_LEFT_UR", + "value": 2 + }, + { + "name": "DOCK_SLOT_LEFT_BR", + "value": 3 + }, + { + "name": "DOCK_SLOT_RIGHT_UL", + "value": 4 + }, + { + "name": "DOCK_SLOT_RIGHT_BL", + "value": 5 + }, + { + "name": "DOCK_SLOT_RIGHT_UR", + "value": 6 + }, + { + "name": "DOCK_SLOT_RIGHT_BR", + "value": 7 + }, + { + "name": "DOCK_SLOT_MAX", + "value": 8 + } + ] + }, + { + "name": "AfterGUIInput", + "is_bitfield": false, + "values": [ + { + "name": "AFTER_GUI_INPUT_PASS", + "value": 0 + }, + { + "name": "AFTER_GUI_INPUT_STOP", + "value": 1 + }, + { + "name": "AFTER_GUI_INPUT_CUSTOM", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_forward_canvas_gui_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "_forward_canvas_draw_over_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "viewport_control", + "type": "Control" + } + ] + }, + { + "name": "_forward_canvas_force_draw_over_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "viewport_control", + "type": "Control" + } + ] + }, + { + "name": "_forward_3d_gui_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "viewport_camera", + "type": "Camera3D" + }, + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "_forward_3d_draw_over_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "viewport_control", + "type": "Control" + } + ] + }, + { + "name": "_forward_3d_force_draw_over_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "viewport_control", + "type": "Control" + } + ] + }, + { + "name": "_get_plugin_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_plugin_icon", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "_has_main_screen", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_make_visible", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "_edit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "_handles", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "_get_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_set_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "state", + "type": "Dictionary" + } + ] + }, + { + "name": "_clear", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_save_external_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_apply_changes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_breakpoints", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_set_window_layout", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "configuration", + "type": "ConfigFile" + } + ] + }, + { + "name": "_get_window_layout", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "configuration", + "type": "ConfigFile" + } + ] + }, + { + "name": "_build", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_enable_plugin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_disable_plugin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "add_control_to_container", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3092750152, + "arguments": [ + { + "name": "container", + "type": "enum::EditorPlugin.CustomControlContainer" + }, + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "add_control_to_bottom_panel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3526039376, + "return_value": { + "type": "Button" + }, + "arguments": [ + { + "name": "control", + "type": "Control" + }, + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "add_control_to_dock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3354871258, + "arguments": [ + { + "name": "slot", + "type": "enum::EditorPlugin.DockSlot" + }, + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "remove_control_from_docks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "remove_control_from_bottom_panel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "remove_control_from_container", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3092750152, + "arguments": [ + { + "name": "container", + "type": "enum::EditorPlugin.CustomControlContainer" + }, + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "add_tool_menu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2137474292, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "add_tool_submenu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1019428915, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "submenu", + "type": "PopupMenu" + } + ] + }, + { + "name": "remove_tool_menu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_export_as_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1775878644, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "add_custom_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1986814599, + "arguments": [ + { + "name": "type", + "type": "String" + }, + { + "name": "base", + "type": "String" + }, + { + "name": "script", + "type": "Script" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "remove_custom_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "add_autoload_singleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3186203200, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "remove_autoload_singleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "update_overlays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "make_bottom_panel_item_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "item", + "type": "Control" + } + ] + }, + { + "name": "hide_bottom_panel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_undo_redo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 773492341, + "return_value": { + "type": "EditorUndoRedoManager" + } + }, + { + "name": "add_undo_redo_inspector_hook_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "remove_undo_redo_inspector_hook_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "queue_save_layout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_translation_parser_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3116463128, + "arguments": [ + { + "name": "parser", + "type": "EditorTranslationParserPlugin" + } + ] + }, + { + "name": "remove_translation_parser_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3116463128, + "arguments": [ + { + "name": "parser", + "type": "EditorTranslationParserPlugin" + } + ] + }, + { + "name": "add_import_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3113975762, + "arguments": [ + { + "name": "importer", + "type": "EditorImportPlugin" + }, + { + "name": "first_priority", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_import_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312482773, + "arguments": [ + { + "name": "importer", + "type": "EditorImportPlugin" + } + ] + }, + { + "name": "add_scene_format_importer_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2764104752, + "arguments": [ + { + "name": "scene_format_importer", + "type": "EditorSceneFormatImporter" + }, + { + "name": "first_priority", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_scene_format_importer_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2637776123, + "arguments": [ + { + "name": "scene_format_importer", + "type": "EditorSceneFormatImporter" + } + ] + }, + { + "name": "add_scene_post_import_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3492436322, + "arguments": [ + { + "name": "scene_import_plugin", + "type": "EditorScenePostImportPlugin" + }, + { + "name": "first_priority", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_scene_post_import_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3045178206, + "arguments": [ + { + "name": "scene_import_plugin", + "type": "EditorScenePostImportPlugin" + } + ] + }, + { + "name": "add_export_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4095952207, + "arguments": [ + { + "name": "plugin", + "type": "EditorExportPlugin" + } + ] + }, + { + "name": "remove_export_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4095952207, + "arguments": [ + { + "name": "plugin", + "type": "EditorExportPlugin" + } + ] + }, + { + "name": "add_node_3d_gizmo_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1541015022, + "arguments": [ + { + "name": "plugin", + "type": "EditorNode3DGizmoPlugin" + } + ] + }, + { + "name": "remove_node_3d_gizmo_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1541015022, + "arguments": [ + { + "name": "plugin", + "type": "EditorNode3DGizmoPlugin" + } + ] + }, + { + "name": "add_inspector_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 546395733, + "arguments": [ + { + "name": "plugin", + "type": "EditorInspectorPlugin" + } + ] + }, + { + "name": "remove_inspector_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 546395733, + "arguments": [ + { + "name": "plugin", + "type": "EditorInspectorPlugin" + } + ] + }, + { + "name": "add_resource_conversion_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2124849111, + "arguments": [ + { + "name": "plugin", + "type": "EditorResourceConversionPlugin" + } + ] + }, + { + "name": "remove_resource_conversion_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2124849111, + "arguments": [ + { + "name": "plugin", + "type": "EditorResourceConversionPlugin" + } + ] + }, + { + "name": "set_input_event_forwarding_always_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_force_draw_over_forwarding_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_editor_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4223731786, + "return_value": { + "type": "EditorInterface" + } + }, + { + "name": "get_script_create_dialog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3121871482, + "return_value": { + "type": "ScriptCreateDialog" + } + }, + { + "name": "add_debugger_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3749880309, + "arguments": [ + { + "name": "script", + "type": "EditorDebuggerPlugin" + } + ] + }, + { + "name": "remove_debugger_plugin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3749880309, + "arguments": [ + { + "name": "script", + "type": "EditorDebuggerPlugin" + } + ] + } + ], + "signals": [ + { + "name": "scene_changed", + "arguments": [ + { + "name": "scene_root", + "type": "Node" + } + ] + }, + { + "name": "scene_closed", + "arguments": [ + { + "name": "filepath", + "type": "String" + } + ] + }, + { + "name": "main_screen_changed", + "arguments": [ + { + "name": "screen_name", + "type": "String" + } + ] + }, + { + "name": "resource_saved", + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "project_settings_changed" + } + ] + }, + { + "name": "EditorProperty", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Container", + "api_type": "editor", + "methods": [ + { + "name": "_update_property", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_set_read_only", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "read_only", + "type": "bool" + } + ] + }, + { + "name": "set_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_read_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "read_only", + "type": "bool" + } + ] + }, + { + "name": "is_read_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "checkable", + "type": "bool" + } + ] + }, + { + "name": "is_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "is_checked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_warning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draw_warning", + "type": "bool" + } + ] + }, + { + "name": "is_draw_warning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_keying", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "keying", + "type": "bool" + } + ] + }, + { + "name": "is_keying", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_deletable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "deletable", + "type": "bool" + } + ] + }, + { + "name": "is_deletable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_edited_property", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_edited_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2050059866, + "return_value": { + "type": "Object" + } + }, + { + "name": "update_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_focusable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "set_bottom_editor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "editor", + "type": "Control" + } + ] + }, + { + "name": "emit_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3069422438, + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "field", + "type": "StringName", + "default_value": "&\"\"" + }, + { + "name": "changing", + "type": "bool", + "default_value": "false" + } + ] + } + ], + "signals": [ + { + "name": "property_changed", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "field", + "type": "StringName" + }, + { + "name": "changing", + "type": "bool" + } + ] + }, + { + "name": "multiple_properties_changed", + "arguments": [ + { + "name": "properties", + "type": "PackedStringArray" + }, + { + "name": "value", + "type": "Array" + } + ] + }, + { + "name": "property_keyed", + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "property_deleted", + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "property_keyed_with_value", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "property_checked", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "property_pinned", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "pinned", + "type": "bool" + } + ] + }, + { + "name": "property_can_revert_changed", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "can_revert", + "type": "bool" + } + ] + }, + { + "name": "resource_selected", + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "object_id_selected", + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "selected", + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "focusable_idx", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "label", + "setter": "set_label", + "getter": "get_label" + }, + { + "type": "bool", + "name": "read_only", + "setter": "set_read_only", + "getter": "is_read_only" + }, + { + "type": "bool", + "name": "checkable", + "setter": "set_checkable", + "getter": "is_checkable" + }, + { + "type": "bool", + "name": "checked", + "setter": "set_checked", + "getter": "is_checked" + }, + { + "type": "bool", + "name": "draw_warning", + "setter": "set_draw_warning", + "getter": "is_draw_warning" + }, + { + "type": "bool", + "name": "keying", + "setter": "set_keying", + "getter": "is_keying" + }, + { + "type": "bool", + "name": "deletable", + "setter": "set_deletable", + "getter": "is_deletable" + } + ] + }, + { + "name": "EditorResourceConversionPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_converts_to", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_handles", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "_convert", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + } + ] + }, + { + "name": "EditorResourcePicker", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "HBoxContainer", + "api_type": "editor", + "methods": [ + { + "name": "_set_create_options", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "menu_node", + "type": "Object" + } + ] + }, + { + "name": "_handle_menu_selected", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_base_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "base_type", + "type": "String" + } + ] + }, + { + "name": "get_base_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_allowed_types", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_edited_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "get_edited_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2674603643, + "return_value": { + "type": "Resource" + } + }, + { + "name": "set_toggle_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_toggle_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_toggle_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_editable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "resource_selected", + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "inspect", + "type": "bool" + } + ] + }, + { + "name": "resource_changed", + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "base_type", + "setter": "set_base_type", + "getter": "get_base_type" + }, + { + "type": "Resource", + "name": "edited_resource", + "setter": "set_edited_resource", + "getter": "get_edited_resource" + }, + { + "type": "bool", + "name": "editable", + "setter": "set_editable", + "getter": "is_editable" + }, + { + "type": "bool", + "name": "toggle_mode", + "setter": "set_toggle_mode", + "getter": "is_toggle_mode" + } + ] + }, + { + "name": "EditorResourcePreview", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "editor", + "methods": [ + { + "name": "queue_resource_preview", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 233177534, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "receiver", + "type": "Object" + }, + { + "name": "receiver_func", + "type": "StringName" + }, + { + "name": "userdata", + "type": "Variant" + } + ] + }, + { + "name": "queue_edited_resource_preview", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1608376650, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "receiver", + "type": "Object" + }, + { + "name": "receiver_func", + "type": "StringName" + }, + { + "name": "userdata", + "type": "Variant" + } + ] + }, + { + "name": "add_preview_generator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 332288124, + "arguments": [ + { + "name": "generator", + "type": "EditorResourcePreviewGenerator" + } + ] + }, + { + "name": "remove_preview_generator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 332288124, + "arguments": [ + { + "name": "generator", + "type": "EditorResourcePreviewGenerator" + } + ] + }, + { + "name": "check_for_invalidation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ], + "signals": [ + { + "name": "preview_invalidated", + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "EditorResourcePreviewGenerator", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_handles", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "_generate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_generate_from_path", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_generate_small_preview_automatically", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_can_generate_small_preview", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "EditorSceneFormatImporter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "constants": [ + { + "name": "IMPORT_SCENE", + "value": 1 + }, + { + "name": "IMPORT_ANIMATION", + "value": 2 + }, + { + "name": "IMPORT_FAIL_ON_MISSING_DEPENDENCIES", + "value": 4 + }, + { + "name": "IMPORT_GENERATE_TANGENT_ARRAYS", + "value": 8 + }, + { + "name": "IMPORT_USE_NAMED_SKIN_BINDS", + "value": 16 + }, + { + "name": "IMPORT_DISCARD_MESHES_AND_MATERIALS", + "value": 32 + } + ], + "methods": [ + { + "name": "_get_import_flags", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_get_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_import_scene", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + }, + { + "name": "options", + "type": "Dictionary" + } + ] + }, + { + "name": "_get_import_options", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_option_visibility", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "for_animation", + "type": "bool" + }, + { + "name": "option", + "type": "String" + } + ] + } + ] + }, + { + "name": "EditorSceneFormatImporterBlend", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "EditorSceneFormatImporter", + "api_type": "editor" + }, + { + "name": "EditorSceneFormatImporterFBX", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "EditorSceneFormatImporter", + "api_type": "editor" + }, + { + "name": "EditorSceneFormatImporterGLTF", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "EditorSceneFormatImporter", + "api_type": "editor" + }, + { + "name": "EditorScenePostImport", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_post_import", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "scene", + "type": "Node" + } + ] + }, + { + "name": "get_source_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ] + }, + { + "name": "EditorScenePostImportPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "enums": [ + { + "name": "InternalImportCategory", + "is_bitfield": false, + "values": [ + { + "name": "INTERNAL_IMPORT_CATEGORY_NODE", + "value": 0 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE", + "value": 1 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_MESH", + "value": 2 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_MATERIAL", + "value": 3 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_ANIMATION", + "value": 4 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE", + "value": 5 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE", + "value": 6 + }, + { + "name": "INTERNAL_IMPORT_CATEGORY_MAX", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "_get_internal_import_options", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "category", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_internal_option_visibility", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "category", + "type": "int", + "meta": "int32" + }, + { + "name": "for_animation", + "type": "bool" + }, + { + "name": "option", + "type": "String" + } + ] + }, + { + "name": "_get_internal_option_update_view_required", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "category", + "type": "int", + "meta": "int32" + }, + { + "name": "option", + "type": "String" + } + ] + }, + { + "name": "_internal_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "category", + "type": "int", + "meta": "int32" + }, + { + "name": "base_node", + "type": "Node" + }, + { + "name": "node", + "type": "Node" + }, + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "_get_import_options", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_option_visibility", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "for_animation", + "type": "bool" + }, + { + "name": "option", + "type": "String" + } + ] + }, + { + "name": "_pre_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "scene", + "type": "Node" + } + ] + }, + { + "name": "_post_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "scene", + "type": "Node" + } + ] + }, + { + "name": "get_option_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "add_import_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 402577236, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_import_option_advanced", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3774155785, + "arguments": [ + { + "name": "type", + "type": "enum::Variant.Type" + }, + { + "name": "name", + "type": "String" + }, + { + "name": "default_value", + "type": "Variant" + }, + { + "name": "hint", + "type": "enum::PropertyHint", + "default_value": "0" + }, + { + "name": "hint_string", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "usage_flags", + "type": "int", + "meta": "int32", + "default_value": "6" + } + ] + } + ] + }, + { + "name": "EditorScript", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_run", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "add_root_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1818953479, + "return_value": { + "type": "Node" + } + }, + { + "name": "get_editor_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4223731786, + "return_value": { + "type": "EditorInterface" + } + } + ] + }, + { + "name": "EditorScriptPicker", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "EditorResourcePicker", + "api_type": "editor", + "methods": [ + { + "name": "set_script_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "owner_node", + "type": "Node" + } + ] + }, + { + "name": "get_script_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + } + ], + "properties": [ + { + "type": "Node", + "name": "script_owner", + "setter": "set_script_owner", + "getter": "get_script_owner" + } + ] + }, + { + "name": "EditorSelection", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "editor", + "methods": [ + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "remove_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_selected_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Node" + } + }, + { + "name": "get_transformable_selected_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Node" + } + } + ], + "signals": [ + { + "name": "selection_changed" + } + ] + }, + { + "name": "EditorSettings", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "editor", + "constants": [ + { + "name": "NOTIFICATION_EDITOR_SETTINGS_CHANGED", + "value": 10000 + } + ], + "methods": [ + { + "name": "has_setting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_setting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 402577236, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_setting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1868160156, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "erase", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "property", + "type": "String" + } + ] + }, + { + "name": "set_initial_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1529169264, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "update_current", + "type": "bool" + } + ] + }, + { + "name": "add_property_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "info", + "type": "Dictionary" + } + ] + }, + { + "name": "set_project_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2504492430, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "get_project_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 89809366, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "section", + "type": "String" + }, + { + "name": "key", + "type": "String" + }, + { + "name": "default", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "set_favorites", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "dirs", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_favorites", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_recent_dirs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "dirs", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_recent_dirs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_builtin_action_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1209351045, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "actions_list", + "type": "typedarray::InputEvent" + } + ] + }, + { + "name": "check_changed_settings_in_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "setting_prefix", + "type": "String" + } + ] + }, + { + "name": "get_changed_settings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "mark_setting_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "setting", + "type": "String" + } + ] + } + ], + "signals": [ + { + "name": "settings_changed" + } + ] + }, + { + "name": "EditorSpinSlider", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Range", + "api_type": "editor", + "methods": [ + { + "name": "set_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "label", + "type": "String" + } + ] + }, + { + "name": "get_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_suffix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "suffix", + "type": "String" + } + ] + }, + { + "name": "get_suffix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_read_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "read_only", + "type": "bool" + } + ] + }, + { + "name": "is_read_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flat", + "type": "bool" + } + ] + }, + { + "name": "is_flat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hide_slider", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "hide_slider", + "type": "bool" + } + ] + }, + { + "name": "is_hiding_slider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "grabbed" + }, + { + "name": "ungrabbed" + }, + { + "name": "value_focus_entered" + }, + { + "name": "value_focus_exited" + } + ], + "properties": [ + { + "type": "String", + "name": "label", + "setter": "set_label", + "getter": "get_label" + }, + { + "type": "String", + "name": "suffix", + "setter": "set_suffix", + "getter": "get_suffix" + }, + { + "type": "bool", + "name": "read_only", + "setter": "set_read_only", + "getter": "is_read_only" + }, + { + "type": "bool", + "name": "flat", + "setter": "set_flat", + "getter": "is_flat" + }, + { + "type": "bool", + "name": "hide_slider", + "setter": "set_hide_slider", + "getter": "is_hiding_slider" + } + ] + }, + { + "name": "EditorSyntaxHighlighter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "SyntaxHighlighter", + "api_type": "editor", + "methods": [ + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_supported_languages", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + } + ] + }, + { + "name": "EditorTranslationParserPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "editor", + "methods": [ + { + "name": "_parse_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "msgids", + "type": "typedarray::String" + }, + { + "name": "msgids_context_plural", + "type": "typedarray::Array" + } + ] + }, + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + } + ] + }, + { + "name": "EditorUndoRedoManager", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "editor", + "enums": [ + { + "name": "SpecialHistory", + "is_bitfield": false, + "values": [ + { + "name": "GLOBAL_HISTORY", + "value": 0 + }, + { + "name": "REMOTE_HISTORY", + "value": -9 + }, + { + "name": "INVALID_HISTORY", + "value": -99 + } + ] + } + ], + "methods": [ + { + "name": "create_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3766330317, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "merge_mode", + "type": "enum::UndoRedo.MergeMode", + "default_value": "0" + }, + { + "name": "custom_context", + "type": "Object", + "default_value": "null" + } + ] + }, + { + "name": "commit_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "execute", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_committing_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_do_method", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 1517810467, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "add_undo_method", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 1517810467, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "add_do_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017172818, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_undo_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017172818, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_do_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975164845, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "add_undo_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975164845, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "get_object_history_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1107568780, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "get_history_undo_redo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2417974513, + "return_value": { + "type": "UndoRedo" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "history_changed" + }, + { + "name": "version_changed" + } + ] + }, + { + "name": "EditorVCSInterface", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "editor", + "enums": [ + { + "name": "ChangeType", + "is_bitfield": false, + "values": [ + { + "name": "CHANGE_TYPE_NEW", + "value": 0 + }, + { + "name": "CHANGE_TYPE_MODIFIED", + "value": 1 + }, + { + "name": "CHANGE_TYPE_RENAMED", + "value": 2 + }, + { + "name": "CHANGE_TYPE_DELETED", + "value": 3 + }, + { + "name": "CHANGE_TYPE_TYPECHANGE", + "value": 4 + }, + { + "name": "CHANGE_TYPE_UNMERGED", + "value": 5 + } + ] + }, + { + "name": "TreeArea", + "is_bitfield": false, + "values": [ + { + "name": "TREE_AREA_COMMIT", + "value": 0 + }, + { + "name": "TREE_AREA_STAGED", + "value": 1 + }, + { + "name": "TREE_AREA_UNSTAGED", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_initialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "project_path", + "type": "String" + } + ] + }, + { + "name": "_set_credentials", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "username", + "type": "String" + }, + { + "name": "password", + "type": "String" + }, + { + "name": "ssh_public_key_path", + "type": "String" + }, + { + "name": "ssh_private_key_path", + "type": "String" + }, + { + "name": "ssh_passphrase", + "type": "String" + } + ] + }, + { + "name": "_get_modified_files_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_stage_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "file_path", + "type": "String" + } + ] + }, + { + "name": "_unstage_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "file_path", + "type": "String" + } + ] + }, + { + "name": "_discard_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "file_path", + "type": "String" + } + ] + }, + { + "name": "_commit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "msg", + "type": "String" + } + ] + }, + { + "name": "_get_diff", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "identifier", + "type": "String" + }, + { + "name": "area", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_shut_down", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_vcs_name", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_previous_commits", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "max_commits", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_branch_list", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "_get_remotes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "_create_branch", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "branch_name", + "type": "String" + } + ] + }, + { + "name": "_remove_branch", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "branch_name", + "type": "String" + } + ] + }, + { + "name": "_create_remote", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "remote_name", + "type": "String" + }, + { + "name": "remote_url", + "type": "String" + } + ] + }, + { + "name": "_remove_remote", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "remote_name", + "type": "String" + } + ] + }, + { + "name": "_get_current_branch_name", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_checkout_branch", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "branch_name", + "type": "String" + } + ] + }, + { + "name": "_pull", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "remote", + "type": "String" + } + ] + }, + { + "name": "_push", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "remote", + "type": "String" + }, + { + "name": "force", + "type": "bool" + } + ] + }, + { + "name": "_fetch", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "remote", + "type": "String" + } + ] + }, + { + "name": "_get_line_diff", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "file_path", + "type": "String" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "create_diff_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2901184053, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "new_line_no", + "type": "int", + "meta": "int32" + }, + { + "name": "old_line_no", + "type": "int", + "meta": "int32" + }, + { + "name": "content", + "type": "String" + }, + { + "name": "status", + "type": "String" + } + ] + }, + { + "name": "create_diff_hunk", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3784842090, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "old_start", + "type": "int", + "meta": "int32" + }, + { + "name": "new_start", + "type": "int", + "meta": "int32" + }, + { + "name": "old_lines", + "type": "int", + "meta": "int32" + }, + { + "name": "new_lines", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_diff_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2723227684, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "new_file", + "type": "String" + }, + { + "name": "old_file", + "type": "String" + } + ] + }, + { + "name": "create_commit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1075983584, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "msg", + "type": "String" + }, + { + "name": "author", + "type": "String" + }, + { + "name": "id", + "type": "String" + }, + { + "name": "unix_timestamp", + "type": "int", + "meta": "int64" + }, + { + "name": "offset_minutes", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "create_status_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1083471673, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "file_path", + "type": "String" + }, + { + "name": "change_type", + "type": "enum::EditorVCSInterface.ChangeType" + }, + { + "name": "area", + "type": "enum::EditorVCSInterface.TreeArea" + } + ] + }, + { + "name": "add_diff_hunks_into_diff_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015243225, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "diff_file", + "type": "Dictionary" + }, + { + "name": "diff_hunks", + "type": "typedarray::Dictionary" + } + ] + }, + { + "name": "add_line_diffs_into_diff_hunk", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015243225, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "diff_hunk", + "type": "Dictionary" + }, + { + "name": "line_diffs", + "type": "typedarray::Dictionary" + } + ] + }, + { + "name": "popup_error", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "msg", + "type": "String" + } + ] + } + ] + }, + { + "name": "EncodedObjectAsID", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_object_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_object_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + } + ], + "properties": [ + { + "type": "int", + "name": "object_id", + "setter": "set_object_id", + "getter": "get_object_id" + } + ] + }, + { + "name": "Engine", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "set_physics_ticks_per_second", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "physics_ticks_per_second", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_physics_ticks_per_second", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_physics_steps_per_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_physics_steps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_physics_steps_per_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_physics_jitter_fix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "physics_jitter_fix", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_physics_jitter_fix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_physics_interpolation_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_max_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_time_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time_scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_time_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_frames_drawn", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_frames_per_second", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_physics_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_process_frames", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_main_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1016888095, + "return_value": { + "type": "MainLoop" + } + }, + { + "name": "get_version_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_author_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_copyright_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_donor_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_license_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_license_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_architecture_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_in_physics_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_singleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_singleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1371597918, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "register_singleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 965313290, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "instance", + "type": "Object" + } + ] + }, + { + "name": "unregister_singleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_singleton_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "register_script_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1850254898, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "language", + "type": "ScriptLanguage" + } + ] + }, + { + "name": "unregister_script_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1850254898, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "language", + "type": "ScriptLanguage" + } + ] + }, + { + "name": "get_script_language_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_script_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2151255799, + "return_value": { + "type": "ScriptLanguage" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_editor_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_write_movie_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_print_error_messages", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_printing_error_messages", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "print_error_messages", + "setter": "set_print_error_messages", + "getter": "is_printing_error_messages" + }, + { + "type": "int", + "name": "physics_ticks_per_second", + "setter": "set_physics_ticks_per_second", + "getter": "get_physics_ticks_per_second" + }, + { + "type": "int", + "name": "max_physics_steps_per_frame", + "setter": "set_max_physics_steps_per_frame", + "getter": "get_max_physics_steps_per_frame" + }, + { + "type": "int", + "name": "max_fps", + "setter": "set_max_fps", + "getter": "get_max_fps" + }, + { + "type": "float", + "name": "time_scale", + "setter": "set_time_scale", + "getter": "get_time_scale" + }, + { + "type": "float", + "name": "physics_jitter_fix", + "setter": "set_physics_jitter_fix", + "getter": "get_physics_jitter_fix" + } + ] + }, + { + "name": "EngineDebugger", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "is_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "register_profiler", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3651669560, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "profiler", + "type": "EngineProfiler" + } + ] + }, + { + "name": "unregister_profiler", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "is_profiling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2041966384, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_profiler", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2041966384, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "profiler_add_frame_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1895267858, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "data", + "type": "Array" + } + ] + }, + { + "name": "profiler_enable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 438160728, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "arguments", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "register_message_capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1874754934, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "unregister_message_capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_capture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2041966384, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "send_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1209351045, + "arguments": [ + { + "name": "message", + "type": "String" + }, + { + "name": "data", + "type": "Array" + } + ] + } + ] + }, + { + "name": "EngineProfiler", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_toggle", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enable", + "type": "bool" + }, + { + "name": "options", + "type": "Array" + } + ] + }, + { + "name": "_add_frame", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "data", + "type": "Array" + } + ] + }, + { + "name": "_tick", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "frame_time", + "type": "float", + "meta": "double" + }, + { + "name": "process_time", + "type": "float", + "meta": "double" + }, + { + "name": "physics_time", + "type": "float", + "meta": "double" + }, + { + "name": "physics_frame_time", + "type": "float", + "meta": "double" + } + ] + } + ] + }, + { + "name": "Environment", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "BGMode", + "is_bitfield": false, + "values": [ + { + "name": "BG_CLEAR_COLOR", + "value": 0 + }, + { + "name": "BG_COLOR", + "value": 1 + }, + { + "name": "BG_SKY", + "value": 2 + }, + { + "name": "BG_CANVAS", + "value": 3 + }, + { + "name": "BG_KEEP", + "value": 4 + }, + { + "name": "BG_CAMERA_FEED", + "value": 5 + }, + { + "name": "BG_MAX", + "value": 6 + } + ] + }, + { + "name": "AmbientSource", + "is_bitfield": false, + "values": [ + { + "name": "AMBIENT_SOURCE_BG", + "value": 0 + }, + { + "name": "AMBIENT_SOURCE_DISABLED", + "value": 1 + }, + { + "name": "AMBIENT_SOURCE_COLOR", + "value": 2 + }, + { + "name": "AMBIENT_SOURCE_SKY", + "value": 3 + } + ] + }, + { + "name": "ReflectionSource", + "is_bitfield": false, + "values": [ + { + "name": "REFLECTION_SOURCE_BG", + "value": 0 + }, + { + "name": "REFLECTION_SOURCE_DISABLED", + "value": 1 + }, + { + "name": "REFLECTION_SOURCE_SKY", + "value": 2 + } + ] + }, + { + "name": "ToneMapper", + "is_bitfield": false, + "values": [ + { + "name": "TONE_MAPPER_LINEAR", + "value": 0 + }, + { + "name": "TONE_MAPPER_REINHARDT", + "value": 1 + }, + { + "name": "TONE_MAPPER_FILMIC", + "value": 2 + }, + { + "name": "TONE_MAPPER_ACES", + "value": 3 + } + ] + }, + { + "name": "GlowBlendMode", + "is_bitfield": false, + "values": [ + { + "name": "GLOW_BLEND_MODE_ADDITIVE", + "value": 0 + }, + { + "name": "GLOW_BLEND_MODE_SCREEN", + "value": 1 + }, + { + "name": "GLOW_BLEND_MODE_SOFTLIGHT", + "value": 2 + }, + { + "name": "GLOW_BLEND_MODE_REPLACE", + "value": 3 + }, + { + "name": "GLOW_BLEND_MODE_MIX", + "value": 4 + } + ] + }, + { + "name": "SDFGIYScale", + "is_bitfield": false, + "values": [ + { + "name": "SDFGI_Y_SCALE_50_PERCENT", + "value": 0 + }, + { + "name": "SDFGI_Y_SCALE_75_PERCENT", + "value": 1 + }, + { + "name": "SDFGI_Y_SCALE_100_PERCENT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_background", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4071623990, + "arguments": [ + { + "name": "mode", + "type": "enum::Environment.BGMode" + } + ] + }, + { + "name": "get_background", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1843210413, + "return_value": { + "type": "enum::Environment.BGMode" + } + }, + { + "name": "set_sky", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3336722921, + "arguments": [ + { + "name": "sky", + "type": "Sky" + } + ] + }, + { + "name": "get_sky", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1177136966, + "return_value": { + "type": "Sky" + } + }, + { + "name": "set_sky_custom_fov", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sky_custom_fov", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sky_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler_radians", + "type": "Vector3" + } + ] + }, + { + "name": "get_sky_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_bg_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_bg_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bg_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bg_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bg_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_canvas_max_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_canvas_max_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_camera_feed_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_camera_feed_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_ambient_light_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_ambient_light_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_ambient_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2607780160, + "arguments": [ + { + "name": "source", + "type": "enum::Environment.AmbientSource" + } + ] + }, + { + "name": "get_ambient_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 67453933, + "return_value": { + "type": "enum::Environment.AmbientSource" + } + }, + { + "name": "set_ambient_light_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ambient_light_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ambient_light_sky_contribution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ambient_light_sky_contribution", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_reflection_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 299673197, + "arguments": [ + { + "name": "source", + "type": "enum::Environment.ReflectionSource" + } + ] + }, + { + "name": "get_reflection_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 777700713, + "return_value": { + "type": "enum::Environment.ReflectionSource" + } + }, + { + "name": "set_tonemapper", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509116664, + "arguments": [ + { + "name": "mode", + "type": "enum::Environment.ToneMapper" + } + ] + }, + { + "name": "get_tonemapper", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2908408137, + "return_value": { + "type": "enum::Environment.ToneMapper" + } + }, + { + "name": "set_tonemap_exposure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "exposure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tonemap_exposure", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_tonemap_white", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "white", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tonemap_white", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssr_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_ssr_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ssr_max_steps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_steps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ssr_max_steps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_ssr_fade_in", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fade_in", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssr_fade_in", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssr_fade_out", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fade_out", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssr_fade_out", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssr_depth_tolerance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth_tolerance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssr_depth_tolerance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_ssao_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ssao_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_power", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "power", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_power", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_detail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "detail", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_detail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_horizon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "horizon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_horizon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_direct_light_affect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_direct_light_affect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssao_ao_channel_affect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssao_ao_channel_affect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssil_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_ssil_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ssil_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssil_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssil_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssil_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssil_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssil_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ssil_normal_rejection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "normal_rejection", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ssil_normal_rejection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_sdfgi_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sdfgi_cascades", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sdfgi_cascades", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sdfgi_min_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_min_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_cascade0_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_cascade0_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_y_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3608608372, + "arguments": [ + { + "name": "scale", + "type": "enum::Environment.SDFGIYScale" + } + ] + }, + { + "name": "get_sdfgi_y_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2568002245, + "return_value": { + "type": "enum::Environment.SDFGIYScale" + } + }, + { + "name": "set_sdfgi_use_occlusion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_sdfgi_using_occlusion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sdfgi_bounce_feedback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_bounce_feedback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_read_sky_light", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_sdfgi_reading_sky_light", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sdfgi_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_normal_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_normal_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sdfgi_probe_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sdfgi_probe_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_glow_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_glow_level", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glow_normalized", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "normalize", + "type": "bool" + } + ] + }, + { + "name": "is_glow_normalized", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_glow_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mix", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_mix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_bloom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_bloom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2561587761, + "arguments": [ + { + "name": "mode", + "type": "enum::Environment.GlowBlendMode" + } + ] + }, + { + "name": "get_glow_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1529667332, + "return_value": { + "type": "enum::Environment.GlowBlendMode" + } + }, + { + "name": "set_glow_hdr_bleed_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_hdr_bleed_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_hdr_bleed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_hdr_bleed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_hdr_luminance_cap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_hdr_luminance_cap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_map_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_glow_map_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_glow_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1790811099, + "arguments": [ + { + "name": "mode", + "type": "Texture" + } + ] + }, + { + "name": "get_glow_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4037048985, + "return_value": { + "type": "Texture" + } + }, + { + "name": "set_fog_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_fog_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_fog_light_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "light_color", + "type": "Color" + } + ] + }, + { + "name": "get_fog_light_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_fog_light_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "light_energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_light_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_sun_scatter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sun_scatter", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_sun_scatter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_density", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "density", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_density", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_height_density", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height_density", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_height_density", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_aerial_perspective", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "aerial_perspective", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_aerial_perspective", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fog_sky_affect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sky_affect", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fog_sky_affect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_volumetric_fog_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_volumetric_fog_emission", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_volumetric_fog_emission", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_volumetric_fog_albedo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_volumetric_fog_albedo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_volumetric_fog_density", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "density", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_density", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_emission_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "begin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_emission_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_anisotropy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "anisotropy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_anisotropy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_detail_spread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "detail_spread", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_detail_spread", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_gi_inject", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gi_inject", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_gi_inject", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_ambient_inject", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enabled", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_ambient_inject", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_sky_affect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sky_affect", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_sky_affect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volumetric_fog_temporal_reprojection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_volumetric_fog_temporal_reprojection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_volumetric_fog_temporal_reprojection_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "temporal_reprojection_amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volumetric_fog_temporal_reprojection_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_adjustment_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_adjustment_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_adjustment_brightness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "brightness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_adjustment_brightness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_adjustment_contrast", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "contrast", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_adjustment_contrast", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_adjustment_saturation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "saturation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_adjustment_saturation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_adjustment_color_correction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1790811099, + "arguments": [ + { + "name": "color_correction", + "type": "Texture" + } + ] + }, + { + "name": "get_adjustment_color_correction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4037048985, + "return_value": { + "type": "Texture" + } + } + ], + "properties": [ + { + "type": "int", + "name": "background_mode", + "setter": "set_background", + "getter": "get_background" + }, + { + "type": "Color", + "name": "background_color", + "setter": "set_bg_color", + "getter": "get_bg_color" + }, + { + "type": "float", + "name": "background_energy_multiplier", + "setter": "set_bg_energy_multiplier", + "getter": "get_bg_energy_multiplier" + }, + { + "type": "float", + "name": "background_intensity", + "setter": "set_bg_intensity", + "getter": "get_bg_intensity" + }, + { + "type": "int", + "name": "background_canvas_max_layer", + "setter": "set_canvas_max_layer", + "getter": "get_canvas_max_layer" + }, + { + "type": "int", + "name": "background_camera_feed_id", + "setter": "set_camera_feed_id", + "getter": "get_camera_feed_id" + }, + { + "type": "Sky", + "name": "sky", + "setter": "set_sky", + "getter": "get_sky" + }, + { + "type": "float", + "name": "sky_custom_fov", + "setter": "set_sky_custom_fov", + "getter": "get_sky_custom_fov" + }, + { + "type": "Vector3", + "name": "sky_rotation", + "setter": "set_sky_rotation", + "getter": "get_sky_rotation" + }, + { + "type": "int", + "name": "ambient_light_source", + "setter": "set_ambient_source", + "getter": "get_ambient_source" + }, + { + "type": "Color", + "name": "ambient_light_color", + "setter": "set_ambient_light_color", + "getter": "get_ambient_light_color" + }, + { + "type": "float", + "name": "ambient_light_sky_contribution", + "setter": "set_ambient_light_sky_contribution", + "getter": "get_ambient_light_sky_contribution" + }, + { + "type": "float", + "name": "ambient_light_energy", + "setter": "set_ambient_light_energy", + "getter": "get_ambient_light_energy" + }, + { + "type": "int", + "name": "reflected_light_source", + "setter": "set_reflection_source", + "getter": "get_reflection_source" + }, + { + "type": "int", + "name": "tonemap_mode", + "setter": "set_tonemapper", + "getter": "get_tonemapper" + }, + { + "type": "float", + "name": "tonemap_exposure", + "setter": "set_tonemap_exposure", + "getter": "get_tonemap_exposure" + }, + { + "type": "float", + "name": "tonemap_white", + "setter": "set_tonemap_white", + "getter": "get_tonemap_white" + }, + { + "type": "bool", + "name": "ssr_enabled", + "setter": "set_ssr_enabled", + "getter": "is_ssr_enabled" + }, + { + "type": "int", + "name": "ssr_max_steps", + "setter": "set_ssr_max_steps", + "getter": "get_ssr_max_steps" + }, + { + "type": "float", + "name": "ssr_fade_in", + "setter": "set_ssr_fade_in", + "getter": "get_ssr_fade_in" + }, + { + "type": "float", + "name": "ssr_fade_out", + "setter": "set_ssr_fade_out", + "getter": "get_ssr_fade_out" + }, + { + "type": "float", + "name": "ssr_depth_tolerance", + "setter": "set_ssr_depth_tolerance", + "getter": "get_ssr_depth_tolerance" + }, + { + "type": "bool", + "name": "ssao_enabled", + "setter": "set_ssao_enabled", + "getter": "is_ssao_enabled" + }, + { + "type": "float", + "name": "ssao_radius", + "setter": "set_ssao_radius", + "getter": "get_ssao_radius" + }, + { + "type": "float", + "name": "ssao_intensity", + "setter": "set_ssao_intensity", + "getter": "get_ssao_intensity" + }, + { + "type": "float", + "name": "ssao_power", + "setter": "set_ssao_power", + "getter": "get_ssao_power" + }, + { + "type": "float", + "name": "ssao_detail", + "setter": "set_ssao_detail", + "getter": "get_ssao_detail" + }, + { + "type": "float", + "name": "ssao_horizon", + "setter": "set_ssao_horizon", + "getter": "get_ssao_horizon" + }, + { + "type": "float", + "name": "ssao_sharpness", + "setter": "set_ssao_sharpness", + "getter": "get_ssao_sharpness" + }, + { + "type": "float", + "name": "ssao_light_affect", + "setter": "set_ssao_direct_light_affect", + "getter": "get_ssao_direct_light_affect" + }, + { + "type": "float", + "name": "ssao_ao_channel_affect", + "setter": "set_ssao_ao_channel_affect", + "getter": "get_ssao_ao_channel_affect" + }, + { + "type": "bool", + "name": "ssil_enabled", + "setter": "set_ssil_enabled", + "getter": "is_ssil_enabled" + }, + { + "type": "float", + "name": "ssil_radius", + "setter": "set_ssil_radius", + "getter": "get_ssil_radius" + }, + { + "type": "float", + "name": "ssil_intensity", + "setter": "set_ssil_intensity", + "getter": "get_ssil_intensity" + }, + { + "type": "float", + "name": "ssil_sharpness", + "setter": "set_ssil_sharpness", + "getter": "get_ssil_sharpness" + }, + { + "type": "float", + "name": "ssil_normal_rejection", + "setter": "set_ssil_normal_rejection", + "getter": "get_ssil_normal_rejection" + }, + { + "type": "bool", + "name": "sdfgi_enabled", + "setter": "set_sdfgi_enabled", + "getter": "is_sdfgi_enabled" + }, + { + "type": "bool", + "name": "sdfgi_use_occlusion", + "setter": "set_sdfgi_use_occlusion", + "getter": "is_sdfgi_using_occlusion" + }, + { + "type": "bool", + "name": "sdfgi_read_sky_light", + "setter": "set_sdfgi_read_sky_light", + "getter": "is_sdfgi_reading_sky_light" + }, + { + "type": "float", + "name": "sdfgi_bounce_feedback", + "setter": "set_sdfgi_bounce_feedback", + "getter": "get_sdfgi_bounce_feedback" + }, + { + "type": "int", + "name": "sdfgi_cascades", + "setter": "set_sdfgi_cascades", + "getter": "get_sdfgi_cascades" + }, + { + "type": "float", + "name": "sdfgi_min_cell_size", + "setter": "set_sdfgi_min_cell_size", + "getter": "get_sdfgi_min_cell_size" + }, + { + "type": "float", + "name": "sdfgi_cascade0_distance", + "setter": "set_sdfgi_cascade0_distance", + "getter": "get_sdfgi_cascade0_distance" + }, + { + "type": "float", + "name": "sdfgi_max_distance", + "setter": "set_sdfgi_max_distance", + "getter": "get_sdfgi_max_distance" + }, + { + "type": "int", + "name": "sdfgi_y_scale", + "setter": "set_sdfgi_y_scale", + "getter": "get_sdfgi_y_scale" + }, + { + "type": "float", + "name": "sdfgi_energy", + "setter": "set_sdfgi_energy", + "getter": "get_sdfgi_energy" + }, + { + "type": "float", + "name": "sdfgi_normal_bias", + "setter": "set_sdfgi_normal_bias", + "getter": "get_sdfgi_normal_bias" + }, + { + "type": "float", + "name": "sdfgi_probe_bias", + "setter": "set_sdfgi_probe_bias", + "getter": "get_sdfgi_probe_bias" + }, + { + "type": "bool", + "name": "glow_enabled", + "setter": "set_glow_enabled", + "getter": "is_glow_enabled" + }, + { + "type": "bool", + "name": "glow_normalized", + "setter": "set_glow_normalized", + "getter": "is_glow_normalized" + }, + { + "type": "float", + "name": "glow_intensity", + "setter": "set_glow_intensity", + "getter": "get_glow_intensity" + }, + { + "type": "float", + "name": "glow_strength", + "setter": "set_glow_strength", + "getter": "get_glow_strength" + }, + { + "type": "float", + "name": "glow_mix", + "setter": "set_glow_mix", + "getter": "get_glow_mix" + }, + { + "type": "float", + "name": "glow_bloom", + "setter": "set_glow_bloom", + "getter": "get_glow_bloom" + }, + { + "type": "int", + "name": "glow_blend_mode", + "setter": "set_glow_blend_mode", + "getter": "get_glow_blend_mode" + }, + { + "type": "float", + "name": "glow_hdr_threshold", + "setter": "set_glow_hdr_bleed_threshold", + "getter": "get_glow_hdr_bleed_threshold" + }, + { + "type": "float", + "name": "glow_hdr_scale", + "setter": "set_glow_hdr_bleed_scale", + "getter": "get_glow_hdr_bleed_scale" + }, + { + "type": "float", + "name": "glow_hdr_luminance_cap", + "setter": "set_glow_hdr_luminance_cap", + "getter": "get_glow_hdr_luminance_cap" + }, + { + "type": "float", + "name": "glow_map_strength", + "setter": "set_glow_map_strength", + "getter": "get_glow_map_strength" + }, + { + "type": "Texture2D", + "name": "glow_map", + "setter": "set_glow_map", + "getter": "get_glow_map" + }, + { + "type": "bool", + "name": "fog_enabled", + "setter": "set_fog_enabled", + "getter": "is_fog_enabled" + }, + { + "type": "Color", + "name": "fog_light_color", + "setter": "set_fog_light_color", + "getter": "get_fog_light_color" + }, + { + "type": "float", + "name": "fog_light_energy", + "setter": "set_fog_light_energy", + "getter": "get_fog_light_energy" + }, + { + "type": "float", + "name": "fog_sun_scatter", + "setter": "set_fog_sun_scatter", + "getter": "get_fog_sun_scatter" + }, + { + "type": "float", + "name": "fog_density", + "setter": "set_fog_density", + "getter": "get_fog_density" + }, + { + "type": "float", + "name": "fog_aerial_perspective", + "setter": "set_fog_aerial_perspective", + "getter": "get_fog_aerial_perspective" + }, + { + "type": "float", + "name": "fog_sky_affect", + "setter": "set_fog_sky_affect", + "getter": "get_fog_sky_affect" + }, + { + "type": "float", + "name": "fog_height", + "setter": "set_fog_height", + "getter": "get_fog_height" + }, + { + "type": "float", + "name": "fog_height_density", + "setter": "set_fog_height_density", + "getter": "get_fog_height_density" + }, + { + "type": "bool", + "name": "volumetric_fog_enabled", + "setter": "set_volumetric_fog_enabled", + "getter": "is_volumetric_fog_enabled" + }, + { + "type": "float", + "name": "volumetric_fog_density", + "setter": "set_volumetric_fog_density", + "getter": "get_volumetric_fog_density" + }, + { + "type": "Color", + "name": "volumetric_fog_albedo", + "setter": "set_volumetric_fog_albedo", + "getter": "get_volumetric_fog_albedo" + }, + { + "type": "Color", + "name": "volumetric_fog_emission", + "setter": "set_volumetric_fog_emission", + "getter": "get_volumetric_fog_emission" + }, + { + "type": "float", + "name": "volumetric_fog_emission_energy", + "setter": "set_volumetric_fog_emission_energy", + "getter": "get_volumetric_fog_emission_energy" + }, + { + "type": "float", + "name": "volumetric_fog_gi_inject", + "setter": "set_volumetric_fog_gi_inject", + "getter": "get_volumetric_fog_gi_inject" + }, + { + "type": "float", + "name": "volumetric_fog_anisotropy", + "setter": "set_volumetric_fog_anisotropy", + "getter": "get_volumetric_fog_anisotropy" + }, + { + "type": "float", + "name": "volumetric_fog_length", + "setter": "set_volumetric_fog_length", + "getter": "get_volumetric_fog_length" + }, + { + "type": "float", + "name": "volumetric_fog_detail_spread", + "setter": "set_volumetric_fog_detail_spread", + "getter": "get_volumetric_fog_detail_spread" + }, + { + "type": "float", + "name": "volumetric_fog_ambient_inject", + "setter": "set_volumetric_fog_ambient_inject", + "getter": "get_volumetric_fog_ambient_inject" + }, + { + "type": "float", + "name": "volumetric_fog_sky_affect", + "setter": "set_volumetric_fog_sky_affect", + "getter": "get_volumetric_fog_sky_affect" + }, + { + "type": "bool", + "name": "volumetric_fog_temporal_reprojection_enabled", + "setter": "set_volumetric_fog_temporal_reprojection_enabled", + "getter": "is_volumetric_fog_temporal_reprojection_enabled" + }, + { + "type": "float", + "name": "volumetric_fog_temporal_reprojection_amount", + "setter": "set_volumetric_fog_temporal_reprojection_amount", + "getter": "get_volumetric_fog_temporal_reprojection_amount" + }, + { + "type": "bool", + "name": "adjustment_enabled", + "setter": "set_adjustment_enabled", + "getter": "is_adjustment_enabled" + }, + { + "type": "float", + "name": "adjustment_brightness", + "setter": "set_adjustment_brightness", + "getter": "get_adjustment_brightness" + }, + { + "type": "float", + "name": "adjustment_contrast", + "setter": "set_adjustment_contrast", + "getter": "get_adjustment_contrast" + }, + { + "type": "float", + "name": "adjustment_saturation", + "setter": "set_adjustment_saturation", + "getter": "get_adjustment_saturation" + }, + { + "type": "Texture2D,Texture3D", + "name": "adjustment_color_correction", + "setter": "set_adjustment_color_correction", + "getter": "get_adjustment_color_correction" + } + ] + }, + { + "name": "Expression", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "parse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3658149758, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "expression", + "type": "String" + }, + { + "name": "input_names", + "type": "PackedStringArray", + "default_value": "PackedStringArray()" + } + ] + }, + { + "name": "execute", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3712471238, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "inputs", + "type": "Array", + "default_value": "[]" + }, + { + "name": "base_instance", + "type": "Object", + "default_value": "null" + }, + { + "name": "show_error", + "type": "bool", + "default_value": "true" + }, + { + "name": "const_calls_only", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "has_execute_failed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_error_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ] + }, + { + "name": "FastNoiseLite", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Noise", + "api_type": "core", + "enums": [ + { + "name": "NoiseType", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_VALUE", + "value": 5 + }, + { + "name": "TYPE_VALUE_CUBIC", + "value": 4 + }, + { + "name": "TYPE_PERLIN", + "value": 3 + }, + { + "name": "TYPE_CELLULAR", + "value": 2 + }, + { + "name": "TYPE_SIMPLEX", + "value": 0 + }, + { + "name": "TYPE_SIMPLEX_SMOOTH", + "value": 1 + } + ] + }, + { + "name": "FractalType", + "is_bitfield": false, + "values": [ + { + "name": "FRACTAL_NONE", + "value": 0 + }, + { + "name": "FRACTAL_FBM", + "value": 1 + }, + { + "name": "FRACTAL_RIDGED", + "value": 2 + }, + { + "name": "FRACTAL_PING_PONG", + "value": 3 + } + ] + }, + { + "name": "CellularDistanceFunction", + "is_bitfield": false, + "values": [ + { + "name": "DISTANCE_EUCLIDEAN", + "value": 0 + }, + { + "name": "DISTANCE_EUCLIDEAN_SQUARED", + "value": 1 + }, + { + "name": "DISTANCE_MANHATTAN", + "value": 2 + }, + { + "name": "DISTANCE_HYBRID", + "value": 3 + } + ] + }, + { + "name": "CellularReturnType", + "is_bitfield": false, + "values": [ + { + "name": "RETURN_CELL_VALUE", + "value": 0 + }, + { + "name": "RETURN_DISTANCE", + "value": 1 + }, + { + "name": "RETURN_DISTANCE2", + "value": 2 + }, + { + "name": "RETURN_DISTANCE2_ADD", + "value": 3 + }, + { + "name": "RETURN_DISTANCE2_SUB", + "value": 4 + }, + { + "name": "RETURN_DISTANCE2_MUL", + "value": 5 + }, + { + "name": "RETURN_DISTANCE2_DIV", + "value": 6 + } + ] + }, + { + "name": "DomainWarpType", + "is_bitfield": false, + "values": [ + { + "name": "DOMAIN_WARP_SIMPLEX", + "value": 0 + }, + { + "name": "DOMAIN_WARP_SIMPLEX_REDUCED", + "value": 1 + }, + { + "name": "DOMAIN_WARP_BASIC_GRID", + "value": 2 + } + ] + }, + { + "name": "DomainWarpFractalType", + "is_bitfield": false, + "values": [ + { + "name": "DOMAIN_WARP_FRACTAL_NONE", + "value": 0 + }, + { + "name": "DOMAIN_WARP_FRACTAL_PROGRESSIVE", + "value": 1 + }, + { + "name": "DOMAIN_WARP_FRACTAL_INDEPENDENT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_noise_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2624461392, + "arguments": [ + { + "name": "type", + "type": "enum::FastNoiseLite.NoiseType" + } + ] + }, + { + "name": "get_noise_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1458108610, + "return_value": { + "type": "enum::FastNoiseLite.NoiseType" + } + }, + { + "name": "set_seed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "seed", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_seed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_frequency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "freq", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_frequency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_fractal_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4132731174, + "arguments": [ + { + "name": "type", + "type": "enum::FastNoiseLite.FractalType" + } + ] + }, + { + "name": "get_fractal_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1036889279, + "return_value": { + "type": "enum::FastNoiseLite.FractalType" + } + }, + { + "name": "set_fractal_octaves", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "octave_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fractal_octaves", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fractal_lacunarity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "lacunarity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fractal_lacunarity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fractal_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fractal_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fractal_weighted_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "weighted_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fractal_weighted_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fractal_ping_pong_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ping_pong_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fractal_ping_pong_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_cellular_distance_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1006013267, + "arguments": [ + { + "name": "func", + "type": "enum::FastNoiseLite.CellularDistanceFunction" + } + ] + }, + { + "name": "get_cellular_distance_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2021274088, + "return_value": { + "type": "enum::FastNoiseLite.CellularDistanceFunction" + } + }, + { + "name": "set_cellular_jitter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "jitter", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cellular_jitter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_cellular_return_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2654169698, + "arguments": [ + { + "name": "ret", + "type": "enum::FastNoiseLite.CellularReturnType" + } + ] + }, + { + "name": "get_cellular_return_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3699796343, + "return_value": { + "type": "enum::FastNoiseLite.CellularReturnType" + } + }, + { + "name": "set_domain_warp_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "domain_warp_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_domain_warp_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_domain_warp_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3629692980, + "arguments": [ + { + "name": "domain_warp_type", + "type": "enum::FastNoiseLite.DomainWarpType" + } + ] + }, + { + "name": "get_domain_warp_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2980162020, + "return_value": { + "type": "enum::FastNoiseLite.DomainWarpType" + } + }, + { + "name": "set_domain_warp_amplitude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "domain_warp_amplitude", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_domain_warp_amplitude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_domain_warp_frequency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "domain_warp_frequency", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_domain_warp_frequency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_domain_warp_fractal_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3999408287, + "arguments": [ + { + "name": "domain_warp_fractal_type", + "type": "enum::FastNoiseLite.DomainWarpFractalType" + } + ] + }, + { + "name": "get_domain_warp_fractal_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 407716934, + "return_value": { + "type": "enum::FastNoiseLite.DomainWarpFractalType" + } + }, + { + "name": "set_domain_warp_fractal_octaves", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "domain_warp_octave_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_domain_warp_fractal_octaves", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_domain_warp_fractal_lacunarity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "domain_warp_lacunarity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_domain_warp_fractal_lacunarity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_domain_warp_fractal_gain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "domain_warp_gain", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_domain_warp_fractal_gain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "noise_type", + "setter": "set_noise_type", + "getter": "get_noise_type" + }, + { + "type": "int", + "name": "seed", + "setter": "set_seed", + "getter": "get_seed" + }, + { + "type": "float", + "name": "frequency", + "setter": "set_frequency", + "getter": "get_frequency" + }, + { + "type": "Vector3", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "int", + "name": "fractal_type", + "setter": "set_fractal_type", + "getter": "get_fractal_type" + }, + { + "type": "int", + "name": "fractal_octaves", + "setter": "set_fractal_octaves", + "getter": "get_fractal_octaves" + }, + { + "type": "float", + "name": "fractal_lacunarity", + "setter": "set_fractal_lacunarity", + "getter": "get_fractal_lacunarity" + }, + { + "type": "float", + "name": "fractal_gain", + "setter": "set_fractal_gain", + "getter": "get_fractal_gain" + }, + { + "type": "float", + "name": "fractal_weighted_strength", + "setter": "set_fractal_weighted_strength", + "getter": "get_fractal_weighted_strength" + }, + { + "type": "float", + "name": "fractal_ping_pong_strength", + "setter": "set_fractal_ping_pong_strength", + "getter": "get_fractal_ping_pong_strength" + }, + { + "type": "int", + "name": "cellular_distance_function", + "setter": "set_cellular_distance_function", + "getter": "get_cellular_distance_function" + }, + { + "type": "float", + "name": "cellular_jitter", + "setter": "set_cellular_jitter", + "getter": "get_cellular_jitter" + }, + { + "type": "int", + "name": "cellular_return_type", + "setter": "set_cellular_return_type", + "getter": "get_cellular_return_type" + }, + { + "type": "bool", + "name": "domain_warp_enabled", + "setter": "set_domain_warp_enabled", + "getter": "is_domain_warp_enabled" + }, + { + "type": "int", + "name": "domain_warp_type", + "setter": "set_domain_warp_type", + "getter": "get_domain_warp_type" + }, + { + "type": "float", + "name": "domain_warp_amplitude", + "setter": "set_domain_warp_amplitude", + "getter": "get_domain_warp_amplitude" + }, + { + "type": "float", + "name": "domain_warp_frequency", + "setter": "set_domain_warp_frequency", + "getter": "get_domain_warp_frequency" + }, + { + "type": "int", + "name": "domain_warp_fractal_type", + "setter": "set_domain_warp_fractal_type", + "getter": "get_domain_warp_fractal_type" + }, + { + "type": "int", + "name": "domain_warp_fractal_octaves", + "setter": "set_domain_warp_fractal_octaves", + "getter": "get_domain_warp_fractal_octaves" + }, + { + "type": "float", + "name": "domain_warp_fractal_lacunarity", + "setter": "set_domain_warp_fractal_lacunarity", + "getter": "get_domain_warp_fractal_lacunarity" + }, + { + "type": "float", + "name": "domain_warp_fractal_gain", + "setter": "set_domain_warp_fractal_gain", + "getter": "get_domain_warp_fractal_gain" + } + ] + }, + { + "name": "FileAccess", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "ModeFlags", + "is_bitfield": false, + "values": [ + { + "name": "READ", + "value": 1 + }, + { + "name": "WRITE", + "value": 2 + }, + { + "name": "READ_WRITE", + "value": 3 + }, + { + "name": "WRITE_READ", + "value": 7 + } + ] + }, + { + "name": "CompressionMode", + "is_bitfield": false, + "values": [ + { + "name": "COMPRESSION_FASTLZ", + "value": 0 + }, + { + "name": "COMPRESSION_DEFLATE", + "value": 1 + }, + { + "name": "COMPRESSION_ZSTD", + "value": 2 + }, + { + "name": "COMPRESSION_GZIP", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1247358404, + "return_value": { + "type": "FileAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "flags", + "type": "enum::FileAccess.ModeFlags" + } + ] + }, + { + "name": "open_encrypted", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1482131466, + "return_value": { + "type": "FileAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "mode_flags", + "type": "enum::FileAccess.ModeFlags" + }, + { + "name": "key", + "type": "PackedByteArray" + } + ] + }, + { + "name": "open_encrypted_with_pass", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 790283377, + "return_value": { + "type": "FileAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "mode_flags", + "type": "enum::FileAccess.ModeFlags" + }, + { + "name": "pass", + "type": "String" + } + ] + }, + { + "name": "open_compressed", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2874458257, + "return_value": { + "type": "FileAccess" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "mode_flags", + "type": "enum::FileAccess.ModeFlags" + }, + { + "name": "compression_mode", + "type": "enum::FileAccess.CompressionMode", + "default_value": "0" + } + ] + }, + { + "name": "get_open_error", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_file_as_bytes", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 659035735, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_file_as_string", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "flush", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_path_absolute", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_open", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "position", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "seek_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "position", + "type": "int", + "meta": "int64", + "default_value": "0" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "eof_reached", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_8", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint8" + } + }, + { + "name": "get_16", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint16" + } + }, + { + "name": "get_32", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_64", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_float", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_double", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_real", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4131300905, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_csv_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2358116058, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "delim", + "type": "String", + "default_value": "\",\"" + } + ] + }, + { + "name": "get_as_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1162154673, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "skip_cr", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_md5", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_sha256", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "is_big_endian", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_big_endian", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "big_endian", + "type": "bool" + } + ] + }, + { + "name": "get_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3185525595, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_var", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 189129690, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "store_8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint8" + } + ] + }, + { + "name": "store_16", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint16" + } + ] + }, + { + "name": "store_32", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "store_64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "store_float", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "store_double", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "store_real", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "store_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "store_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "line", + "type": "String" + } + ] + }, + { + "name": "store_csv_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2217842308, + "arguments": [ + { + "name": "values", + "type": "PackedStringArray" + }, + { + "name": "delim", + "type": "String", + "default_value": "\",\"" + } + ] + }, + { + "name": "store_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "store_var", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 738511890, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "full_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "store_pascal_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "get_pascal_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "file_exists", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_modified_time", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1597066294, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "big_endian", + "setter": "set_big_endian", + "getter": "is_big_endian" + } + ] + }, + { + "name": "FileDialog", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "ConfirmationDialog", + "api_type": "core", + "enums": [ + { + "name": "FileMode", + "is_bitfield": false, + "values": [ + { + "name": "FILE_MODE_OPEN_FILE", + "value": 0 + }, + { + "name": "FILE_MODE_OPEN_FILES", + "value": 1 + }, + { + "name": "FILE_MODE_OPEN_DIR", + "value": 2 + }, + { + "name": "FILE_MODE_OPEN_ANY", + "value": 3 + }, + { + "name": "FILE_MODE_SAVE_FILE", + "value": 4 + } + ] + }, + { + "name": "Access", + "is_bitfield": false, + "values": [ + { + "name": "ACCESS_RESOURCES", + "value": 0 + }, + { + "name": "ACCESS_USERDATA", + "value": 1 + }, + { + "name": "ACCESS_FILESYSTEM", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "clear_filters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 233059325, + "arguments": [ + { + "name": "filter", + "type": "String" + }, + { + "name": "description", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "set_filters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "filters", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_filters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_current_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_current_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_current_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_current_dir", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "dir", + "type": "String" + } + ] + }, + { + "name": "set_current_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "set_current_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_mode_overrides_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "override", + "type": "bool" + } + ] + }, + { + "name": "is_mode_overriding_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_file_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3654936397, + "arguments": [ + { + "name": "mode", + "type": "enum::FileDialog.FileMode" + } + ] + }, + { + "name": "get_file_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4074825319, + "return_value": { + "type": "enum::FileDialog.FileMode" + } + }, + { + "name": "get_vbox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 915758477, + "return_value": { + "type": "VBoxContainer" + } + }, + { + "name": "get_line_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4071694264, + "return_value": { + "type": "LineEdit" + } + }, + { + "name": "set_access", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4104413466, + "arguments": [ + { + "name": "access", + "type": "enum::FileDialog.Access" + } + ] + }, + { + "name": "get_access", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3344081076, + "return_value": { + "type": "enum::FileDialog.Access" + } + }, + { + "name": "set_root_subfolder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "dir", + "type": "String" + } + ] + }, + { + "name": "get_root_subfolder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_show_hidden_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "is_showing_hidden_files", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "deselect_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "invalidate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "file_selected", + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "files_selected", + "arguments": [ + { + "name": "paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "dir_selected", + "arguments": [ + { + "name": "dir", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "mode_overrides_title", + "setter": "set_mode_overrides_title", + "getter": "is_mode_overriding_title" + }, + { + "type": "int", + "name": "file_mode", + "setter": "set_file_mode", + "getter": "get_file_mode" + }, + { + "type": "int", + "name": "access", + "setter": "set_access", + "getter": "get_access" + }, + { + "type": "String", + "name": "root_subfolder", + "setter": "set_root_subfolder", + "getter": "get_root_subfolder" + }, + { + "type": "PackedStringArray", + "name": "filters", + "setter": "set_filters", + "getter": "get_filters" + }, + { + "type": "bool", + "name": "show_hidden_files", + "setter": "set_show_hidden_files", + "getter": "is_showing_hidden_files" + }, + { + "type": "String", + "name": "current_dir", + "setter": "set_current_dir", + "getter": "get_current_dir" + }, + { + "type": "String", + "name": "current_file", + "setter": "set_current_file", + "getter": "get_current_file" + }, + { + "type": "String", + "name": "current_path", + "setter": "set_current_path", + "getter": "get_current_path" + } + ] + }, + { + "name": "FileSystemDock", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "VBoxContainer", + "api_type": "editor", + "methods": [ + { + "name": "navigate_to_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ], + "signals": [ + { + "name": "inherit", + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "instantiate", + "arguments": [ + { + "name": "files", + "type": "PackedStringArray" + } + ] + }, + { + "name": "resource_removed", + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "file_removed", + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "folder_removed", + "arguments": [ + { + "name": "folder", + "type": "String" + } + ] + }, + { + "name": "files_moved", + "arguments": [ + { + "name": "old_file", + "type": "String" + }, + { + "name": "new_file", + "type": "String" + } + ] + }, + { + "name": "folder_moved", + "arguments": [ + { + "name": "old_folder", + "type": "String" + }, + { + "name": "new_folder", + "type": "String" + } + ] + }, + { + "name": "display_mode_changed" + } + ] + }, + { + "name": "FlowContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "AlignmentMode", + "is_bitfield": false, + "values": [ + { + "name": "ALIGNMENT_BEGIN", + "value": 0 + }, + { + "name": "ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "ALIGNMENT_END", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 575250951, + "arguments": [ + { + "name": "alignment", + "type": "enum::FlowContainer.AlignmentMode" + } + ] + }, + { + "name": "get_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3749743559, + "return_value": { + "type": "enum::FlowContainer.AlignmentMode" + } + }, + { + "name": "set_vertical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "vertical", + "type": "bool" + } + ] + }, + { + "name": "is_vertical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "alignment", + "setter": "set_alignment", + "getter": "get_alignment" + }, + { + "type": "bool", + "name": "vertical", + "setter": "set_vertical", + "getter": "is_vertical" + } + ] + }, + { + "name": "FogMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "methods": [ + { + "name": "set_density", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "density", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_density", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_albedo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "albedo", + "type": "Color" + } + ] + }, + { + "name": "get_albedo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_emission", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "emission", + "type": "Color" + } + ] + }, + { + "name": "get_emission", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_height_falloff", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height_falloff", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height_falloff", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_edge_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge_fade", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_edge_fade", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_density_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1188404210, + "arguments": [ + { + "name": "density_texture", + "type": "Texture3D" + } + ] + }, + { + "name": "get_density_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373985333, + "return_value": { + "type": "Texture3D" + } + } + ], + "properties": [ + { + "type": "float", + "name": "density", + "setter": "set_density", + "getter": "get_density" + }, + { + "type": "Color", + "name": "albedo", + "setter": "set_albedo", + "getter": "get_albedo" + }, + { + "type": "Color", + "name": "emission", + "setter": "set_emission", + "getter": "get_emission" + }, + { + "type": "float", + "name": "height_falloff", + "setter": "set_height_falloff", + "getter": "get_height_falloff" + }, + { + "type": "float", + "name": "edge_fade", + "setter": "set_edge_fade", + "getter": "get_edge_fade" + }, + { + "type": "Texture3D", + "name": "density_texture", + "setter": "set_density_texture", + "getter": "get_density_texture" + } + ] + }, + { + "name": "FogVolume", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1416323362, + "arguments": [ + { + "name": "shape", + "type": "enum::RenderingServer.FogVolumeShape" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3920334604, + "return_value": { + "type": "enum::RenderingServer.FogVolumeShape" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "FogMaterial,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + } + ] + }, + { + "name": "Font", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_fallbacks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "fallbacks", + "type": "typedarray::Font" + } + ] + }, + { + "name": "get_fallbacks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Font" + } + }, + { + "name": "find_variation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3705324482, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "variation_coordinates", + "type": "Dictionary" + }, + { + "name": "face_index", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "strength", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "transform", + "type": "Transform2D", + "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + } + ] + }, + { + "name": "get_rids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 378113874, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + } + ] + }, + { + "name": "get_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 378113874, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + } + ] + }, + { + "name": "get_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 378113874, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + } + ] + }, + { + "name": "get_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 378113874, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + } + ] + }, + { + "name": "get_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 378113874, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + } + ] + }, + { + "name": "get_font_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_font_style_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_font_style", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2520224254, + "return_value": { + "type": "bitfield::TextServer.FontStyle" + } + }, + { + "name": "get_font_weight", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_font_stretch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1310880908, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, + { + "name": "get_opentype_features", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_cache_capacity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "single_line", + "type": "int", + "meta": "int32" + }, + { + "name": "multi_line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_string_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3678918099, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "get_multiline_string_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2427690650, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "max_lines", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "brk_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2565402639, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_multiline_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 348869189, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "max_lines", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "brk_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_string_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 657875837, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "draw_multiline_string_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1649790182, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "alignment", + "type": "enum::HorizontalAlignment", + "default_value": "0" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32", + "default_value": "16" + }, + { + "name": "max_lines", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "brk_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "get_char_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "char", + "type": "int" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "draw_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1462476057, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "char", + "type": "int" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_char_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4161008124, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "char", + "type": "int" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "has_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "char", + "type": "int" + } + ] + }, + { + "name": "get_supported_chars", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_language_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "is_script_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "get_supported_feature_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_supported_variation_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_face_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + } + ] + }, + { + "name": "FontFile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Font", + "api_type": "core", + "methods": [ + { + "name": "load_bitmap_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "load_dynamic_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_font_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_font_style_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_font_style", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 918070724, + "arguments": [ + { + "name": "style", + "type": "bitfield::TextServer.FontStyle" + } + ] + }, + { + "name": "set_font_weight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "weight", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_font_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "stretch", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1669900, + "arguments": [ + { + "name": "antialiasing", + "type": "enum::TextServer.FontAntialiasing" + } + ] + }, + { + "name": "get_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4262718649, + "return_value": { + "type": "enum::TextServer.FontAntialiasing" + } + }, + { + "name": "set_generate_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "generate_mipmaps", + "type": "bool" + } + ] + }, + { + "name": "get_generate_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_multichannel_signed_distance_field", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "msdf", + "type": "bool" + } + ] + }, + { + "name": "is_multichannel_signed_distance_field", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_msdf_pixel_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "msdf_pixel_range", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_msdf_pixel_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_msdf_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "msdf_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_msdf_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fixed_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "fixed_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fixed_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_allow_system_fallback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow_system_fallback", + "type": "bool" + } + ] + }, + { + "name": "is_allow_system_fallback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_force_autohinter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "force_autohinter", + "type": "bool" + } + ] + }, + { + "name": "is_force_autohinter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hinting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1827459492, + "arguments": [ + { + "name": "hinting", + "type": "enum::TextServer.Hinting" + } + ] + }, + { + "name": "get_hinting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3683214614, + "return_value": { + "type": "enum::TextServer.Hinting" + } + }, + { + "name": "set_subpixel_positioning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4225742182, + "arguments": [ + { + "name": "subpixel_positioning", + "type": "enum::TextServer.SubpixelPositioning" + } + ] + }, + { + "name": "get_subpixel_positioning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1069238588, + "return_value": { + "type": "enum::TextServer.SubpixelPositioning" + } + }, + { + "name": "set_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "oversampling", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_cache_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "clear_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "remove_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_size_cache_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_size_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_size_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311374912, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "set_variation_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 64545446, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "variation_coordinates", + "type": "Dictionary" + } + ] + }, + { + "name": "get_variation_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_embolden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_embolden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 30160968, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3836996910, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_face_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "face_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_face_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cache_ascent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "ascent", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cache_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cache_descent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "descent", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cache_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cache_underline_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "underline_position", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cache_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cache_underline_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "underline_thickness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cache_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cache_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cache_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_texture_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1987661582, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "clear_textures", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311374912, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "remove_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2328951467, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_texture_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4157974066, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int32" + }, + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "get_texture_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3878418953, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_texture_offsets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2849993437, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_texture_offsets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3703444828, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_glyph_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 681709689, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "clear_glyphs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311374912, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "remove_glyph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2328951467, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glyph_advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 947991729, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + }, + { + "name": "advance", + "type": "Vector2" + } + ] + }, + { + "name": "get_glyph_advance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1601573536, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glyph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 921719850, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_glyph_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3205412300, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glyph_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 921719850, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + }, + { + "name": "gl_size", + "type": "Vector2" + } + ] + }, + { + "name": "get_glyph_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3205412300, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glyph_uv_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3821620992, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + }, + { + "name": "uv_rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_glyph_uv_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927917900, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_glyph_texture_idx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 355564111, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + }, + { + "name": "texture_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_glyph_texture_idx", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1629411054, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_kerning_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2345056839, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_kerning_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_kerning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3930204747, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "set_kerning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3182200918, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + }, + { + "name": "kerning", + "type": "Vector2" + } + ] + }, + { + "name": "get_kerning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611912865, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "render_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 355564111, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "start", + "type": "int" + }, + { + "name": "end", + "type": "int" + } + ] + }, + { + "name": "render_glyph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2328951467, + "arguments": [ + { + "name": "cache_index", + "type": "int", + "meta": "int32" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_language_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "language", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "get_language_support_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "remove_language_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language_support_overrides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_script_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "script", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "get_script_support_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "remove_script_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "get_script_support_overrides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_opentype_feature_overrides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "overrides", + "type": "Dictionary" + } + ] + }, + { + "name": "get_opentype_feature_overrides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_glyph_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 864943070, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "char", + "type": "int" + }, + { + "name": "variation_selector", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "data", + "setter": "set_data", + "getter": "get_data" + }, + { + "type": "bool", + "name": "generate_mipmaps", + "setter": "set_generate_mipmaps", + "getter": "get_generate_mipmaps" + }, + { + "type": "int", + "name": "antialiasing", + "setter": "set_antialiasing", + "getter": "get_antialiasing" + }, + { + "type": "String", + "name": "font_name", + "setter": "set_font_name", + "getter": "get_font_name" + }, + { + "type": "String", + "name": "style_name", + "setter": "set_font_style_name", + "getter": "get_font_style_name" + }, + { + "type": "int", + "name": "font_style", + "setter": "set_font_style", + "getter": "get_font_style" + }, + { + "type": "int", + "name": "font_weight", + "setter": "set_font_weight", + "getter": "get_font_weight" + }, + { + "type": "int", + "name": "font_stretch", + "setter": "set_font_stretch", + "getter": "get_font_stretch" + }, + { + "type": "int", + "name": "subpixel_positioning", + "setter": "set_subpixel_positioning", + "getter": "get_subpixel_positioning" + }, + { + "type": "bool", + "name": "multichannel_signed_distance_field", + "setter": "set_multichannel_signed_distance_field", + "getter": "is_multichannel_signed_distance_field" + }, + { + "type": "int", + "name": "msdf_pixel_range", + "setter": "set_msdf_pixel_range", + "getter": "get_msdf_pixel_range" + }, + { + "type": "int", + "name": "msdf_size", + "setter": "set_msdf_size", + "getter": "get_msdf_size" + }, + { + "type": "bool", + "name": "allow_system_fallback", + "setter": "set_allow_system_fallback", + "getter": "is_allow_system_fallback" + }, + { + "type": "bool", + "name": "force_autohinter", + "setter": "set_force_autohinter", + "getter": "is_force_autohinter" + }, + { + "type": "int", + "name": "hinting", + "setter": "set_hinting", + "getter": "get_hinting" + }, + { + "type": "float", + "name": "oversampling", + "setter": "set_oversampling", + "getter": "get_oversampling" + }, + { + "type": "int", + "name": "fixed_size", + "setter": "set_fixed_size", + "getter": "get_fixed_size" + }, + { + "type": "Dictionary", + "name": "opentype_feature_overrides", + "setter": "set_opentype_feature_overrides", + "getter": "get_opentype_feature_overrides" + }, + { + "type": "typedarray::24/17:Font", + "name": "fallbacks", + "setter": "set_fallbacks", + "getter": "get_fallbacks" + } + ] + }, + { + "name": "FontVariation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Font", + "api_type": "core", + "methods": [ + { + "name": "set_base_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_base_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "set_variation_opentype", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "coords", + "type": "Dictionary" + } + ] + }, + { + "name": "get_variation_opentype", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_variation_embolden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_variation_embolden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_variation_face_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "face_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_variation_face_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_variation_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_variation_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_opentype_features", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "features", + "type": "Dictionary" + } + ] + }, + { + "name": "set_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3122339690, + "arguments": [ + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "Font", + "name": "base_font", + "setter": "set_base_font", + "getter": "get_base_font" + }, + { + "type": "typedarray::24/17:Font", + "name": "fallbacks", + "setter": "set_fallbacks", + "getter": "get_fallbacks" + }, + { + "type": "Dictionary", + "name": "variation_opentype", + "setter": "set_variation_opentype", + "getter": "get_variation_opentype" + }, + { + "type": "int", + "name": "variation_face_index", + "setter": "set_variation_face_index", + "getter": "get_variation_face_index" + }, + { + "type": "float", + "name": "variation_embolden", + "setter": "set_variation_embolden", + "getter": "get_variation_embolden" + }, + { + "type": "Transform2D", + "name": "variation_transform", + "setter": "set_variation_transform", + "getter": "get_variation_transform" + }, + { + "type": "Dictionary", + "name": "opentype_features", + "setter": "set_opentype_features", + "getter": "get_opentype_features" + }, + { + "type": "int", + "name": "spacing_glyph", + "setter": "set_spacing", + "getter": "get_spacing", + "index": 0 + }, + { + "type": "int", + "name": "spacing_space", + "setter": "set_spacing", + "getter": "get_spacing", + "index": 1 + }, + { + "type": "int", + "name": "spacing_top", + "setter": "set_spacing", + "getter": "get_spacing", + "index": 2 + }, + { + "type": "int", + "name": "spacing_bottom", + "setter": "set_spacing", + "getter": "get_spacing", + "index": 3 + } + ] + }, + { + "name": "FramebufferCacheRD", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core" + }, + { + "name": "GDExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "InitializationLevel", + "is_bitfield": false, + "values": [ + { + "name": "INITIALIZATION_LEVEL_CORE", + "value": 0 + }, + { + "name": "INITIALIZATION_LEVEL_SERVERS", + "value": 1 + }, + { + "name": "INITIALIZATION_LEVEL_SCENE", + "value": 2 + }, + { + "name": "INITIALIZATION_LEVEL_EDITOR", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "open_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "entry_symbol", + "type": "String" + } + ] + }, + { + "name": "close_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_library_open", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_minimum_library_initialization_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 964858755, + "return_value": { + "type": "enum::GDExtension.InitializationLevel" + } + }, + { + "name": "initialize_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3409922941, + "arguments": [ + { + "name": "level", + "type": "enum::GDExtension.InitializationLevel" + } + ] + } + ] + }, + { + "name": "GDExtensionManager", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "LoadStatus", + "is_bitfield": false, + "values": [ + { + "name": "LOAD_STATUS_OK", + "value": 0 + }, + { + "name": "LOAD_STATUS_FAILED", + "value": 1 + }, + { + "name": "LOAD_STATUS_ALREADY_LOADED", + "value": 2 + }, + { + "name": "LOAD_STATUS_NOT_LOADED", + "value": 3 + }, + { + "name": "LOAD_STATUS_NEEDS_RESTART", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "load_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4024158731, + "return_value": { + "type": "enum::GDExtensionManager.LoadStatus" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "reload_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4024158731, + "return_value": { + "type": "enum::GDExtensionManager.LoadStatus" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "unload_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4024158731, + "return_value": { + "type": "enum::GDExtensionManager.LoadStatus" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "is_extension_loaded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_loaded_extensions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 49743343, + "return_value": { + "type": "GDExtension" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "GDScript", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Script", + "api_type": "core", + "methods": [ + { + "name": "new", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 1545262638, + "return_value": { + "type": "Variant" + } + } + ] + }, + { + "name": "GDScriptEditorTranslationParserPlugin", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "EditorTranslationParserPlugin", + "api_type": "core" + }, + { + "name": "GDScriptNativeClass", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "new", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1460262497, + "return_value": { + "type": "Variant" + } + } + ] + }, + { + "name": "GLTFAccessor", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_view", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "byte_offset", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_component_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_component_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "component_type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_normalized", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_normalized", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "normalized", + "type": "bool" + } + ] + }, + { + "name": "get_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 148677866, + "return_value": { + "type": "PackedFloat64Array" + } + }, + { + "name": "set_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2576592201, + "arguments": [ + { + "name": "min", + "type": "PackedFloat64Array" + } + ] + }, + { + "name": "get_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 148677866, + "return_value": { + "type": "PackedFloat64Array" + } + }, + { + "name": "set_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2576592201, + "arguments": [ + { + "name": "max", + "type": "PackedFloat64Array" + } + ] + }, + { + "name": "get_sparse_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sparse_indices_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_indices_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_indices_buffer_view", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sparse_indices_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_indices_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_indices_byte_offset", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sparse_indices_component_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_indices_component_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_indices_component_type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sparse_values_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_values_buffer_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_values_buffer_view", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sparse_values_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sparse_values_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sparse_values_byte_offset", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "buffer_view", + "setter": "set_buffer_view", + "getter": "get_buffer_view" + }, + { + "type": "int", + "name": "byte_offset", + "setter": "set_byte_offset", + "getter": "get_byte_offset" + }, + { + "type": "int", + "name": "component_type", + "setter": "set_component_type", + "getter": "get_component_type" + }, + { + "type": "bool", + "name": "normalized", + "setter": "set_normalized", + "getter": "get_normalized" + }, + { + "type": "int", + "name": "count", + "setter": "set_count", + "getter": "get_count" + }, + { + "type": "int", + "name": "type", + "setter": "set_type", + "getter": "get_type" + }, + { + "type": "PackedFloat64Array", + "name": "min", + "setter": "set_min", + "getter": "get_min" + }, + { + "type": "PackedFloat64Array", + "name": "max", + "setter": "set_max", + "getter": "get_max" + }, + { + "type": "int", + "name": "sparse_count", + "setter": "set_sparse_count", + "getter": "get_sparse_count" + }, + { + "type": "int", + "name": "sparse_indices_buffer_view", + "setter": "set_sparse_indices_buffer_view", + "getter": "get_sparse_indices_buffer_view" + }, + { + "type": "int", + "name": "sparse_indices_byte_offset", + "setter": "set_sparse_indices_byte_offset", + "getter": "get_sparse_indices_byte_offset" + }, + { + "type": "int", + "name": "sparse_indices_component_type", + "setter": "set_sparse_indices_component_type", + "getter": "get_sparse_indices_component_type" + }, + { + "type": "int", + "name": "sparse_values_buffer_view", + "setter": "set_sparse_values_buffer_view", + "getter": "get_sparse_values_buffer_view" + }, + { + "type": "int", + "name": "sparse_values_byte_offset", + "setter": "set_sparse_values_byte_offset", + "getter": "get_sparse_values_byte_offset" + } + ] + }, + { + "name": "GLTFAnimation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "get_loop" + } + ] + }, + { + "name": "GLTFBufferView", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_byte_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "byte_offset", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_byte_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_byte_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "byte_length", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_byte_stride", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_byte_stride", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "byte_stride", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_indices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_indices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "indices", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "buffer", + "setter": "set_buffer", + "getter": "get_buffer" + }, + { + "type": "int", + "name": "byte_offset", + "setter": "set_byte_offset", + "getter": "get_byte_offset" + }, + { + "type": "int", + "name": "byte_length", + "setter": "set_byte_length", + "getter": "get_byte_length" + }, + { + "type": "int", + "name": "byte_stride", + "setter": "set_byte_stride", + "getter": "get_byte_stride" + }, + { + "type": "bool", + "name": "indices", + "setter": "set_indices", + "getter": "get_indices" + } + ] + }, + { + "name": "GLTFCamera", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "from_node", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 237784, + "return_value": { + "type": "GLTFCamera" + }, + "arguments": [ + { + "name": "camera_node", + "type": "Camera3D" + } + ] + }, + { + "name": "to_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285090890, + "return_value": { + "type": "Camera3D" + } + }, + { + "name": "from_dictionary", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2495512509, + "return_value": { + "type": "GLTFCamera" + }, + "arguments": [ + { + "name": "dictionary", + "type": "Dictionary" + } + ] + }, + { + "name": "to_dictionary", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_perspective", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_perspective", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "perspective", + "type": "bool" + } + ] + }, + { + "name": "get_fov", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fov", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fov", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_size_mag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_size_mag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size_mag", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_far", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth_far", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zdepth_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_near", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth_near", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zdepth_near", + "type": "float", + "meta": "float" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "perspective", + "setter": "set_perspective", + "getter": "get_perspective" + }, + { + "type": "float", + "name": "fov", + "setter": "set_fov", + "getter": "get_fov" + }, + { + "type": "float", + "name": "size_mag", + "setter": "set_size_mag", + "getter": "get_size_mag" + }, + { + "type": "float", + "name": "depth_far", + "setter": "set_depth_far", + "getter": "get_depth_far" + }, + { + "type": "float", + "name": "depth_near", + "setter": "set_depth_near", + "getter": "get_depth_near" + } + ] + }, + { + "name": "GLTFDocument", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "append_from_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1862991421, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + }, + { + "name": "base_path", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "append_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2818062664, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "bytes", + "type": "PackedByteArray" + }, + { + "name": "base_path", + "type": "String" + }, + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "append_from_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 374125375, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + }, + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "generate_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2770277081, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "bake_fps", + "type": "float", + "meta": "float", + "default_value": "30" + }, + { + "name": "trimming", + "type": "bool", + "default_value": "false" + }, + { + "name": "remove_immutable_tracks", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "generate_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 741783455, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + }, + { + "name": "write_to_filesystem", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784551478, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "register_gltf_document_extension", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3752678331, + "arguments": [ + { + "name": "extension", + "type": "GLTFDocumentExtension" + }, + { + "name": "first_priority", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "unregister_gltf_document_extension", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2684415758, + "arguments": [ + { + "name": "extension", + "type": "GLTFDocumentExtension" + } + ] + } + ] + }, + { + "name": "GLTFDocumentExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_import_preflight", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "extensions", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_get_supported_extensions", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_parse_node_extensions", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "gltf_node", + "type": "GLTFNode" + }, + { + "name": "extensions", + "type": "Dictionary" + } + ] + }, + { + "name": "_generate_scene_node", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Node3D" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "gltf_node", + "type": "GLTFNode" + }, + { + "name": "scene_parent", + "type": "Node" + } + ] + }, + { + "name": "_import_post_parse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + }, + { + "name": "_import_node", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "gltf_node", + "type": "GLTFNode" + }, + { + "name": "json", + "type": "Dictionary" + }, + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "_import_post", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "root", + "type": "Node" + } + ] + }, + { + "name": "_export_preflight", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "root", + "type": "Node" + } + ] + }, + { + "name": "_convert_scene_node", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "gltf_node", + "type": "GLTFNode" + }, + { + "name": "scene_node", + "type": "Node" + } + ] + }, + { + "name": "_export_node", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + }, + { + "name": "gltf_node", + "type": "GLTFNode" + }, + { + "name": "json", + "type": "Dictionary" + }, + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "_export_post", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "state", + "type": "GLTFState" + } + ] + } + ] + }, + { + "name": "GLTFDocumentExtensionConvertImporterMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "GLTFDocumentExtension", + "api_type": "core" + }, + { + "name": "GLTFLight", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "from_node", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3907677874, + "return_value": { + "type": "GLTFLight" + }, + "arguments": [ + { + "name": "light_node", + "type": "Light3D" + } + ] + }, + { + "name": "to_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2040811672, + "return_value": { + "type": "Light3D" + } + }, + { + "name": "from_dictionary", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 4057087208, + "return_value": { + "type": "GLTFLight" + }, + "arguments": [ + { + "name": "dictionary", + "type": "Dictionary" + } + ] + }, + { + "name": "to_dictionary", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200896285, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_light_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_light_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "light_type", + "type": "String" + } + ] + }, + { + "name": "get_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "range", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_inner_cone_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_inner_cone_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "inner_cone_angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_outer_cone_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_outer_cone_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "outer_cone_angle", + "type": "float", + "meta": "float" + } + ] + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "float", + "name": "intensity", + "setter": "set_intensity", + "getter": "get_intensity" + }, + { + "type": "String", + "name": "light_type", + "setter": "set_light_type", + "getter": "get_light_type" + }, + { + "type": "float", + "name": "range", + "setter": "set_range", + "getter": "get_range" + }, + { + "type": "float", + "name": "inner_cone_angle", + "setter": "set_inner_cone_angle", + "getter": "get_inner_cone_angle" + }, + { + "type": "float", + "name": "outer_cone_angle", + "setter": "set_outer_cone_angle", + "getter": "get_outer_cone_angle" + } + ] + }, + { + "name": "GLTFMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3754628756, + "return_value": { + "type": "ImporterMesh" + } + }, + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2255166972, + "arguments": [ + { + "name": "mesh", + "type": "ImporterMesh" + } + ] + }, + { + "name": "get_blend_weights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2445143706, + "return_value": { + "type": "PackedFloat32Array" + } + }, + { + "name": "set_blend_weights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "blend_weights", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "get_instance_materials", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Material" + } + }, + { + "name": "set_instance_materials", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "instance_materials", + "type": "typedarray::Material" + } + ] + } + ], + "properties": [ + { + "type": "Object", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "PackedFloat32Array", + "name": "blend_weights", + "setter": "set_blend_weights", + "getter": "get_blend_weights" + }, + { + "type": "Array", + "name": "instance_materials", + "setter": "set_instance_materials", + "getter": "get_instance_materials" + } + ] + }, + { + "name": "GLTFNode", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "parent", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_xform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4183770049, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_xform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "xform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mesh", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_camera", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_camera", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "camera", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "skin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "skeleton", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3783033775, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2916281908, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "set_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1727505552, + "arguments": [ + { + "name": "rotation", + "type": "Quaternion" + } + ] + }, + { + "name": "get_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3783033775, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_children", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_children", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "children", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_light", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_light", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "light", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + } + ] + }, + { + "name": "set_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + }, + { + "name": "additional_data", + "type": "Variant" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "parent", + "setter": "set_parent", + "getter": "get_parent" + }, + { + "type": "int", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "Transform3D", + "name": "xform", + "setter": "set_xform", + "getter": "get_xform" + }, + { + "type": "int", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "int", + "name": "camera", + "setter": "set_camera", + "getter": "get_camera" + }, + { + "type": "int", + "name": "skin", + "setter": "set_skin", + "getter": "get_skin" + }, + { + "type": "int", + "name": "skeleton", + "setter": "set_skeleton", + "getter": "get_skeleton" + }, + { + "type": "Vector3", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "Quaternion", + "name": "rotation", + "setter": "set_rotation", + "getter": "get_rotation" + }, + { + "type": "Vector3", + "name": "scale", + "setter": "set_scale", + "getter": "get_scale" + }, + { + "type": "PackedInt32Array", + "name": "children", + "setter": "set_children", + "getter": "get_children" + }, + { + "type": "int", + "name": "light", + "setter": "set_light", + "getter": "get_light" + } + ] + }, + { + "name": "GLTFSkeleton", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "joints", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_roots", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_roots", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "roots", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_godot_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1814733083, + "return_value": { + "type": "Skeleton3D" + } + }, + { + "name": "get_unique_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "set_unique_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "unique_names", + "type": "typedarray::String" + } + ] + }, + { + "name": "get_godot_bone_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_godot_bone_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "godot_bone_node", + "type": "Dictionary" + } + ] + }, + { + "name": "get_bone_attachment_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_bone_attachment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 945440495, + "return_value": { + "type": "BoneAttachment3D" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "PackedInt32Array", + "name": "joints", + "setter": "set_joints", + "getter": "get_joints" + }, + { + "type": "PackedInt32Array", + "name": "roots", + "setter": "set_roots", + "getter": "get_roots" + }, + { + "type": "Array", + "name": "unique_names", + "setter": "set_unique_names", + "getter": "get_unique_names" + }, + { + "type": "Dictionary", + "name": "godot_bone_node", + "setter": "set_godot_bone_node", + "getter": "get_godot_bone_node" + } + ] + }, + { + "name": "GLTFSkin", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_skin_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_skin_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "skin_root", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joints_original", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_joints_original", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "joints_original", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_inverse_binds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Transform3D" + } + }, + { + "name": "set_inverse_binds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "inverse_binds", + "type": "typedarray::Transform3D" + } + ] + }, + { + "name": "get_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "joints", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_non_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_non_joints", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "non_joints", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_roots", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_roots", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "roots", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "skeleton", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joint_i_to_bone_i", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_joint_i_to_bone_i", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "joint_i_to_bone_i", + "type": "Dictionary" + } + ] + }, + { + "name": "get_joint_i_to_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_joint_i_to_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "joint_i_to_name", + "type": "Dictionary" + } + ] + }, + { + "name": "get_godot_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1032037385, + "return_value": { + "type": "Skin" + } + }, + { + "name": "set_godot_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971435618, + "arguments": [ + { + "name": "godot_skin", + "type": "Skin" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "skin_root", + "setter": "set_skin_root", + "getter": "get_skin_root" + }, + { + "type": "PackedInt32Array", + "name": "joints_original", + "setter": "set_joints_original", + "getter": "get_joints_original" + }, + { + "type": "Array", + "name": "inverse_binds", + "setter": "set_inverse_binds", + "getter": "get_inverse_binds" + }, + { + "type": "PackedInt32Array", + "name": "joints", + "setter": "set_joints", + "getter": "get_joints" + }, + { + "type": "PackedInt32Array", + "name": "non_joints", + "setter": "set_non_joints", + "getter": "get_non_joints" + }, + { + "type": "PackedInt32Array", + "name": "roots", + "setter": "set_roots", + "getter": "get_roots" + }, + { + "type": "int", + "name": "skeleton", + "setter": "set_skeleton", + "getter": "get_skeleton" + }, + { + "type": "Dictionary", + "name": "joint_i_to_bone_i", + "setter": "set_joint_i_to_bone_i", + "getter": "get_joint_i_to_bone_i" + }, + { + "type": "Dictionary", + "name": "joint_i_to_name", + "setter": "set_joint_i_to_name", + "getter": "get_joint_i_to_name" + }, + { + "type": "Object", + "name": "godot_skin", + "setter": "set_godot_skin", + "getter": "get_godot_skin" + } + ] + }, + { + "name": "GLTFSpecGloss", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_diffuse_img", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 564927088, + "return_value": { + "type": "Image" + } + }, + { + "name": "set_diffuse_img", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "diffuse_img", + "type": "Image" + } + ] + }, + { + "name": "get_diffuse_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200896285, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_diffuse_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "diffuse_factor", + "type": "Color" + } + ] + }, + { + "name": "get_gloss_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gloss_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gloss_factor", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_specular_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200896285, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_specular_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "specular_factor", + "type": "Color" + } + ] + }, + { + "name": "get_spec_gloss_img", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 564927088, + "return_value": { + "type": "Image" + } + }, + { + "name": "set_spec_gloss_img", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "spec_gloss_img", + "type": "Image" + } + ] + } + ], + "properties": [ + { + "type": "Object", + "name": "diffuse_img", + "setter": "set_diffuse_img", + "getter": "get_diffuse_img" + }, + { + "type": "Color", + "name": "diffuse_factor", + "setter": "set_diffuse_factor", + "getter": "get_diffuse_factor" + }, + { + "type": "float", + "name": "gloss_factor", + "setter": "set_gloss_factor", + "getter": "get_gloss_factor" + }, + { + "type": "Color", + "name": "specular_factor", + "setter": "set_specular_factor", + "getter": "get_specular_factor" + }, + { + "type": "Object", + "name": "spec_gloss_img", + "setter": "set_spec_gloss_img", + "getter": "get_spec_gloss_img" + } + ] + }, + { + "name": "GLTFState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "constants": [ + { + "name": "HANDLE_BINARY_DISCARD_TEXTURES", + "value": 0 + }, + { + "name": "HANDLE_BINARY_EXTRACT_TEXTURES", + "value": 1 + }, + { + "name": "HANDLE_BINARY_EMBED_AS_BASISU", + "value": 2 + }, + { + "name": "HANDLE_BINARY_EMBED_AS_UNCOMPRESSED", + "value": 3 + } + ], + "methods": [ + { + "name": "add_used_extension", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "extension_name", + "type": "String" + }, + { + "name": "required", + "type": "bool" + } + ] + }, + { + "name": "get_json", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "set_json", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "json", + "type": "Dictionary" + } + ] + }, + { + "name": "get_major_version", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_major_version", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "major_version", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_minor_version", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_minor_version", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "minor_version", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_glb_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_glb_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "glb_data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_use_named_skin_binds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_named_skin_binds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_named_skin_binds", + "type": "bool" + } + ] + }, + { + "name": "get_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFNode" + } + }, + { + "name": "set_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "nodes", + "type": "typedarray::GLTFNode" + } + ] + }, + { + "name": "get_buffers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::PackedByteArray" + } + }, + { + "name": "set_buffers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "buffers", + "type": "typedarray::PackedByteArray" + } + ] + }, + { + "name": "get_buffer_views", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFBufferView" + } + }, + { + "name": "set_buffer_views", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "buffer_views", + "type": "typedarray::GLTFBufferView" + } + ] + }, + { + "name": "get_accessors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFAccessor" + } + }, + { + "name": "set_accessors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "accessors", + "type": "typedarray::GLTFAccessor" + } + ] + }, + { + "name": "get_meshes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFMesh" + } + }, + { + "name": "set_meshes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "meshes", + "type": "typedarray::GLTFMesh" + } + ] + }, + { + "name": "get_animation_players_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_animation_player", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 925043400, + "return_value": { + "type": "AnimationPlayer" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_materials", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Material" + } + }, + { + "name": "set_materials", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "materials", + "type": "typedarray::Material" + } + ] + }, + { + "name": "get_scene_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_scene_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "scene_name", + "type": "String" + } + ] + }, + { + "name": "get_base_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "set_base_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "base_path", + "type": "String" + } + ] + }, + { + "name": "get_root_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_root_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "root_nodes", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_textures", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFTexture" + } + }, + { + "name": "set_textures", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "textures", + "type": "typedarray::GLTFTexture" + } + ] + }, + { + "name": "get_texture_samplers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFTextureSampler" + } + }, + { + "name": "set_texture_samplers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "texture_samplers", + "type": "typedarray::GLTFTextureSampler" + } + ] + }, + { + "name": "get_images", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Texture2D" + } + }, + { + "name": "set_images", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "images", + "type": "typedarray::Texture2D" + } + ] + }, + { + "name": "get_skins", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFSkin" + } + }, + { + "name": "set_skins", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "skins", + "type": "typedarray::GLTFSkin" + } + ] + }, + { + "name": "get_cameras", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFCamera" + } + }, + { + "name": "set_cameras", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "cameras", + "type": "typedarray::GLTFCamera" + } + ] + }, + { + "name": "get_lights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFLight" + } + }, + { + "name": "set_lights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "lights", + "type": "typedarray::GLTFLight" + } + ] + }, + { + "name": "get_unique_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "set_unique_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "unique_names", + "type": "typedarray::String" + } + ] + }, + { + "name": "get_unique_animation_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::String" + } + }, + { + "name": "set_unique_animation_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "unique_animation_names", + "type": "typedarray::String" + } + ] + }, + { + "name": "get_skeletons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFSkeleton" + } + }, + { + "name": "set_skeletons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "skeletons", + "type": "typedarray::GLTFSkeleton" + } + ] + }, + { + "name": "get_create_animations", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_create_animations", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "create_animations", + "type": "bool" + } + ] + }, + { + "name": "get_animations", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::GLTFAnimation" + } + }, + { + "name": "set_animations", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "animations", + "type": "typedarray::GLTFAnimation" + } + ] + }, + { + "name": "get_scene_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4253421667, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + } + ] + }, + { + "name": "set_additional_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "extension_name", + "type": "StringName" + }, + { + "name": "additional_data", + "type": "Variant" + } + ] + }, + { + "name": "get_handle_binary_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_handle_binary_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "method", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "Dictionary", + "name": "json", + "setter": "set_json", + "getter": "get_json" + }, + { + "type": "int", + "name": "major_version", + "setter": "set_major_version", + "getter": "get_major_version" + }, + { + "type": "int", + "name": "minor_version", + "setter": "set_minor_version", + "getter": "get_minor_version" + }, + { + "type": "PackedByteArray", + "name": "glb_data", + "setter": "set_glb_data", + "getter": "get_glb_data" + }, + { + "type": "bool", + "name": "use_named_skin_binds", + "setter": "set_use_named_skin_binds", + "getter": "get_use_named_skin_binds" + }, + { + "type": "Array", + "name": "nodes", + "setter": "set_nodes", + "getter": "get_nodes" + }, + { + "type": "Array", + "name": "buffers", + "setter": "set_buffers", + "getter": "get_buffers" + }, + { + "type": "Array", + "name": "buffer_views", + "setter": "set_buffer_views", + "getter": "get_buffer_views" + }, + { + "type": "Array", + "name": "accessors", + "setter": "set_accessors", + "getter": "get_accessors" + }, + { + "type": "Array", + "name": "meshes", + "setter": "set_meshes", + "getter": "get_meshes" + }, + { + "type": "Array", + "name": "materials", + "setter": "set_materials", + "getter": "get_materials" + }, + { + "type": "String", + "name": "scene_name", + "setter": "set_scene_name", + "getter": "get_scene_name" + }, + { + "type": "String", + "name": "base_path", + "setter": "set_base_path", + "getter": "get_base_path" + }, + { + "type": "PackedInt32Array", + "name": "root_nodes", + "setter": "set_root_nodes", + "getter": "get_root_nodes" + }, + { + "type": "Array", + "name": "textures", + "setter": "set_textures", + "getter": "get_textures" + }, + { + "type": "Array", + "name": "texture_samplers", + "setter": "set_texture_samplers", + "getter": "get_texture_samplers" + }, + { + "type": "Array", + "name": "images", + "setter": "set_images", + "getter": "get_images" + }, + { + "type": "Array", + "name": "skins", + "setter": "set_skins", + "getter": "get_skins" + }, + { + "type": "Array", + "name": "cameras", + "setter": "set_cameras", + "getter": "get_cameras" + }, + { + "type": "Array", + "name": "lights", + "setter": "set_lights", + "getter": "get_lights" + }, + { + "type": "Array", + "name": "unique_names", + "setter": "set_unique_names", + "getter": "get_unique_names" + }, + { + "type": "Array", + "name": "unique_animation_names", + "setter": "set_unique_animation_names", + "getter": "get_unique_animation_names" + }, + { + "type": "Array", + "name": "skeletons", + "setter": "set_skeletons", + "getter": "get_skeletons" + }, + { + "type": "bool", + "name": "create_animations", + "setter": "set_create_animations", + "getter": "get_create_animations" + }, + { + "type": "Array", + "name": "animations", + "setter": "set_animations", + "getter": "get_animations" + }, + { + "type": "int", + "name": "handle_binary_image", + "setter": "set_handle_binary_image", + "getter": "get_handle_binary_image" + } + ] + }, + { + "name": "GLTFTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_src_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_src_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "src_image", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sampler", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sampler", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sampler", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "src_image", + "setter": "set_src_image", + "getter": "get_src_image" + }, + { + "type": "int", + "name": "sampler", + "setter": "set_sampler", + "getter": "get_sampler" + } + ] + }, + { + "name": "GLTFTextureSampler", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_mag_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_mag_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "filter_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_min_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_min_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "filter_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_wrap_s", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_wrap_s", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "wrap_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_wrap_t", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_wrap_t", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "wrap_mode", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "mag_filter", + "setter": "set_mag_filter", + "getter": "get_mag_filter" + }, + { + "type": "int", + "name": "min_filter", + "setter": "set_min_filter", + "getter": "get_min_filter" + }, + { + "type": "int", + "name": "wrap_s", + "setter": "set_wrap_s", + "getter": "get_wrap_s" + }, + { + "type": "int", + "name": "wrap_t", + "setter": "set_wrap_t", + "getter": "get_wrap_t" + } + ] + }, + { + "name": "GPUParticles2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "DrawOrder", + "is_bitfield": false, + "values": [ + { + "name": "DRAW_ORDER_INDEX", + "value": 0 + }, + { + "name": "DRAW_ORDER_LIFETIME", + "value": 1 + }, + { + "name": "DRAW_ORDER_REVERSE_LIFETIME", + "value": 2 + } + ] + }, + { + "name": "EmitFlags", + "is_bitfield": false, + "values": [ + { + "name": "EMIT_FLAG_POSITION", + "value": 1 + }, + { + "name": "EMIT_FLAG_ROTATION_SCALE", + "value": 2 + }, + { + "name": "EMIT_FLAG_VELOCITY", + "value": 4 + }, + { + "name": "EMIT_FLAG_COLOR", + "value": 8 + }, + { + "name": "EMIT_FLAG_CUSTOM", + "value": 16 + } + ] + } + ], + "methods": [ + { + "name": "set_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "emitting", + "type": "bool" + } + ] + }, + { + "name": "set_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "secs", + "type": "bool" + } + ] + }, + { + "name": "set_pre_process_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_explosiveness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_randomness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_visibility_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "visibility_rect", + "type": "Rect2" + } + ] + }, + { + "name": "set_use_local_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_fixed_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fractional_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_interpolate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_process_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_collision_base_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "is_emitting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pre_process_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_explosiveness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_randomness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_visibility_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "get_use_local_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_fixed_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_fractional_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_interpolate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_process_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_collision_base_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_draw_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1939677959, + "arguments": [ + { + "name": "order", + "type": "enum::GPUParticles2D.DrawOrder" + } + ] + }, + { + "name": "get_draw_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 941479095, + "return_value": { + "type": "enum::GPUParticles2D.DrawOrder" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "capture_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "restart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_sub_emitter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_sub_emitter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "emit_particle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2179202058, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + }, + { + "name": "velocity", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "custom", + "type": "Color" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "set_trail_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_trail_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_trail_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_trail_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_trail_sections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sections", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_trail_sections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_trail_section_subdivisions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "subdivisions", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_trail_section_subdivisions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "emitting", + "setter": "set_emitting", + "getter": "is_emitting" + }, + { + "type": "int", + "name": "amount", + "setter": "set_amount", + "getter": "get_amount" + }, + { + "type": "NodePath", + "name": "sub_emitter", + "setter": "set_sub_emitter", + "getter": "get_sub_emitter" + }, + { + "type": "ShaderMaterial,ParticleProcessMaterial", + "name": "process_material", + "setter": "set_process_material", + "getter": "get_process_material" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "float", + "name": "lifetime", + "setter": "set_lifetime", + "getter": "get_lifetime" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "get_one_shot" + }, + { + "type": "float", + "name": "preprocess", + "setter": "set_pre_process_time", + "getter": "get_pre_process_time" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "float", + "name": "explosiveness", + "setter": "set_explosiveness_ratio", + "getter": "get_explosiveness_ratio" + }, + { + "type": "float", + "name": "randomness", + "setter": "set_randomness_ratio", + "getter": "get_randomness_ratio" + }, + { + "type": "int", + "name": "fixed_fps", + "setter": "set_fixed_fps", + "getter": "get_fixed_fps" + }, + { + "type": "bool", + "name": "interpolate", + "setter": "set_interpolate", + "getter": "get_interpolate" + }, + { + "type": "bool", + "name": "fract_delta", + "setter": "set_fractional_delta", + "getter": "get_fractional_delta" + }, + { + "type": "float", + "name": "collision_base_size", + "setter": "set_collision_base_size", + "getter": "get_collision_base_size" + }, + { + "type": "Rect2", + "name": "visibility_rect", + "setter": "set_visibility_rect", + "getter": "get_visibility_rect" + }, + { + "type": "bool", + "name": "local_coords", + "setter": "set_use_local_coordinates", + "getter": "get_use_local_coordinates" + }, + { + "type": "int", + "name": "draw_order", + "setter": "set_draw_order", + "getter": "get_draw_order" + }, + { + "type": "bool", + "name": "trail_enabled", + "setter": "set_trail_enabled", + "getter": "is_trail_enabled" + }, + { + "type": "float", + "name": "trail_lifetime", + "setter": "set_trail_lifetime", + "getter": "get_trail_lifetime" + }, + { + "type": "int", + "name": "trail_sections", + "setter": "set_trail_sections", + "getter": "get_trail_sections" + }, + { + "type": "int", + "name": "trail_section_subdivisions", + "setter": "set_trail_section_subdivisions", + "getter": "get_trail_section_subdivisions" + } + ] + }, + { + "name": "GPUParticles3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GeometryInstance3D", + "api_type": "core", + "constants": [ + { + "name": "MAX_DRAW_PASSES", + "value": 4 + } + ], + "enums": [ + { + "name": "DrawOrder", + "is_bitfield": false, + "values": [ + { + "name": "DRAW_ORDER_INDEX", + "value": 0 + }, + { + "name": "DRAW_ORDER_LIFETIME", + "value": 1 + }, + { + "name": "DRAW_ORDER_REVERSE_LIFETIME", + "value": 2 + }, + { + "name": "DRAW_ORDER_VIEW_DEPTH", + "value": 3 + } + ] + }, + { + "name": "EmitFlags", + "is_bitfield": false, + "values": [ + { + "name": "EMIT_FLAG_POSITION", + "value": 1 + }, + { + "name": "EMIT_FLAG_ROTATION_SCALE", + "value": 2 + }, + { + "name": "EMIT_FLAG_VELOCITY", + "value": 4 + }, + { + "name": "EMIT_FLAG_COLOR", + "value": 8 + }, + { + "name": "EMIT_FLAG_CUSTOM", + "value": 16 + } + ] + }, + { + "name": "TransformAlign", + "is_bitfield": false, + "values": [ + { + "name": "TRANSFORM_ALIGN_DISABLED", + "value": 0 + }, + { + "name": "TRANSFORM_ALIGN_Z_BILLBOARD", + "value": 1 + }, + { + "name": "TRANSFORM_ALIGN_Y_TO_VELOCITY", + "value": 2 + }, + { + "name": "TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "emitting", + "type": "bool" + } + ] + }, + { + "name": "set_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_pre_process_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_explosiveness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_randomness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_visibility_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "set_use_local_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_fixed_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fractional_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_interpolate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_process_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_collision_base_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "is_emitting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pre_process_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_explosiveness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_randomness_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_visibility_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "get_use_local_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_fixed_fps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_fractional_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_interpolate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_process_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "get_speed_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_collision_base_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_draw_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1208074815, + "arguments": [ + { + "name": "order", + "type": "enum::GPUParticles3D.DrawOrder" + } + ] + }, + { + "name": "get_draw_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3770381780, + "return_value": { + "type": "enum::GPUParticles3D.DrawOrder" + } + }, + { + "name": "set_draw_passes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "passes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_draw_pass_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969122797, + "arguments": [ + { + "name": "pass", + "type": "int", + "meta": "int32" + }, + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_draw_passes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_draw_pass_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1576363275, + "return_value": { + "type": "Mesh" + }, + "arguments": [ + { + "name": "pass", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971435618, + "arguments": [ + { + "name": "skin", + "type": "Skin" + } + ] + }, + { + "name": "get_skin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074563878, + "return_value": { + "type": "Skin" + } + }, + { + "name": "restart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "capture_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_sub_emitter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_sub_emitter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "emit_particle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 992173727, + "arguments": [ + { + "name": "xform", + "type": "Transform3D" + }, + { + "name": "velocity", + "type": "Vector3" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "custom", + "type": "Color" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "set_trail_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_trail_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "secs", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "is_trail_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_trail_lifetime", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_transform_align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3892425954, + "arguments": [ + { + "name": "align", + "type": "enum::GPUParticles3D.TransformAlign" + } + ] + }, + { + "name": "get_transform_align", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2100992166, + "return_value": { + "type": "enum::GPUParticles3D.TransformAlign" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "emitting", + "setter": "set_emitting", + "getter": "is_emitting" + }, + { + "type": "int", + "name": "amount", + "setter": "set_amount", + "getter": "get_amount" + }, + { + "type": "NodePath", + "name": "sub_emitter", + "setter": "set_sub_emitter", + "getter": "get_sub_emitter" + }, + { + "type": "float", + "name": "lifetime", + "setter": "set_lifetime", + "getter": "get_lifetime" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "get_one_shot" + }, + { + "type": "float", + "name": "preprocess", + "setter": "set_pre_process_time", + "getter": "get_pre_process_time" + }, + { + "type": "float", + "name": "speed_scale", + "setter": "set_speed_scale", + "getter": "get_speed_scale" + }, + { + "type": "float", + "name": "explosiveness", + "setter": "set_explosiveness_ratio", + "getter": "get_explosiveness_ratio" + }, + { + "type": "float", + "name": "randomness", + "setter": "set_randomness_ratio", + "getter": "get_randomness_ratio" + }, + { + "type": "int", + "name": "fixed_fps", + "setter": "set_fixed_fps", + "getter": "get_fixed_fps" + }, + { + "type": "bool", + "name": "interpolate", + "setter": "set_interpolate", + "getter": "get_interpolate" + }, + { + "type": "bool", + "name": "fract_delta", + "setter": "set_fractional_delta", + "getter": "get_fractional_delta" + }, + { + "type": "float", + "name": "collision_base_size", + "setter": "set_collision_base_size", + "getter": "get_collision_base_size" + }, + { + "type": "AABB", + "name": "visibility_aabb", + "setter": "set_visibility_aabb", + "getter": "get_visibility_aabb" + }, + { + "type": "bool", + "name": "local_coords", + "setter": "set_use_local_coordinates", + "getter": "get_use_local_coordinates" + }, + { + "type": "int", + "name": "draw_order", + "setter": "set_draw_order", + "getter": "get_draw_order" + }, + { + "type": "int", + "name": "transform_align", + "setter": "set_transform_align", + "getter": "get_transform_align" + }, + { + "type": "bool", + "name": "trail_enabled", + "setter": "set_trail_enabled", + "getter": "is_trail_enabled" + }, + { + "type": "float", + "name": "trail_lifetime", + "setter": "set_trail_lifetime", + "getter": "get_trail_lifetime" + }, + { + "type": "ShaderMaterial,ParticleProcessMaterial", + "name": "process_material", + "setter": "set_process_material", + "getter": "get_process_material" + }, + { + "type": "int", + "name": "draw_passes", + "setter": "set_draw_passes", + "getter": "get_draw_passes" + }, + { + "type": "Mesh", + "name": "draw_pass_1", + "setter": "set_draw_pass_mesh", + "getter": "get_draw_pass_mesh", + "index": 0 + }, + { + "type": "Mesh", + "name": "draw_pass_2", + "setter": "set_draw_pass_mesh", + "getter": "get_draw_pass_mesh", + "index": 1 + }, + { + "type": "Mesh", + "name": "draw_pass_3", + "setter": "set_draw_pass_mesh", + "getter": "get_draw_pass_mesh", + "index": 2 + }, + { + "type": "Mesh", + "name": "draw_pass_4", + "setter": "set_draw_pass_mesh", + "getter": "get_draw_pass_mesh", + "index": 3 + }, + { + "type": "Skin", + "name": "draw_skin", + "setter": "set_skin", + "getter": "get_skin" + } + ] + }, + { + "name": "GPUParticlesAttractor3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "VisualInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_attenuation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "attenuation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_attenuation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_directionality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_directionality", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "strength", + "setter": "set_strength", + "getter": "get_strength" + }, + { + "type": "float", + "name": "attenuation", + "setter": "set_attenuation", + "getter": "get_attenuation" + }, + { + "type": "float", + "name": "directionality", + "setter": "set_directionality", + "getter": "get_directionality" + }, + { + "type": "int", + "name": "cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + } + ] + }, + { + "name": "GPUParticlesAttractorBox3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesAttractor3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "GPUParticlesAttractorSphere3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesAttractor3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "GPUParticlesAttractorVectorField3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesAttractor3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1188404210, + "arguments": [ + { + "name": "texture", + "type": "Texture3D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373985333, + "return_value": { + "type": "Texture3D" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Texture3D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "GPUParticlesCollision3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "VisualInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + } + ] + }, + { + "name": "GPUParticlesCollisionBox3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesCollision3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "GPUParticlesCollisionHeightField3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesCollision3D", + "api_type": "core", + "enums": [ + { + "name": "Resolution", + "is_bitfield": false, + "values": [ + { + "name": "RESOLUTION_256", + "value": 0 + }, + { + "name": "RESOLUTION_512", + "value": 1 + }, + { + "name": "RESOLUTION_1024", + "value": 2 + }, + { + "name": "RESOLUTION_2048", + "value": 3 + }, + { + "name": "RESOLUTION_4096", + "value": 4 + }, + { + "name": "RESOLUTION_8192", + "value": 5 + }, + { + "name": "RESOLUTION_MAX", + "value": 6 + } + ] + }, + { + "name": "UpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "UPDATE_MODE_WHEN_MOVED", + "value": 0 + }, + { + "name": "UPDATE_MODE_ALWAYS", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1009996517, + "arguments": [ + { + "name": "resolution", + "type": "enum::GPUParticlesCollisionHeightField3D.Resolution" + } + ] + }, + { + "name": "get_resolution", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1156065644, + "return_value": { + "type": "enum::GPUParticlesCollisionHeightField3D.Resolution" + } + }, + { + "name": "set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 673680859, + "arguments": [ + { + "name": "update_mode", + "type": "enum::GPUParticlesCollisionHeightField3D.UpdateMode" + } + ] + }, + { + "name": "get_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1998141380, + "return_value": { + "type": "enum::GPUParticlesCollisionHeightField3D.UpdateMode" + } + }, + { + "name": "set_follow_camera_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_follow_camera_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "resolution", + "setter": "set_resolution", + "getter": "get_resolution" + }, + { + "type": "int", + "name": "update_mode", + "setter": "set_update_mode", + "getter": "get_update_mode" + }, + { + "type": "bool", + "name": "follow_camera_enabled", + "setter": "set_follow_camera_enabled", + "getter": "is_follow_camera_enabled" + } + ] + }, + { + "name": "GPUParticlesCollisionSDF3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesCollision3D", + "api_type": "core", + "enums": [ + { + "name": "Resolution", + "is_bitfield": false, + "values": [ + { + "name": "RESOLUTION_16", + "value": 0 + }, + { + "name": "RESOLUTION_32", + "value": 1 + }, + { + "name": "RESOLUTION_64", + "value": 2 + }, + { + "name": "RESOLUTION_128", + "value": 3 + }, + { + "name": "RESOLUTION_256", + "value": 4 + }, + { + "name": "RESOLUTION_512", + "value": 5 + }, + { + "name": "RESOLUTION_MAX", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1155629297, + "arguments": [ + { + "name": "resolution", + "type": "enum::GPUParticlesCollisionSDF3D.Resolution" + } + ] + }, + { + "name": "get_resolution", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2919555867, + "return_value": { + "type": "enum::GPUParticlesCollisionSDF3D.Resolution" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1188404210, + "arguments": [ + { + "name": "texture", + "type": "Texture3D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373985333, + "return_value": { + "type": "Texture3D" + } + }, + { + "name": "set_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "thickness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bake_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_bake_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_bake_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_bake_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "resolution", + "setter": "set_resolution", + "getter": "get_resolution" + }, + { + "type": "float", + "name": "thickness", + "setter": "set_thickness", + "getter": "get_thickness" + }, + { + "type": "int", + "name": "bake_mask", + "setter": "set_bake_mask", + "getter": "get_bake_mask" + }, + { + "type": "Texture3D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "GPUParticlesCollisionSphere3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GPUParticlesCollision3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "Generic6DOFJoint3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_LINEAR_LOWER_LIMIT", + "value": 0 + }, + { + "name": "PARAM_LINEAR_UPPER_LIMIT", + "value": 1 + }, + { + "name": "PARAM_LINEAR_LIMIT_SOFTNESS", + "value": 2 + }, + { + "name": "PARAM_LINEAR_RESTITUTION", + "value": 3 + }, + { + "name": "PARAM_LINEAR_DAMPING", + "value": 4 + }, + { + "name": "PARAM_LINEAR_MOTOR_TARGET_VELOCITY", + "value": 5 + }, + { + "name": "PARAM_LINEAR_MOTOR_FORCE_LIMIT", + "value": 6 + }, + { + "name": "PARAM_LINEAR_SPRING_STIFFNESS", + "value": 7 + }, + { + "name": "PARAM_LINEAR_SPRING_DAMPING", + "value": 8 + }, + { + "name": "PARAM_LINEAR_SPRING_EQUILIBRIUM_POINT", + "value": 9 + }, + { + "name": "PARAM_ANGULAR_LOWER_LIMIT", + "value": 10 + }, + { + "name": "PARAM_ANGULAR_UPPER_LIMIT", + "value": 11 + }, + { + "name": "PARAM_ANGULAR_LIMIT_SOFTNESS", + "value": 12 + }, + { + "name": "PARAM_ANGULAR_DAMPING", + "value": 13 + }, + { + "name": "PARAM_ANGULAR_RESTITUTION", + "value": 14 + }, + { + "name": "PARAM_ANGULAR_FORCE_LIMIT", + "value": 15 + }, + { + "name": "PARAM_ANGULAR_ERP", + "value": 16 + }, + { + "name": "PARAM_ANGULAR_MOTOR_TARGET_VELOCITY", + "value": 17 + }, + { + "name": "PARAM_ANGULAR_MOTOR_FORCE_LIMIT", + "value": 18 + }, + { + "name": "PARAM_ANGULAR_SPRING_STIFFNESS", + "value": 19 + }, + { + "name": "PARAM_ANGULAR_SPRING_DAMPING", + "value": 20 + }, + { + "name": "PARAM_ANGULAR_SPRING_EQUILIBRIUM_POINT", + "value": 21 + }, + { + "name": "PARAM_MAX", + "value": 22 + } + ] + }, + { + "name": "Flag", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_ENABLE_LINEAR_LIMIT", + "value": 0 + }, + { + "name": "FLAG_ENABLE_ANGULAR_LIMIT", + "value": 1 + }, + { + "name": "FLAG_ENABLE_LINEAR_SPRING", + "value": 3 + }, + { + "name": "FLAG_ENABLE_ANGULAR_SPRING", + "value": 2 + }, + { + "name": "FLAG_ENABLE_MOTOR", + "value": 4 + }, + { + "name": "FLAG_ENABLE_LINEAR_MOTOR", + "value": 5 + }, + { + "name": "FLAG_MAX", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_param_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2018184242, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2599835054, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + } + ] + }, + { + "name": "set_param_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2018184242, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2599835054, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + } + ] + }, + { + "name": "set_param_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2018184242, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_z", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2599835054, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::Generic6DOFJoint3D.Param" + } + ] + }, + { + "name": "set_flag_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2451594564, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_flag_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2122427807, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + } + ] + }, + { + "name": "set_flag_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2451594564, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_flag_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2122427807, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + } + ] + }, + { + "name": "set_flag_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2451594564, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_flag_z", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2122427807, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::Generic6DOFJoint3D.Flag" + } + ] + } + ] + }, + { + "name": "Geometry2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "PolyBooleanOperation", + "is_bitfield": false, + "values": [ + { + "name": "OPERATION_UNION", + "value": 0 + }, + { + "name": "OPERATION_DIFFERENCE", + "value": 1 + }, + { + "name": "OPERATION_INTERSECTION", + "value": 2 + }, + { + "name": "OPERATION_XOR", + "value": 3 + } + ] + }, + { + "name": "PolyJoinType", + "is_bitfield": false, + "values": [ + { + "name": "JOIN_SQUARE", + "value": 0 + }, + { + "name": "JOIN_ROUND", + "value": 1 + }, + { + "name": "JOIN_MITER", + "value": 2 + } + ] + }, + { + "name": "PolyEndType", + "is_bitfield": false, + "values": [ + { + "name": "END_POLYGON", + "value": 0 + }, + { + "name": "END_JOINED", + "value": 1 + }, + { + "name": "END_BUTT", + "value": 2 + }, + { + "name": "END_SQUARE", + "value": 3 + }, + { + "name": "END_ROUND", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "is_point_in_circle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2929491703, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "circle_position", + "type": "Vector2" + }, + { + "name": "circle_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "segment_intersects_circle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1356928167, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "segment_from", + "type": "Vector2" + }, + { + "name": "segment_to", + "type": "Vector2" + }, + { + "name": "circle_position", + "type": "Vector2" + }, + { + "name": "circle_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "segment_intersects_segment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2058025344, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "from_a", + "type": "Vector2" + }, + { + "name": "to_a", + "type": "Vector2" + }, + { + "name": "from_b", + "type": "Vector2" + }, + { + "name": "to_b", + "type": "Vector2" + } + ] + }, + { + "name": "line_intersects_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2058025344, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "from_a", + "type": "Vector2" + }, + { + "name": "dir_a", + "type": "Vector2" + }, + { + "name": "from_b", + "type": "Vector2" + }, + { + "name": "dir_b", + "type": "Vector2" + } + ] + }, + { + "name": "get_closest_points_between_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3344690961, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "p1", + "type": "Vector2" + }, + { + "name": "q1", + "type": "Vector2" + }, + { + "name": "p2", + "type": "Vector2" + }, + { + "name": "q2", + "type": "Vector2" + } + ] + }, + { + "name": "get_closest_point_to_segment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4172901909, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "s1", + "type": "Vector2" + }, + { + "name": "s2", + "type": "Vector2" + } + ] + }, + { + "name": "get_closest_point_to_segment_uncapped", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4172901909, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "s1", + "type": "Vector2" + }, + { + "name": "s2", + "type": "Vector2" + } + ] + }, + { + "name": "point_is_inside_triangle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025948137, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "a", + "type": "Vector2" + }, + { + "name": "b", + "type": "Vector2" + }, + { + "name": "c", + "type": "Vector2" + } + ] + }, + { + "name": "is_polygon_clockwise", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1361156557, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "is_point_in_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 738277916, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "triangulate_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1389921771, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "triangulate_delaunay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1389921771, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "convex_hull", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2004331998, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "decompose_polygon_in_convex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3982393695, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "merge_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon_a", + "type": "PackedVector2Array" + }, + { + "name": "polygon_b", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "clip_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon_a", + "type": "PackedVector2Array" + }, + { + "name": "polygon_b", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "intersect_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon_a", + "type": "PackedVector2Array" + }, + { + "name": "polygon_b", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "exclude_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon_a", + "type": "PackedVector2Array" + }, + { + "name": "polygon_b", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "clip_polyline_with_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polyline", + "type": "PackedVector2Array" + }, + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "intersect_polyline_with_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3637387053, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polyline", + "type": "PackedVector2Array" + }, + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "offset_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3837618924, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + }, + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "join_type", + "type": "enum::Geometry2D.PolyJoinType", + "default_value": "0" + } + ] + }, + { + "name": "offset_polyline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 328033063, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "polyline", + "type": "PackedVector2Array" + }, + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "join_type", + "type": "enum::Geometry2D.PolyJoinType", + "default_value": "0" + }, + { + "name": "end_type", + "type": "enum::Geometry2D.PolyEndType", + "default_value": "3" + } + ] + }, + { + "name": "make_atlas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1337682371, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "sizes", + "type": "PackedVector2Array" + } + ] + } + ] + }, + { + "name": "Geometry3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "build_box_planes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3622277145, + "return_value": { + "type": "typedarray::Plane" + }, + "arguments": [ + { + "name": "extents", + "type": "Vector3" + } + ] + }, + { + "name": "build_cylinder_planes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3142160516, + "return_value": { + "type": "typedarray::Plane" + }, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "height", + "type": "float", + "meta": "float" + }, + { + "name": "sides", + "type": "int", + "meta": "int32" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis", + "default_value": "2" + } + ] + }, + { + "name": "build_capsule_planes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410870045, + "return_value": { + "type": "typedarray::Plane" + }, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "height", + "type": "float", + "meta": "float" + }, + { + "name": "sides", + "type": "int", + "meta": "int32" + }, + { + "name": "lats", + "type": "int", + "meta": "int32" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis", + "default_value": "2" + } + ] + }, + { + "name": "get_closest_points_between_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1056373962, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "p1", + "type": "Vector3" + }, + { + "name": "p2", + "type": "Vector3" + }, + { + "name": "q1", + "type": "Vector3" + }, + { + "name": "q2", + "type": "Vector3" + } + ] + }, + { + "name": "get_closest_point_to_segment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168193209, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "point", + "type": "Vector3" + }, + { + "name": "s1", + "type": "Vector3" + }, + { + "name": "s2", + "type": "Vector3" + } + ] + }, + { + "name": "get_closest_point_to_segment_uncapped", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168193209, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "point", + "type": "Vector3" + }, + { + "name": "s1", + "type": "Vector3" + }, + { + "name": "s2", + "type": "Vector3" + } + ] + }, + { + "name": "ray_intersects_triangle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1718655448, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "dir", + "type": "Vector3" + }, + { + "name": "a", + "type": "Vector3" + }, + { + "name": "b", + "type": "Vector3" + }, + { + "name": "c", + "type": "Vector3" + } + ] + }, + { + "name": "segment_intersects_triangle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1718655448, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "a", + "type": "Vector3" + }, + { + "name": "b", + "type": "Vector3" + }, + { + "name": "c", + "type": "Vector3" + } + ] + }, + { + "name": "segment_intersects_sphere", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4080141172, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "sphere_position", + "type": "Vector3" + }, + { + "name": "sphere_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "segment_intersects_cylinder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2361316491, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "height", + "type": "float", + "meta": "float" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "segment_intersects_convex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 537425332, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "planes", + "type": "Array" + } + ] + }, + { + "name": "clip_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2603188319, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "points", + "type": "PackedVector3Array" + }, + { + "name": "plane", + "type": "Plane" + } + ] + } + ] + }, + { + "name": "GeometryInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "ShadowCastingSetting", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_CASTING_SETTING_OFF", + "value": 0 + }, + { + "name": "SHADOW_CASTING_SETTING_ON", + "value": 1 + }, + { + "name": "SHADOW_CASTING_SETTING_DOUBLE_SIDED", + "value": 2 + }, + { + "name": "SHADOW_CASTING_SETTING_SHADOWS_ONLY", + "value": 3 + } + ] + }, + { + "name": "GIMode", + "is_bitfield": false, + "values": [ + { + "name": "GI_MODE_DISABLED", + "value": 0 + }, + { + "name": "GI_MODE_STATIC", + "value": 1 + }, + { + "name": "GI_MODE_DYNAMIC", + "value": 2 + } + ] + }, + { + "name": "LightmapScale", + "is_bitfield": false, + "values": [ + { + "name": "LIGHTMAP_SCALE_1X", + "value": 0 + }, + { + "name": "LIGHTMAP_SCALE_2X", + "value": 1 + }, + { + "name": "LIGHTMAP_SCALE_4X", + "value": 2 + }, + { + "name": "LIGHTMAP_SCALE_8X", + "value": 3 + }, + { + "name": "LIGHTMAP_SCALE_MAX", + "value": 4 + } + ] + }, + { + "name": "VisibilityRangeFadeMode", + "is_bitfield": false, + "values": [ + { + "name": "VISIBILITY_RANGE_FADE_DISABLED", + "value": 0 + }, + { + "name": "VISIBILITY_RANGE_FADE_SELF", + "value": 1 + }, + { + "name": "VISIBILITY_RANGE_FADE_DEPENDENCIES", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_material_overlay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material_overlay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_cast_shadows_setting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 856677339, + "arguments": [ + { + "name": "shadow_casting_setting", + "type": "enum::GeometryInstance3D.ShadowCastingSetting" + } + ] + }, + { + "name": "get_cast_shadows_setting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3383019359, + "return_value": { + "type": "enum::GeometryInstance3D.ShadowCastingSetting" + } + }, + { + "name": "set_lod_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lod_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_transparency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "transparency", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_transparency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_visibility_range_end_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visibility_range_end_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_visibility_range_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visibility_range_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_visibility_range_begin_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visibility_range_begin_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_visibility_range_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visibility_range_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_visibility_range_fade_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1440117808, + "arguments": [ + { + "name": "mode", + "type": "enum::GeometryInstance3D.VisibilityRangeFadeMode" + } + ] + }, + { + "name": "get_visibility_range_fade_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2067221882, + "return_value": { + "type": "enum::GeometryInstance3D.VisibilityRangeFadeMode" + } + }, + { + "name": "set_instance_shader_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_instance_shader_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "set_extra_cull_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_extra_cull_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_lightmap_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2462696582, + "arguments": [ + { + "name": "scale", + "type": "enum::GeometryInstance3D.LightmapScale" + } + ] + }, + { + "name": "get_lightmap_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 798767852, + "return_value": { + "type": "enum::GeometryInstance3D.LightmapScale" + } + }, + { + "name": "set_gi_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2548557163, + "arguments": [ + { + "name": "mode", + "type": "enum::GeometryInstance3D.GIMode" + } + ] + }, + { + "name": "get_gi_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2188566509, + "return_value": { + "type": "enum::GeometryInstance3D.GIMode" + } + }, + { + "name": "set_ignore_occlusion_culling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore_culling", + "type": "bool" + } + ] + }, + { + "name": "is_ignoring_occlusion_culling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + } + ], + "properties": [ + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material_override", + "setter": "set_material_override", + "getter": "get_material_override" + }, + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material_overlay", + "setter": "set_material_overlay", + "getter": "get_material_overlay" + }, + { + "type": "float", + "name": "transparency", + "setter": "set_transparency", + "getter": "get_transparency" + }, + { + "type": "int", + "name": "cast_shadow", + "setter": "set_cast_shadows_setting", + "getter": "get_cast_shadows_setting" + }, + { + "type": "float", + "name": "extra_cull_margin", + "setter": "set_extra_cull_margin", + "getter": "get_extra_cull_margin" + }, + { + "type": "AABB", + "name": "custom_aabb", + "setter": "set_custom_aabb", + "getter": "get_custom_aabb" + }, + { + "type": "float", + "name": "lod_bias", + "setter": "set_lod_bias", + "getter": "get_lod_bias" + }, + { + "type": "bool", + "name": "ignore_occlusion_culling", + "setter": "set_ignore_occlusion_culling", + "getter": "is_ignoring_occlusion_culling" + }, + { + "type": "int", + "name": "gi_mode", + "setter": "set_gi_mode", + "getter": "get_gi_mode" + }, + { + "type": "int", + "name": "gi_lightmap_scale", + "setter": "set_lightmap_scale", + "getter": "get_lightmap_scale" + }, + { + "type": "float", + "name": "visibility_range_begin", + "setter": "set_visibility_range_begin", + "getter": "get_visibility_range_begin" + }, + { + "type": "float", + "name": "visibility_range_begin_margin", + "setter": "set_visibility_range_begin_margin", + "getter": "get_visibility_range_begin_margin" + }, + { + "type": "float", + "name": "visibility_range_end", + "setter": "set_visibility_range_end", + "getter": "get_visibility_range_end" + }, + { + "type": "float", + "name": "visibility_range_end_margin", + "setter": "set_visibility_range_end_margin", + "getter": "get_visibility_range_end_margin" + }, + { + "type": "int", + "name": "visibility_range_fade_mode", + "setter": "set_visibility_range_fade_mode", + "getter": "get_visibility_range_fade_mode" + } + ] + }, + { + "name": "GodotPhysicsServer2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "PhysicsServer2D", + "api_type": "core" + }, + { + "name": "GodotPhysicsServer3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "PhysicsServer3D", + "api_type": "core" + }, + { + "name": "Gradient", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "InterpolationMode", + "is_bitfield": false, + "values": [ + { + "name": "GRADIENT_INTERPOLATE_LINEAR", + "value": 0 + }, + { + "name": "GRADIENT_INTERPOLATE_CONSTANT", + "value": 1 + }, + { + "name": "GRADIENT_INTERPOLATE_CUBIC", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3629403827, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025615559, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "reverse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2624840992, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "point", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "sample", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1250405064, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_offsets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "offsets", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "get_offsets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675695659, + "return_value": { + "type": "PackedFloat32Array" + } + }, + { + "name": "set_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3546319833, + "arguments": [ + { + "name": "colors", + "type": "PackedColorArray" + } + ] + }, + { + "name": "get_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "set_interpolation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1971444490, + "arguments": [ + { + "name": "interpolation_mode", + "type": "enum::Gradient.InterpolationMode" + } + ] + }, + { + "name": "get_interpolation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3674172981, + "return_value": { + "type": "enum::Gradient.InterpolationMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "interpolation_mode", + "setter": "set_interpolation_mode", + "getter": "get_interpolation_mode" + }, + { + "type": "PackedFloat32Array", + "name": "offsets", + "setter": "set_offsets", + "getter": "get_offsets" + }, + { + "type": "PackedColorArray", + "name": "colors", + "setter": "set_colors", + "getter": "get_colors" + } + ] + }, + { + "name": "GradientTexture1D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_gradient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "gradient", + "type": "Gradient" + } + ] + }, + { + "name": "get_gradient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_use_hdr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_using_hdr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Gradient", + "name": "gradient", + "setter": "set_gradient", + "getter": "get_gradient" + }, + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "bool", + "name": "use_hdr", + "setter": "set_use_hdr", + "getter": "is_using_hdr" + } + ] + }, + { + "name": "GradientTexture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "enums": [ + { + "name": "Fill", + "is_bitfield": false, + "values": [ + { + "name": "FILL_LINEAR", + "value": 0 + }, + { + "name": "FILL_RADIAL", + "value": 1 + } + ] + }, + { + "name": "Repeat", + "is_bitfield": false, + "values": [ + { + "name": "REPEAT_NONE", + "value": 0 + }, + { + "name": "REPEAT", + "value": 1 + }, + { + "name": "REPEAT_MIRROR", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_gradient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "gradient", + "type": "Gradient" + } + ] + }, + { + "name": "get_gradient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_use_hdr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_using_hdr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_fill", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3623927636, + "arguments": [ + { + "name": "fill", + "type": "enum::GradientTexture2D.Fill" + } + ] + }, + { + "name": "get_fill", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1876227217, + "return_value": { + "type": "enum::GradientTexture2D.Fill" + } + }, + { + "name": "set_fill_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "fill_from", + "type": "Vector2" + } + ] + }, + { + "name": "get_fill_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_fill_to", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "fill_to", + "type": "Vector2" + } + ] + }, + { + "name": "get_fill_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1357597002, + "arguments": [ + { + "name": "repeat", + "type": "enum::GradientTexture2D.Repeat" + } + ] + }, + { + "name": "get_repeat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3351758665, + "return_value": { + "type": "enum::GradientTexture2D.Repeat" + } + } + ], + "properties": [ + { + "type": "Gradient", + "name": "gradient", + "setter": "set_gradient", + "getter": "get_gradient" + }, + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "bool", + "name": "use_hdr", + "setter": "set_use_hdr", + "getter": "is_using_hdr" + }, + { + "type": "int", + "name": "fill", + "setter": "set_fill", + "getter": "get_fill" + }, + { + "type": "Vector2", + "name": "fill_from", + "setter": "set_fill_from", + "getter": "get_fill_from" + }, + { + "type": "Vector2", + "name": "fill_to", + "setter": "set_fill_to", + "getter": "get_fill_to" + }, + { + "type": "int", + "name": "repeat", + "setter": "set_repeat", + "getter": "get_repeat" + } + ] + }, + { + "name": "GraphEdit", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "PanningScheme", + "is_bitfield": false, + "values": [ + { + "name": "SCROLL_ZOOMS", + "value": 0 + }, + { + "name": "SCROLL_PANS", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_is_in_input_hotzone", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "in_node", + "type": "Object" + }, + { + "name": "in_port", + "type": "int", + "meta": "int32" + }, + { + "name": "mouse_position", + "type": "Vector2" + } + ] + }, + { + "name": "_is_in_output_hotzone", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "in_node", + "type": "Object" + }, + { + "name": "in_port", + "type": "int", + "meta": "int32" + }, + { + "name": "mouse_position", + "type": "Vector2" + } + ] + }, + { + "name": "_get_connection_line", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from_position", + "type": "Vector2" + }, + { + "name": "to_position", + "type": "Vector2" + } + ] + }, + { + "name": "_is_node_hover_valid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "connect_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 195065850, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_node_connected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4216241294, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "disconnect_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1933654315, + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_connection_activity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1141899943, + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_connection_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "clear_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "force_connection_drag_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_scroll_ofs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_scroll_ofs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "add_valid_right_disconnect_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_valid_right_disconnect_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_valid_left_disconnect_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_valid_left_disconnect_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_valid_connection_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_type", + "type": "int", + "meta": "int32" + }, + { + "name": "to_type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_valid_connection_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_type", + "type": "int", + "meta": "int32" + }, + { + "name": "to_type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_valid_connection_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from_type", + "type": "int", + "meta": "int32" + }, + { + "name": "to_type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1562168077, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from_node", + "type": "Vector2" + }, + { + "name": "to_node", + "type": "Vector2" + } + ] + }, + { + "name": "set_panning_scheme", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 18893313, + "arguments": [ + { + "name": "scheme", + "type": "enum::GraphEdit.PanningScheme" + } + ] + }, + { + "name": "get_panning_scheme", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 549924446, + "return_value": { + "type": "enum::GraphEdit.PanningScheme" + } + }, + { + "name": "set_zoom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zoom", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_zoom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_zoom_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zoom_min", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_zoom_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_zoom_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zoom_max", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_zoom_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_zoom_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "zoom_step", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_zoom_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_show_zoom_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_showing_zoom_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "pixels", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_snap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_snap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_snap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_connection_lines_curvature", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curvature", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_connection_lines_curvature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_connection_lines_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixels", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_connection_lines_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_connection_lines_antialiased", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pixels", + "type": "bool" + } + ] + }, + { + "name": "is_connection_lines_antialiased", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_minimap_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_minimap_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_minimap_opacity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "opacity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_minimap_opacity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_minimap_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_minimap_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_arrange_nodes_button_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_arrange_nodes_button_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_right_disconnects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_right_disconnects_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_zoom_hbox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3590609951, + "return_value": { + "type": "HBoxContainer" + } + }, + { + "name": "arrange_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + } + ], + "signals": [ + { + "name": "connection_request", + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int" + } + ] + }, + { + "name": "disconnection_request", + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int" + }, + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int" + } + ] + }, + { + "name": "popup_request", + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "duplicate_nodes_request" + }, + { + "name": "copy_nodes_request" + }, + { + "name": "paste_nodes_request" + }, + { + "name": "node_selected", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "node_deselected", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "connection_to_empty", + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int" + }, + { + "name": "release_position", + "type": "Vector2" + } + ] + }, + { + "name": "connection_from_empty", + "arguments": [ + { + "name": "to_node", + "type": "StringName" + }, + { + "name": "to_port", + "type": "int" + }, + { + "name": "release_position", + "type": "Vector2" + } + ] + }, + { + "name": "delete_nodes_request", + "arguments": [ + { + "name": "nodes", + "type": "typedarray::StringName" + } + ] + }, + { + "name": "begin_node_move" + }, + { + "name": "end_node_move" + }, + { + "name": "scroll_offset_changed", + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "connection_drag_started", + "arguments": [ + { + "name": "from_node", + "type": "StringName" + }, + { + "name": "from_port", + "type": "int" + }, + { + "name": "is_output", + "type": "bool" + } + ] + }, + { + "name": "connection_drag_ended" + } + ], + "properties": [ + { + "type": "bool", + "name": "right_disconnects", + "setter": "set_right_disconnects", + "getter": "is_right_disconnects_enabled" + }, + { + "type": "Vector2", + "name": "scroll_offset", + "setter": "set_scroll_ofs", + "getter": "get_scroll_ofs" + }, + { + "type": "int", + "name": "snap_distance", + "setter": "set_snap", + "getter": "get_snap" + }, + { + "type": "bool", + "name": "use_snap", + "setter": "set_use_snap", + "getter": "is_using_snap" + }, + { + "type": "int", + "name": "panning_scheme", + "setter": "set_panning_scheme", + "getter": "get_panning_scheme" + }, + { + "type": "float", + "name": "connection_lines_curvature", + "setter": "set_connection_lines_curvature", + "getter": "get_connection_lines_curvature" + }, + { + "type": "float", + "name": "connection_lines_thickness", + "setter": "set_connection_lines_thickness", + "getter": "get_connection_lines_thickness" + }, + { + "type": "bool", + "name": "connection_lines_antialiased", + "setter": "set_connection_lines_antialiased", + "getter": "is_connection_lines_antialiased" + }, + { + "type": "float", + "name": "zoom", + "setter": "set_zoom", + "getter": "get_zoom" + }, + { + "type": "float", + "name": "zoom_min", + "setter": "set_zoom_min", + "getter": "get_zoom_min" + }, + { + "type": "float", + "name": "zoom_max", + "setter": "set_zoom_max", + "getter": "get_zoom_max" + }, + { + "type": "float", + "name": "zoom_step", + "setter": "set_zoom_step", + "getter": "get_zoom_step" + }, + { + "type": "bool", + "name": "show_zoom_label", + "setter": "set_show_zoom_label", + "getter": "is_showing_zoom_label" + }, + { + "type": "bool", + "name": "minimap_enabled", + "setter": "set_minimap_enabled", + "getter": "is_minimap_enabled" + }, + { + "type": "Vector2", + "name": "minimap_size", + "setter": "set_minimap_size", + "getter": "get_minimap_size" + }, + { + "type": "float", + "name": "minimap_opacity", + "setter": "set_minimap_opacity", + "getter": "get_minimap_opacity" + }, + { + "type": "bool", + "name": "arrange_nodes_button_hidden", + "setter": "set_arrange_nodes_button_hidden", + "getter": "is_arrange_nodes_button_hidden" + } + ] + }, + { + "name": "GraphNode", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "Overlay", + "is_bitfield": false, + "values": [ + { + "name": "OVERLAY_DISABLED", + "value": 0 + }, + { + "name": "OVERLAY_BREAKPOINT", + "value": 1 + }, + { + "name": "OVERLAY_POSITION", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_slot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 902131739, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable_left_port", + "type": "bool" + }, + { + "name": "type_left", + "type": "int", + "meta": "int32" + }, + { + "name": "color_left", + "type": "Color" + }, + { + "name": "enable_right_port", + "type": "bool" + }, + { + "name": "type_right", + "type": "int", + "meta": "int32" + }, + { + "name": "color_right", + "type": "Color" + }, + { + "name": "custom_icon_left", + "type": "Texture2D", + "default_value": "null" + }, + { + "name": "custom_icon_right", + "type": "Texture2D", + "default_value": "null" + }, + { + "name": "draw_stylebox", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "clear_slot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_all_slots", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_slot_enabled_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_slot_enabled_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_type_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_slot_type_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_color_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_slot_color_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_enabled_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_slot_enabled_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_type_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_slot_type_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_color_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_slot_color_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_slot_draw_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_slot_draw_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "slot_index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_position_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_position_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_comment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "comment", + "type": "bool" + } + ] + }, + { + "name": "is_comment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_resizable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "resizable", + "type": "bool" + } + ] + }, + { + "name": "is_resizable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draggable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draggable", + "type": "bool" + } + ] + }, + { + "name": "is_draggable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "selectable", + "type": "bool" + } + ] + }, + { + "name": "is_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "selected", + "type": "bool" + } + ] + }, + { + "name": "is_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_connection_input_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_connection_input_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_input_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3114997196, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_input_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_input_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2624840992, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_input_slot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_output_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_connection_output_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_output_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3114997196, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_output_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_output_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2624840992, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_output_slot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_show_close_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "show", + "type": "bool" + } + ] + }, + { + "name": "is_close_button_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_overlay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3144190109, + "arguments": [ + { + "name": "overlay", + "type": "enum::GraphNode.Overlay" + } + ] + }, + { + "name": "get_overlay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2854257040, + "return_value": { + "type": "enum::GraphNode.Overlay" + } + } + ], + "signals": [ + { + "name": "position_offset_changed" + }, + { + "name": "node_selected" + }, + { + "name": "node_deselected" + }, + { + "name": "slot_updated", + "arguments": [ + { + "name": "idx", + "type": "int" + } + ] + }, + { + "name": "dragged", + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "raise_request" + }, + { + "name": "close_request" + }, + { + "name": "resize_request", + "arguments": [ + { + "name": "new_minsize", + "type": "Vector2" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "title", + "setter": "set_title", + "getter": "get_title" + }, + { + "type": "Vector2", + "name": "position_offset", + "setter": "set_position_offset", + "getter": "get_position_offset" + }, + { + "type": "bool", + "name": "show_close", + "setter": "set_show_close_button", + "getter": "is_close_button_visible" + }, + { + "type": "bool", + "name": "resizable", + "setter": "set_resizable", + "getter": "is_resizable" + }, + { + "type": "bool", + "name": "draggable", + "setter": "set_draggable", + "getter": "is_draggable" + }, + { + "type": "bool", + "name": "selectable", + "setter": "set_selectable", + "getter": "is_selectable" + }, + { + "type": "bool", + "name": "selected", + "setter": "set_selected", + "getter": "is_selected" + }, + { + "type": "bool", + "name": "comment", + "setter": "set_comment", + "getter": "is_comment" + }, + { + "type": "int", + "name": "overlay", + "setter": "set_overlay", + "getter": "get_overlay" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + } + ] + }, + { + "name": "GridContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "methods": [ + { + "name": "set_columns", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "columns", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_columns", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "columns", + "setter": "set_columns", + "getter": "get_columns" + } + ] + }, + { + "name": "GridMap", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "constants": [ + { + "name": "INVALID_CELL_ITEM", + "value": -1 + } + ], + "methods": [ + { + "name": "set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_physics_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784508650, + "arguments": [ + { + "name": "material", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2521850424, + "return_value": { + "type": "PhysicsMaterial" + } + }, + { + "name": "set_bake_navigation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "bake_navigation", + "type": "bool" + } + ] + }, + { + "name": "is_baking_navigation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_mesh_library", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1488083439, + "arguments": [ + { + "name": "mesh_library", + "type": "MeshLibrary" + } + ] + }, + { + "name": "get_mesh_library", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3350993772, + "return_value": { + "type": "MeshLibrary" + } + }, + { + "name": "set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_cell_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cell_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_octant_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_octant_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_cell_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4177201334, + "arguments": [ + { + "name": "position", + "type": "Vector3i" + }, + { + "name": "item", + "type": "int", + "meta": "int32" + }, + { + "name": "orientation", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_cell_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3724960147, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector3i" + } + ] + }, + { + "name": "get_cell_item_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3724960147, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector3i" + } + ] + }, + { + "name": "get_cell_item_basis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3493604918, + "return_value": { + "type": "Basis" + }, + "arguments": [ + { + "name": "position", + "type": "Vector3i" + } + ] + }, + { + "name": "get_basis_with_orthogonal_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2816196998, + "return_value": { + "type": "Basis" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_orthogonal_index_from_basis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4210359952, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "basis", + "type": "Basis" + } + ] + }, + { + "name": "local_to_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1257687843, + "return_value": { + "type": "Vector3i" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector3" + } + ] + }, + { + "name": "map_to_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1088329196, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map_position", + "type": "Vector3i" + } + ] + }, + { + "name": "resource_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "set_center_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_center_x", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_center_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_center_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_center_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_center_z", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_used_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Vector3i" + } + }, + { + "name": "get_used_cells_by_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "typedarray::Vector3i" + }, + "arguments": [ + { + "name": "item", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_meshes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_bake_meshes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_bake_mesh_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 937000113, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_baked_meshes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "make_baked_meshes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1135556294, + "arguments": [ + { + "name": "gen_lightmap_uv", + "type": "bool", + "default_value": "false" + }, + { + "name": "lightmap_uv_texel_size", + "type": "float", + "meta": "float", + "default_value": "0.1" + } + ] + } + ], + "signals": [ + { + "name": "cell_size_changed", + "arguments": [ + { + "name": "cell_size", + "type": "Vector3" + } + ] + } + ], + "properties": [ + { + "type": "MeshLibrary", + "name": "mesh_library", + "setter": "set_mesh_library", + "getter": "get_mesh_library" + }, + { + "type": "PhysicsMaterial", + "name": "physics_material", + "setter": "set_physics_material", + "getter": "get_physics_material" + }, + { + "type": "Vector3", + "name": "cell_size", + "setter": "set_cell_size", + "getter": "get_cell_size" + }, + { + "type": "int", + "name": "cell_octant_size", + "setter": "set_octant_size", + "getter": "get_octant_size" + }, + { + "type": "bool", + "name": "cell_center_x", + "setter": "set_center_x", + "getter": "get_center_x" + }, + { + "type": "bool", + "name": "cell_center_y", + "setter": "set_center_y", + "getter": "get_center_y" + }, + { + "type": "bool", + "name": "cell_center_z", + "setter": "set_center_z", + "getter": "get_center_z" + }, + { + "type": "float", + "name": "cell_scale", + "setter": "set_cell_scale", + "getter": "get_cell_scale" + }, + { + "type": "int", + "name": "collision_layer", + "setter": "set_collision_layer", + "getter": "get_collision_layer" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "float", + "name": "collision_priority", + "setter": "set_collision_priority", + "getter": "get_collision_priority" + }, + { + "type": "bool", + "name": "bake_navigation", + "setter": "set_bake_navigation", + "getter": "is_baking_navigation" + } + ] + }, + { + "name": "GrooveJoint2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint2D", + "api_type": "core", + "methods": [ + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_initial_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_initial_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "float", + "name": "initial_offset", + "setter": "set_initial_offset", + "getter": "get_initial_offset" + } + ] + }, + { + "name": "HBoxContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "BoxContainer", + "api_type": "core" + }, + { + "name": "HFlowContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "FlowContainer", + "api_type": "core" + }, + { + "name": "HMACContext", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3537364598, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "hash_type", + "type": "enum::HashingContext.HashType" + }, + { + "name": "key", + "type": "PackedByteArray" + } + ] + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + } + ] + }, + { + "name": "HScrollBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "ScrollBar", + "api_type": "core" + }, + { + "name": "HSeparator", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Separator", + "api_type": "core" + }, + { + "name": "HSlider", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Slider", + "api_type": "core" + }, + { + "name": "HSplitContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SplitContainer", + "api_type": "core" + }, + { + "name": "HTTPClient", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "Method", + "is_bitfield": false, + "values": [ + { + "name": "METHOD_GET", + "value": 0 + }, + { + "name": "METHOD_HEAD", + "value": 1 + }, + { + "name": "METHOD_POST", + "value": 2 + }, + { + "name": "METHOD_PUT", + "value": 3 + }, + { + "name": "METHOD_DELETE", + "value": 4 + }, + { + "name": "METHOD_OPTIONS", + "value": 5 + }, + { + "name": "METHOD_TRACE", + "value": 6 + }, + { + "name": "METHOD_CONNECT", + "value": 7 + }, + { + "name": "METHOD_PATCH", + "value": 8 + }, + { + "name": "METHOD_MAX", + "value": 9 + } + ] + }, + { + "name": "Status", + "is_bitfield": false, + "values": [ + { + "name": "STATUS_DISCONNECTED", + "value": 0 + }, + { + "name": "STATUS_RESOLVING", + "value": 1 + }, + { + "name": "STATUS_CANT_RESOLVE", + "value": 2 + }, + { + "name": "STATUS_CONNECTING", + "value": 3 + }, + { + "name": "STATUS_CANT_CONNECT", + "value": 4 + }, + { + "name": "STATUS_CONNECTED", + "value": 5 + }, + { + "name": "STATUS_REQUESTING", + "value": 6 + }, + { + "name": "STATUS_BODY", + "value": 7 + }, + { + "name": "STATUS_CONNECTION_ERROR", + "value": 8 + }, + { + "name": "STATUS_TLS_HANDSHAKE_ERROR", + "value": 9 + } + ] + }, + { + "name": "ResponseCode", + "is_bitfield": false, + "values": [ + { + "name": "RESPONSE_CONTINUE", + "value": 100 + }, + { + "name": "RESPONSE_SWITCHING_PROTOCOLS", + "value": 101 + }, + { + "name": "RESPONSE_PROCESSING", + "value": 102 + }, + { + "name": "RESPONSE_OK", + "value": 200 + }, + { + "name": "RESPONSE_CREATED", + "value": 201 + }, + { + "name": "RESPONSE_ACCEPTED", + "value": 202 + }, + { + "name": "RESPONSE_NON_AUTHORITATIVE_INFORMATION", + "value": 203 + }, + { + "name": "RESPONSE_NO_CONTENT", + "value": 204 + }, + { + "name": "RESPONSE_RESET_CONTENT", + "value": 205 + }, + { + "name": "RESPONSE_PARTIAL_CONTENT", + "value": 206 + }, + { + "name": "RESPONSE_MULTI_STATUS", + "value": 207 + }, + { + "name": "RESPONSE_ALREADY_REPORTED", + "value": 208 + }, + { + "name": "RESPONSE_IM_USED", + "value": 226 + }, + { + "name": "RESPONSE_MULTIPLE_CHOICES", + "value": 300 + }, + { + "name": "RESPONSE_MOVED_PERMANENTLY", + "value": 301 + }, + { + "name": "RESPONSE_FOUND", + "value": 302 + }, + { + "name": "RESPONSE_SEE_OTHER", + "value": 303 + }, + { + "name": "RESPONSE_NOT_MODIFIED", + "value": 304 + }, + { + "name": "RESPONSE_USE_PROXY", + "value": 305 + }, + { + "name": "RESPONSE_SWITCH_PROXY", + "value": 306 + }, + { + "name": "RESPONSE_TEMPORARY_REDIRECT", + "value": 307 + }, + { + "name": "RESPONSE_PERMANENT_REDIRECT", + "value": 308 + }, + { + "name": "RESPONSE_BAD_REQUEST", + "value": 400 + }, + { + "name": "RESPONSE_UNAUTHORIZED", + "value": 401 + }, + { + "name": "RESPONSE_PAYMENT_REQUIRED", + "value": 402 + }, + { + "name": "RESPONSE_FORBIDDEN", + "value": 403 + }, + { + "name": "RESPONSE_NOT_FOUND", + "value": 404 + }, + { + "name": "RESPONSE_METHOD_NOT_ALLOWED", + "value": 405 + }, + { + "name": "RESPONSE_NOT_ACCEPTABLE", + "value": 406 + }, + { + "name": "RESPONSE_PROXY_AUTHENTICATION_REQUIRED", + "value": 407 + }, + { + "name": "RESPONSE_REQUEST_TIMEOUT", + "value": 408 + }, + { + "name": "RESPONSE_CONFLICT", + "value": 409 + }, + { + "name": "RESPONSE_GONE", + "value": 410 + }, + { + "name": "RESPONSE_LENGTH_REQUIRED", + "value": 411 + }, + { + "name": "RESPONSE_PRECONDITION_FAILED", + "value": 412 + }, + { + "name": "RESPONSE_REQUEST_ENTITY_TOO_LARGE", + "value": 413 + }, + { + "name": "RESPONSE_REQUEST_URI_TOO_LONG", + "value": 414 + }, + { + "name": "RESPONSE_UNSUPPORTED_MEDIA_TYPE", + "value": 415 + }, + { + "name": "RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE", + "value": 416 + }, + { + "name": "RESPONSE_EXPECTATION_FAILED", + "value": 417 + }, + { + "name": "RESPONSE_IM_A_TEAPOT", + "value": 418 + }, + { + "name": "RESPONSE_MISDIRECTED_REQUEST", + "value": 421 + }, + { + "name": "RESPONSE_UNPROCESSABLE_ENTITY", + "value": 422 + }, + { + "name": "RESPONSE_LOCKED", + "value": 423 + }, + { + "name": "RESPONSE_FAILED_DEPENDENCY", + "value": 424 + }, + { + "name": "RESPONSE_UPGRADE_REQUIRED", + "value": 426 + }, + { + "name": "RESPONSE_PRECONDITION_REQUIRED", + "value": 428 + }, + { + "name": "RESPONSE_TOO_MANY_REQUESTS", + "value": 429 + }, + { + "name": "RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE", + "value": 431 + }, + { + "name": "RESPONSE_UNAVAILABLE_FOR_LEGAL_REASONS", + "value": 451 + }, + { + "name": "RESPONSE_INTERNAL_SERVER_ERROR", + "value": 500 + }, + { + "name": "RESPONSE_NOT_IMPLEMENTED", + "value": 501 + }, + { + "name": "RESPONSE_BAD_GATEWAY", + "value": 502 + }, + { + "name": "RESPONSE_SERVICE_UNAVAILABLE", + "value": 503 + }, + { + "name": "RESPONSE_GATEWAY_TIMEOUT", + "value": 504 + }, + { + "name": "RESPONSE_HTTP_VERSION_NOT_SUPPORTED", + "value": 505 + }, + { + "name": "RESPONSE_VARIANT_ALSO_NEGOTIATES", + "value": 506 + }, + { + "name": "RESPONSE_INSUFFICIENT_STORAGE", + "value": 507 + }, + { + "name": "RESPONSE_LOOP_DETECTED", + "value": 508 + }, + { + "name": "RESPONSE_NOT_EXTENDED", + "value": 510 + }, + { + "name": "RESPONSE_NETWORK_AUTH_REQUIRED", + "value": 511 + } + ] + } + ], + "methods": [ + { + "name": "connect_to_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1970282951, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "tls_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "set_connection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3281897016, + "arguments": [ + { + "name": "connection", + "type": "StreamPeer" + } + ] + }, + { + "name": "get_connection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2741655269, + "return_value": { + "type": "StreamPeer" + } + }, + { + "name": "request_raw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 540161961, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "method", + "type": "enum::HTTPClient.Method" + }, + { + "name": "url", + "type": "String" + }, + { + "name": "headers", + "type": "PackedStringArray" + }, + { + "name": "body", + "type": "PackedByteArray" + } + ] + }, + { + "name": "request", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3249905507, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "method", + "type": "enum::HTTPClient.Method" + }, + { + "name": "url", + "type": "String" + }, + { + "name": "headers", + "type": "PackedStringArray" + }, + { + "name": "body", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "has_response", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_response_chunked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_response_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_response_headers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_response_headers_as_dictionary", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_response_body_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "read_response_body_chunk", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "set_read_chunk_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_read_chunk_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_blocking_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_blocking_mode_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1426656811, + "return_value": { + "type": "enum::HTTPClient.Status" + } + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "set_http_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_https_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "query_string_from_dict", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2538086567, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "fields", + "type": "Dictionary" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "blocking_mode_enabled", + "setter": "set_blocking_mode", + "getter": "is_blocking_mode_enabled" + }, + { + "type": "StreamPeer", + "name": "connection", + "setter": "set_connection", + "getter": "get_connection" + }, + { + "type": "int", + "name": "read_chunk_size", + "setter": "set_read_chunk_size", + "getter": "get_read_chunk_size" + } + ] + }, + { + "name": "HTTPRequest", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "Result", + "is_bitfield": false, + "values": [ + { + "name": "RESULT_SUCCESS", + "value": 0 + }, + { + "name": "RESULT_CHUNKED_BODY_SIZE_MISMATCH", + "value": 1 + }, + { + "name": "RESULT_CANT_CONNECT", + "value": 2 + }, + { + "name": "RESULT_CANT_RESOLVE", + "value": 3 + }, + { + "name": "RESULT_CONNECTION_ERROR", + "value": 4 + }, + { + "name": "RESULT_TLS_HANDSHAKE_ERROR", + "value": 5 + }, + { + "name": "RESULT_NO_RESPONSE", + "value": 6 + }, + { + "name": "RESULT_BODY_SIZE_LIMIT_EXCEEDED", + "value": 7 + }, + { + "name": "RESULT_BODY_DECOMPRESS_FAILED", + "value": 8 + }, + { + "name": "RESULT_REQUEST_FAILED", + "value": 9 + }, + { + "name": "RESULT_DOWNLOAD_FILE_CANT_OPEN", + "value": 10 + }, + { + "name": "RESULT_DOWNLOAD_FILE_WRITE_ERROR", + "value": 11 + }, + { + "name": "RESULT_REDIRECT_LIMIT_REACHED", + "value": 12 + }, + { + "name": "RESULT_TIMEOUT", + "value": 13 + } + ] + } + ], + "methods": [ + { + "name": "request", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2720304520, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "url", + "type": "String" + }, + { + "name": "custom_headers", + "type": "PackedStringArray", + "default_value": "PackedStringArray()" + }, + { + "name": "method", + "type": "enum::HTTPClient.Method", + "default_value": "0" + }, + { + "name": "request_data", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "request_raw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4282724657, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "url", + "type": "String" + }, + { + "name": "custom_headers", + "type": "PackedStringArray", + "default_value": "PackedStringArray()" + }, + { + "name": "method", + "type": "enum::HTTPClient.Method", + "default_value": "0" + }, + { + "name": "request_data_raw", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + } + ] + }, + { + "name": "cancel_request", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_tls_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2210231844, + "arguments": [ + { + "name": "client_options", + "type": "TLSOptions" + } + ] + }, + { + "name": "get_http_client_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1426656811, + "return_value": { + "type": "enum::HTTPClient.Status" + } + }, + { + "name": "set_use_threads", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_threads", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_accept_gzip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_accepting_gzip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_body_size_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_body_size_limit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_redirects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_redirects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_download_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_download_file", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_downloaded_bytes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_body_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_timeout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "timeout", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_timeout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_download_chunk_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "chunk_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_download_chunk_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_http_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_https_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "request_completed", + "arguments": [ + { + "name": "result", + "type": "int" + }, + { + "name": "response_code", + "type": "int" + }, + { + "name": "headers", + "type": "PackedStringArray" + }, + { + "name": "body", + "type": "PackedByteArray" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "download_file", + "setter": "set_download_file", + "getter": "get_download_file" + }, + { + "type": "int", + "name": "download_chunk_size", + "setter": "set_download_chunk_size", + "getter": "get_download_chunk_size" + }, + { + "type": "bool", + "name": "use_threads", + "setter": "set_use_threads", + "getter": "is_using_threads" + }, + { + "type": "bool", + "name": "accept_gzip", + "setter": "set_accept_gzip", + "getter": "is_accepting_gzip" + }, + { + "type": "int", + "name": "body_size_limit", + "setter": "set_body_size_limit", + "getter": "get_body_size_limit" + }, + { + "type": "int", + "name": "max_redirects", + "setter": "set_max_redirects", + "getter": "get_max_redirects" + }, + { + "type": "float", + "name": "timeout", + "setter": "set_timeout", + "getter": "get_timeout" + } + ] + }, + { + "name": "HashingContext", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "HashType", + "is_bitfield": false, + "values": [ + { + "name": "HASH_MD5", + "value": 0 + }, + { + "name": "HASH_SHA1", + "value": 1 + }, + { + "name": "HASH_SHA256", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3940338335, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "type", + "type": "enum::HashingContext.HashType" + } + ] + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "chunk", + "type": "PackedByteArray" + } + ] + }, + { + "name": "finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + } + ] + }, + { + "name": "HeightMapShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_map_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_map_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_map_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_map_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_map_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "data", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "get_map_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675695659, + "return_value": { + "type": "PackedFloat32Array" + } + } + ], + "properties": [ + { + "type": "int", + "name": "map_width", + "setter": "set_map_width", + "getter": "get_map_width" + }, + { + "type": "int", + "name": "map_depth", + "setter": "set_map_depth", + "getter": "get_map_depth" + }, + { + "type": "PackedFloat32Array", + "name": "map_data", + "setter": "set_map_data", + "getter": "get_map_data" + } + ] + }, + { + "name": "HingeJoint3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_BIAS", + "value": 0 + }, + { + "name": "PARAM_LIMIT_UPPER", + "value": 1 + }, + { + "name": "PARAM_LIMIT_LOWER", + "value": 2 + }, + { + "name": "PARAM_LIMIT_BIAS", + "value": 3 + }, + { + "name": "PARAM_LIMIT_SOFTNESS", + "value": 4 + }, + { + "name": "PARAM_LIMIT_RELAXATION", + "value": 5 + }, + { + "name": "PARAM_MOTOR_TARGET_VELOCITY", + "value": 6 + }, + { + "name": "PARAM_MOTOR_MAX_IMPULSE", + "value": 7 + }, + { + "name": "PARAM_MAX", + "value": 8 + } + ] + }, + { + "name": "Flag", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_USE_LIMIT", + "value": 0 + }, + { + "name": "FLAG_ENABLE_MOTOR", + "value": 1 + }, + { + "name": "FLAG_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082977519, + "arguments": [ + { + "name": "param", + "type": "enum::HingeJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4066002676, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::HingeJoint3D.Param" + } + ] + }, + { + "name": "set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1083494620, + "arguments": [ + { + "name": "flag", + "type": "enum::HingeJoint3D.Flag" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841369610, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::HingeJoint3D.Flag" + } + ] + } + ] + }, + { + "name": "IP", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "RESOLVER_MAX_QUERIES", + "value": 256 + }, + { + "name": "RESOLVER_INVALID_ID", + "value": -1 + } + ], + "enums": [ + { + "name": "ResolverStatus", + "is_bitfield": false, + "values": [ + { + "name": "RESOLVER_STATUS_NONE", + "value": 0 + }, + { + "name": "RESOLVER_STATUS_WAITING", + "value": 1 + }, + { + "name": "RESOLVER_STATUS_DONE", + "value": 2 + }, + { + "name": "RESOLVER_STATUS_ERROR", + "value": 3 + } + ] + }, + { + "name": "Type", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_NONE", + "value": 0 + }, + { + "name": "TYPE_IPV4", + "value": 1 + }, + { + "name": "TYPE_IPV6", + "value": 2 + }, + { + "name": "TYPE_ANY", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "resolve_hostname", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 396864159, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "ip_type", + "type": "enum::IP.Type", + "default_value": "3" + } + ] + }, + { + "name": "resolve_hostname_addresses", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3462780090, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "ip_type", + "type": "enum::IP.Type", + "default_value": "3" + } + ] + }, + { + "name": "resolve_hostname_queue_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3936392508, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "ip_type", + "type": "enum::IP.Type", + "default_value": "3" + } + ] + }, + { + "name": "get_resolve_item_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3812250196, + "return_value": { + "type": "enum::IP.ResolverStatus" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_resolve_item_address", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_resolve_item_addresses", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "erase_resolve_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_local_addresses", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_local_interfaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "clear_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3005725572, + "arguments": [ + { + "name": "hostname", + "type": "String", + "default_value": "\"\"" + } + ] + } + ] + }, + { + "name": "IPUnix", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "IP", + "api_type": "core" + }, + { + "name": "Image", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "constants": [ + { + "name": "MAX_WIDTH", + "value": 16777216 + }, + { + "name": "MAX_HEIGHT", + "value": 16777216 + } + ], + "enums": [ + { + "name": "Format", + "is_bitfield": false, + "values": [ + { + "name": "FORMAT_L8", + "value": 0 + }, + { + "name": "FORMAT_LA8", + "value": 1 + }, + { + "name": "FORMAT_R8", + "value": 2 + }, + { + "name": "FORMAT_RG8", + "value": 3 + }, + { + "name": "FORMAT_RGB8", + "value": 4 + }, + { + "name": "FORMAT_RGBA8", + "value": 5 + }, + { + "name": "FORMAT_RGBA4444", + "value": 6 + }, + { + "name": "FORMAT_RGB565", + "value": 7 + }, + { + "name": "FORMAT_RF", + "value": 8 + }, + { + "name": "FORMAT_RGF", + "value": 9 + }, + { + "name": "FORMAT_RGBF", + "value": 10 + }, + { + "name": "FORMAT_RGBAF", + "value": 11 + }, + { + "name": "FORMAT_RH", + "value": 12 + }, + { + "name": "FORMAT_RGH", + "value": 13 + }, + { + "name": "FORMAT_RGBH", + "value": 14 + }, + { + "name": "FORMAT_RGBAH", + "value": 15 + }, + { + "name": "FORMAT_RGBE9995", + "value": 16 + }, + { + "name": "FORMAT_DXT1", + "value": 17 + }, + { + "name": "FORMAT_DXT3", + "value": 18 + }, + { + "name": "FORMAT_DXT5", + "value": 19 + }, + { + "name": "FORMAT_RGTC_R", + "value": 20 + }, + { + "name": "FORMAT_RGTC_RG", + "value": 21 + }, + { + "name": "FORMAT_BPTC_RGBA", + "value": 22 + }, + { + "name": "FORMAT_BPTC_RGBF", + "value": 23 + }, + { + "name": "FORMAT_BPTC_RGBFU", + "value": 24 + }, + { + "name": "FORMAT_ETC", + "value": 25 + }, + { + "name": "FORMAT_ETC2_R11", + "value": 26 + }, + { + "name": "FORMAT_ETC2_R11S", + "value": 27 + }, + { + "name": "FORMAT_ETC2_RG11", + "value": 28 + }, + { + "name": "FORMAT_ETC2_RG11S", + "value": 29 + }, + { + "name": "FORMAT_ETC2_RGB8", + "value": 30 + }, + { + "name": "FORMAT_ETC2_RGBA8", + "value": 31 + }, + { + "name": "FORMAT_ETC2_RGB8A1", + "value": 32 + }, + { + "name": "FORMAT_ETC2_RA_AS_RG", + "value": 33 + }, + { + "name": "FORMAT_DXT5_RA_AS_RG", + "value": 34 + }, + { + "name": "FORMAT_ASTC_4x4", + "value": 35 + }, + { + "name": "FORMAT_ASTC_4x4_HDR", + "value": 36 + }, + { + "name": "FORMAT_ASTC_8x8", + "value": 37 + }, + { + "name": "FORMAT_ASTC_8x8_HDR", + "value": 38 + }, + { + "name": "FORMAT_MAX", + "value": 39 + } + ] + }, + { + "name": "Interpolation", + "is_bitfield": false, + "values": [ + { + "name": "INTERPOLATE_NEAREST", + "value": 0 + }, + { + "name": "INTERPOLATE_BILINEAR", + "value": 1 + }, + { + "name": "INTERPOLATE_CUBIC", + "value": 2 + }, + { + "name": "INTERPOLATE_TRILINEAR", + "value": 3 + }, + { + "name": "INTERPOLATE_LANCZOS", + "value": 4 + } + ] + }, + { + "name": "AlphaMode", + "is_bitfield": false, + "values": [ + { + "name": "ALPHA_NONE", + "value": 0 + }, + { + "name": "ALPHA_BIT", + "value": 1 + }, + { + "name": "ALPHA_BLEND", + "value": 2 + } + ] + }, + { + "name": "CompressMode", + "is_bitfield": false, + "values": [ + { + "name": "COMPRESS_S3TC", + "value": 0 + }, + { + "name": "COMPRESS_ETC", + "value": 1 + }, + { + "name": "COMPRESS_ETC2", + "value": 2 + }, + { + "name": "COMPRESS_BPTC", + "value": 3 + } + ] + }, + { + "name": "UsedChannels", + "is_bitfield": false, + "values": [ + { + "name": "USED_CHANNELS_L", + "value": 0 + }, + { + "name": "USED_CHANNELS_LA", + "value": 1 + }, + { + "name": "USED_CHANNELS_R", + "value": 2 + }, + { + "name": "USED_CHANNELS_RG", + "value": 3 + }, + { + "name": "USED_CHANNELS_RGB", + "value": 4 + }, + { + "name": "USED_CHANNELS_RGBA", + "value": 5 + } + ] + }, + { + "name": "CompressSource", + "is_bitfield": false, + "values": [ + { + "name": "COMPRESS_SOURCE_GENERIC", + "value": 0 + }, + { + "name": "COMPRESS_SOURCE_SRGB", + "value": 1 + }, + { + "name": "COMPRESS_SOURCE_NORMAL", + "value": 2 + } + ] + }, + { + "name": "ASTCFormat", + "is_bitfield": false, + "values": [ + { + "name": "ASTC_FORMAT_4x4", + "value": 0 + }, + { + "name": "ASTC_FORMAT_8x8", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "has_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3847873762, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "convert", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2120693146, + "arguments": [ + { + "name": "format", + "type": "enum::Image.Format" + } + ] + }, + { + "name": "get_mipmap_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "mipmap", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "resize_to_po2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4189212329, + "arguments": [ + { + "name": "square", + "type": "bool", + "default_value": "false" + }, + { + "name": "interpolation", + "type": "enum::Image.Interpolation", + "default_value": "1" + } + ] + }, + { + "name": "resize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2461393748, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "interpolation", + "type": "enum::Image.Interpolation", + "default_value": "1" + } + ] + }, + { + "name": "shrink_x2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "crop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "flip_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "flip_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "generate_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1633102583, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "renormalize", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "clear_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 986942177, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "use_mipmaps", + "type": "bool" + }, + { + "name": "format", + "type": "enum::Image.Format" + } + ] + }, + { + "name": "create_from_data", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 299398494, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "use_mipmaps", + "type": "bool" + }, + { + "name": "format", + "type": "enum::Image.Format" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2740482212, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "use_mipmaps", + "type": "bool" + }, + { + "name": "format", + "type": "enum::Image.Format" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "is_empty", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "load_from_file", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 736337515, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "save_png", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2113323047, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "save_png_to_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "save_jpg", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 578836491, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "quality", + "type": "float", + "meta": "float", + "default_value": "0.75" + } + ] + }, + { + "name": "save_jpg_to_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 310747435, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "quality", + "type": "float", + "meta": "float", + "default_value": "0.75" + } + ] + }, + { + "name": "save_exr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3108122999, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "grayscale", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "save_exr_to_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3178917920, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "grayscale", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "save_webp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3594949219, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "lossy", + "type": "bool", + "default_value": "false" + }, + { + "name": "quality", + "type": "float", + "meta": "float", + "default_value": "0.75" + } + ] + }, + { + "name": "save_webp_to_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1235769281, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "lossy", + "type": "bool", + "default_value": "false" + }, + { + "name": "quality", + "type": "float", + "meta": "float", + "default_value": "0.75" + } + ] + }, + { + "name": "detect_alpha", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2030116505, + "return_value": { + "type": "enum::Image.AlphaMode" + } + }, + { + "name": "is_invisible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "detect_used_channels", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2703139984, + "return_value": { + "type": "enum::Image.UsedChannels" + }, + "arguments": [ + { + "name": "source", + "type": "enum::Image.CompressSource", + "default_value": "0" + } + ] + }, + { + "name": "compress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4094210332, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Image.CompressMode" + }, + { + "name": "source", + "type": "enum::Image.CompressSource", + "default_value": "0" + }, + { + "name": "astc_format", + "type": "enum::Image.ASTCFormat", + "default_value": "0" + } + ] + }, + { + "name": "compress_from_channels", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 279105990, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Image.CompressMode" + }, + { + "name": "channels", + "type": "enum::Image.UsedChannels" + }, + { + "name": "astc_format", + "type": "enum::Image.ASTCFormat", + "default_value": "0" + } + ] + }, + { + "name": "decompress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "is_compressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "rotate_90", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1901204267, + "arguments": [ + { + "name": "direction", + "type": "enum::ClockDirection" + } + ] + }, + { + "name": "rotate_180", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "fix_alpha_edges", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "premultiply_alpha", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "srgb_to_linear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "normal_map_to_xy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "rgbe_to_srgb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 564927088, + "return_value": { + "type": "Image" + } + }, + { + "name": "bump_map_to_normal_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 336773324, + "arguments": [ + { + "name": "bump_scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "compute_image_metrics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3080961247, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "compared_image", + "type": "Image" + }, + { + "name": "use_luma", + "type": "bool" + } + ] + }, + { + "name": "blit_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2903928755, + "arguments": [ + { + "name": "src", + "type": "Image" + }, + { + "name": "src_rect", + "type": "Rect2i" + }, + { + "name": "dst", + "type": "Vector2i" + } + ] + }, + { + "name": "blit_rect_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3383581145, + "arguments": [ + { + "name": "src", + "type": "Image" + }, + { + "name": "mask", + "type": "Image" + }, + { + "name": "src_rect", + "type": "Rect2i" + }, + { + "name": "dst", + "type": "Vector2i" + } + ] + }, + { + "name": "blend_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2903928755, + "arguments": [ + { + "name": "src", + "type": "Image" + }, + { + "name": "src_rect", + "type": "Rect2i" + }, + { + "name": "dst", + "type": "Vector2i" + } + ] + }, + { + "name": "blend_rect_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3383581145, + "arguments": [ + { + "name": "src", + "type": "Image" + }, + { + "name": "mask", + "type": "Image" + }, + { + "name": "src_rect", + "type": "Rect2i" + }, + { + "name": "dst", + "type": "Vector2i" + } + ] + }, + { + "name": "fill", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "fill_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 514693913, + "arguments": [ + { + "name": "rect", + "type": "Rect2i" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_used_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410525958, + "return_value": { + "type": "Rect2i" + } + }, + { + "name": "get_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2601441065, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "region", + "type": "Rect2i" + } + ] + }, + { + "name": "copy_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "src", + "type": "Image" + } + ] + }, + { + "name": "get_pixelv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1532707496, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2i" + } + ] + }, + { + "name": "get_pixel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2165839948, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_pixelv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 287851464, + "arguments": [ + { + "name": "point", + "type": "Vector2i" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "set_pixel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3733378741, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "adjust_bcs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2385087082, + "arguments": [ + { + "name": "brightness", + "type": "float", + "meta": "float" + }, + { + "name": "contrast", + "type": "float", + "meta": "float" + }, + { + "name": "saturation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "load_png_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_jpg_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_webp_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_tga_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "load_bmp_from_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + } + ], + "properties": [ + { + "type": "Dictionary", + "name": "data", + "setter": "_set_data", + "getter": "_get_data" + } + ] + }, + { + "name": "ImageFormatLoader", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "LoaderFlags", + "is_bitfield": true, + "values": [ + { + "name": "FLAG_NONE", + "value": 0 + }, + { + "name": "FLAG_FORCE_LINEAR", + "value": 1 + }, + { + "name": "FLAG_CONVERT_COLORS", + "value": 2 + } + ] + } + ] + }, + { + "name": "ImageFormatLoaderExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ImageFormatLoader", + "api_type": "core", + "methods": [ + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_load_image", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "fileaccess", + "type": "FileAccess" + }, + { + "name": "flags", + "type": "bitfield::ImageFormatLoader.LoaderFlags" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "add_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "remove_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "ImageTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "create_from_image", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2775144163, + "return_value": { + "type": "ImageTexture" + }, + "arguments": [ + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3847873762, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "set_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 532598488, + "arguments": [ + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "set_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + } + ] + }, + { + "name": "ImageTexture3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture3D", + "api_type": "core", + "methods": [ + { + "name": "create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130379827, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "format", + "type": "enum::Image.Format" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "depth", + "type": "int", + "meta": "int32" + }, + { + "name": "use_mipmaps", + "type": "bool" + }, + { + "name": "data", + "type": "typedarray::Image" + } + ] + }, + { + "name": "update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "data", + "type": "typedarray::Image" + } + ] + } + ] + }, + { + "name": "ImageTextureLayered", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "TextureLayered", + "api_type": "core", + "methods": [ + { + "name": "create_from_images", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2785773503, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "images", + "type": "typedarray::Image" + } + ] + }, + { + "name": "update_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3331733361, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "ImmediateMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Mesh", + "api_type": "core", + "methods": [ + { + "name": "surface_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3716480242, + "arguments": [ + { + "name": "primitive", + "type": "enum::Mesh.PrimitiveType" + }, + { + "name": "material", + "type": "Material", + "default_value": "null" + } + ] + }, + { + "name": "surface_set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "surface_set_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "normal", + "type": "Vector3" + } + ] + }, + { + "name": "surface_set_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3505987427, + "arguments": [ + { + "name": "tangent", + "type": "Plane" + } + ] + }, + { + "name": "surface_set_uv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "uv", + "type": "Vector2" + } + ] + }, + { + "name": "surface_set_uv2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "uv2", + "type": "Vector2" + } + ] + }, + { + "name": "surface_add_vertex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "vertex", + "type": "Vector3" + } + ] + }, + { + "name": "surface_add_vertex_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "vertex", + "type": "Vector2" + } + ] + }, + { + "name": "surface_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_surfaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "ImporterMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "add_blend_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_blend_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_blend_shape_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "blend_shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_blend_shape_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 227983991, + "arguments": [ + { + "name": "mode", + "type": "enum::Mesh.BlendShapeMode" + } + ] + }, + { + "name": "get_blend_shape_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 836485024, + "return_value": { + "type": "enum::Mesh.BlendShapeMode" + } + }, + { + "name": "add_surface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4122361985, + "arguments": [ + { + "name": "primitive", + "type": "enum::Mesh.PrimitiveType" + }, + { + "name": "arrays", + "type": "Array" + }, + { + "name": "blend_shapes", + "type": "typedarray::Array", + "default_value": "Array[Array]([])" + }, + { + "name": "lods", + "type": "Dictionary", + "default_value": "{}" + }, + { + "name": "material", + "type": "Material", + "default_value": "null" + }, + { + "name": "name", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "get_surface_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_surface_primitive_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3552571330, + "return_value": { + "type": "enum::Mesh.PrimitiveType" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_blend_shape_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2345056839, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "blend_shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_lod_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_lod_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "lod_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_lod_indices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265128013, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "lod_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2897466400, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_surface_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_surface_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3671737478, + "arguments": [ + { + "name": "surface_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "generate_lods", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2491878677, + "arguments": [ + { + "name": "normal_merge_angle", + "type": "float", + "meta": "float" + }, + { + "name": "normal_split_angle", + "type": "float", + "meta": "float" + }, + { + "name": "bone_transform_array", + "type": "Array" + } + ] + }, + { + "name": "get_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1457573577, + "return_value": { + "type": "ArrayMesh" + }, + "arguments": [ + { + "name": "base_mesh", + "type": "ArrayMesh", + "default_value": "null" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_lightmap_size_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_lightmap_size_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + } + ] + }, + { + "name": "ImporterMeshInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2255166972, + "arguments": [ + { + "name": "mesh", + "type": "ImporterMesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3161779525, + "return_value": { + "type": "ImporterMesh" + } + }, + { + "name": "set_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971435618, + "arguments": [ + { + "name": "skin", + "type": "Skin" + } + ] + }, + { + "name": "get_skin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074563878, + "return_value": { + "type": "Skin" + } + }, + { + "name": "set_skeleton_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "skeleton_path", + "type": "NodePath" + } + ] + }, + { + "name": "get_skeleton_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "ImporterMesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "Skin", + "name": "skin", + "setter": "set_skin", + "getter": "get_skin" + }, + { + "type": "NodePath", + "name": "skeleton_path", + "setter": "set_skeleton_path", + "getter": "get_skeleton_path" + } + ] + }, + { + "name": "Input", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "MouseMode", + "is_bitfield": false, + "values": [ + { + "name": "MOUSE_MODE_VISIBLE", + "value": 0 + }, + { + "name": "MOUSE_MODE_HIDDEN", + "value": 1 + }, + { + "name": "MOUSE_MODE_CAPTURED", + "value": 2 + }, + { + "name": "MOUSE_MODE_CONFINED", + "value": 3 + }, + { + "name": "MOUSE_MODE_CONFINED_HIDDEN", + "value": 4 + } + ] + }, + { + "name": "CursorShape", + "is_bitfield": false, + "values": [ + { + "name": "CURSOR_ARROW", + "value": 0 + }, + { + "name": "CURSOR_IBEAM", + "value": 1 + }, + { + "name": "CURSOR_POINTING_HAND", + "value": 2 + }, + { + "name": "CURSOR_CROSS", + "value": 3 + }, + { + "name": "CURSOR_WAIT", + "value": 4 + }, + { + "name": "CURSOR_BUSY", + "value": 5 + }, + { + "name": "CURSOR_DRAG", + "value": 6 + }, + { + "name": "CURSOR_CAN_DROP", + "value": 7 + }, + { + "name": "CURSOR_FORBIDDEN", + "value": 8 + }, + { + "name": "CURSOR_VSIZE", + "value": 9 + }, + { + "name": "CURSOR_HSIZE", + "value": 10 + }, + { + "name": "CURSOR_BDIAGSIZE", + "value": 11 + }, + { + "name": "CURSOR_FDIAGSIZE", + "value": 12 + }, + { + "name": "CURSOR_MOVE", + "value": 13 + }, + { + "name": "CURSOR_VSPLIT", + "value": 14 + }, + { + "name": "CURSOR_HSPLIT", + "value": 15 + }, + { + "name": "CURSOR_HELP", + "value": 16 + } + ] + } + ], + "methods": [ + { + "name": "is_anything_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_key_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1938909964, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "is_physical_key_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1938909964, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "is_key_label_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1938909964, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "is_mouse_button_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1821097125, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "button", + "type": "enum::MouseButton" + } + ] + }, + { + "name": "is_joy_button_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 787208542, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + }, + { + "name": "button", + "type": "enum::JoyButton" + } + ] + }, + { + "name": "is_action_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558498928, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_action_just_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558498928, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_action_just_released", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558498928, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_action_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 801543509, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_action_raw_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 801543509, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1958752504, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "negative_action", + "type": "StringName" + }, + { + "name": "positive_action", + "type": "StringName" + } + ] + }, + { + "name": "get_vector", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1517139831, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "negative_x", + "type": "StringName" + }, + { + "name": "positive_x", + "type": "StringName" + }, + { + "name": "negative_y", + "type": "StringName" + }, + { + "name": "positive_y", + "type": "StringName" + }, + { + "name": "deadzone", + "type": "float", + "meta": "float", + "default_value": "-1.0" + } + ] + }, + { + "name": "add_joy_mapping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1168363258, + "arguments": [ + { + "name": "mapping", + "type": "String" + }, + { + "name": "update_existing", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_joy_mapping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "guid", + "type": "String" + } + ] + }, + { + "name": "is_joy_known", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joy_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4063175957, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + }, + { + "name": "axis", + "type": "enum::JoyAxis" + } + ] + }, + { + "name": "get_joy_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joy_guid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connected_joypads", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::int" + } + }, + { + "name": "get_joy_vibration_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3114997196, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joy_vibration_duration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025615559, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "start_joy_vibration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1890603622, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + }, + { + "name": "weak_magnitude", + "type": "float", + "meta": "float" + }, + { + "name": "strong_magnitude", + "type": "float", + "meta": "float" + }, + { + "name": "duration", + "type": "float", + "meta": "float", + "default_value": "0" + } + ] + }, + { + "name": "stop_joy_vibration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "vibrate_handheld", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 955504365, + "arguments": [ + { + "name": "duration_ms", + "type": "int", + "meta": "int32", + "default_value": "500" + } + ] + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_accelerometer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_magnetometer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_gyroscope", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "set_accelerometer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "set_magnetometer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "set_gyroscope", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "get_last_mouse_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_mouse_button_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2512161324, + "return_value": { + "type": "bitfield::MouseButtonMask" + } + }, + { + "name": "set_mouse_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2228490894, + "arguments": [ + { + "name": "mode", + "type": "enum::Input.MouseMode" + } + ] + }, + { + "name": "get_mouse_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 965286182, + "return_value": { + "type": "enum::Input.MouseMode" + } + }, + { + "name": "warp_mouse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "action_press", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 573731101, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "strength", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "action_release", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "set_default_cursor_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2124816902, + "arguments": [ + { + "name": "shape", + "type": "enum::Input.CursorShape", + "default_value": "0" + } + ] + }, + { + "name": "get_current_cursor_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3455658929, + "return_value": { + "type": "enum::Input.CursorShape" + } + }, + { + "name": "set_custom_mouse_cursor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3489634142, + "arguments": [ + { + "name": "image", + "type": "Resource" + }, + { + "name": "shape", + "type": "enum::Input.CursorShape", + "default_value": "0" + }, + { + "name": "hotspot", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "parse_input_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3754044979, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "set_use_accumulated_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_accumulated_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "flush_buffered_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "joy_connection_changed", + "arguments": [ + { + "name": "device", + "type": "int" + }, + { + "name": "connected", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "mouse_mode", + "setter": "set_mouse_mode", + "getter": "get_mouse_mode" + }, + { + "type": "bool", + "name": "use_accumulated_input", + "setter": "set_use_accumulated_input", + "getter": "is_using_accumulated_input" + } + ] + }, + { + "name": "InputEvent", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "device", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558498928, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_action_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1631499404, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "allow_echo", + "type": "bool", + "default_value": "false" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_action_released", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558498928, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_action_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 801543509, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "is_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_echo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "as_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_match", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3392494811, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_action_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "accumulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1062211774, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "with_event", + "type": "InputEvent" + } + ] + }, + { + "name": "xformed_by", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2747409789, + "return_value": { + "type": "InputEvent" + }, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + }, + { + "name": "local_ofs", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "device", + "setter": "set_device", + "getter": "get_device" + } + ] + }, + { + "name": "InputEventAction", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "get_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "set_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "action", + "setter": "set_action", + "getter": "get_action" + }, + { + "type": "bool", + "name": "pressed", + "setter": "set_pressed", + "getter": "is_pressed" + }, + { + "type": "float", + "name": "strength", + "setter": "set_strength", + "getter": "get_strength" + } + ] + }, + { + "name": "InputEventFromWindow", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_window_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_window_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + } + ], + "properties": [ + { + "type": "int", + "name": "window_id", + "setter": "set_window_id", + "getter": "get_window_id" + } + ] + }, + { + "name": "InputEventGesture", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "InputEventWithModifiers", + "api_type": "core", + "methods": [ + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + } + ] + }, + { + "name": "InputEventJoypadButton", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_button_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1466368136, + "arguments": [ + { + "name": "button_index", + "type": "enum::JoyButton" + } + ] + }, + { + "name": "get_button_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 595588182, + "return_value": { + "type": "enum::JoyButton" + } + }, + { + "name": "set_pressure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pressure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pressure", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "button_index", + "setter": "set_button_index", + "getter": "get_button_index" + }, + { + "type": "float", + "name": "pressure", + "setter": "set_pressure", + "getter": "get_pressure" + }, + { + "type": "bool", + "name": "pressed", + "setter": "set_pressed", + "getter": "is_pressed" + } + ] + }, + { + "name": "InputEventJoypadMotion", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_axis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1332685170, + "arguments": [ + { + "name": "axis", + "type": "enum::JoyAxis" + } + ] + }, + { + "name": "get_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4019121683, + "return_value": { + "type": "enum::JoyAxis" + } + }, + { + "name": "set_axis_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "axis_value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_axis_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "axis", + "setter": "set_axis", + "getter": "get_axis" + }, + { + "type": "float", + "name": "axis_value", + "setter": "set_axis_value", + "getter": "get_axis_value" + } + ] + }, + { + "name": "InputEventKey", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventWithModifiers", + "api_type": "core", + "methods": [ + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "set_keycode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 888074362, + "arguments": [ + { + "name": "keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "get_keycode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "set_physical_keycode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 888074362, + "arguments": [ + { + "name": "physical_keycode", + "type": "enum::Key" + } + ] + }, + { + "name": "get_physical_keycode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "set_key_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 888074362, + "arguments": [ + { + "name": "key_label", + "type": "enum::Key" + } + ] + }, + { + "name": "get_key_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "set_unicode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "unicode", + "type": "int" + } + ] + }, + { + "name": "get_unicode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int" + } + }, + { + "name": "set_echo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "echo", + "type": "bool" + } + ] + }, + { + "name": "get_keycode_with_modifiers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "get_physical_keycode_with_modifiers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "get_key_label_with_modifiers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585896689, + "return_value": { + "type": "enum::Key" + } + }, + { + "name": "as_text_keycode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "as_text_physical_keycode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "as_text_key_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "pressed", + "setter": "set_pressed", + "getter": "is_pressed" + }, + { + "type": "int", + "name": "keycode", + "setter": "set_keycode", + "getter": "get_keycode" + }, + { + "type": "int", + "name": "physical_keycode", + "setter": "set_physical_keycode", + "getter": "get_physical_keycode" + }, + { + "type": "int", + "name": "key_label", + "setter": "set_key_label", + "getter": "get_key_label" + }, + { + "type": "int", + "name": "unicode", + "setter": "set_unicode", + "getter": "get_unicode" + }, + { + "type": "bool", + "name": "echo", + "setter": "set_echo", + "getter": "is_echo" + } + ] + }, + { + "name": "InputEventMIDI", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "channel", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1064271510, + "arguments": [ + { + "name": "message", + "type": "enum::MIDIMessage" + } + ] + }, + { + "name": "get_message", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1936512097, + "return_value": { + "type": "enum::MIDIMessage" + } + }, + { + "name": "set_pitch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "pitch", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_pitch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "velocity", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_instrument", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "instrument", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_instrument", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_pressure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "pressure", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_pressure", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_controller_number", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "controller_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_controller_number", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_controller_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "controller_value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_controller_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "channel", + "setter": "set_channel", + "getter": "get_channel" + }, + { + "type": "int", + "name": "message", + "setter": "set_message", + "getter": "get_message" + }, + { + "type": "int", + "name": "pitch", + "setter": "set_pitch", + "getter": "get_pitch" + }, + { + "type": "int", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + }, + { + "type": "int", + "name": "instrument", + "setter": "set_instrument", + "getter": "get_instrument" + }, + { + "type": "int", + "name": "pressure", + "setter": "set_pressure", + "getter": "get_pressure" + }, + { + "type": "int", + "name": "controller_number", + "setter": "set_controller_number", + "getter": "get_controller_number" + }, + { + "type": "int", + "name": "controller_value", + "setter": "set_controller_value", + "getter": "get_controller_value" + } + ] + }, + { + "name": "InputEventMagnifyGesture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventGesture", + "api_type": "core", + "methods": [ + { + "name": "set_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "factor", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "factor", + "setter": "set_factor", + "getter": "get_factor" + } + ] + }, + { + "name": "InputEventMouse", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "InputEventWithModifiers", + "api_type": "core", + "methods": [ + { + "name": "set_button_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3950145251, + "arguments": [ + { + "name": "button_mask", + "type": "bitfield::MouseButtonMask" + } + ] + }, + { + "name": "get_button_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2512161324, + "return_value": { + "type": "bitfield::MouseButtonMask" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_global_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "global_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_global_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "int", + "name": "button_mask", + "setter": "set_button_mask", + "getter": "get_button_mask" + }, + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "Vector2", + "name": "global_position", + "setter": "set_global_position", + "getter": "get_global_position" + } + ] + }, + { + "name": "InputEventMouseButton", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventMouse", + "api_type": "core", + "methods": [ + { + "name": "set_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "factor", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_button_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3624991109, + "arguments": [ + { + "name": "button_index", + "type": "enum::MouseButton" + } + ] + }, + { + "name": "get_button_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1132662608, + "return_value": { + "type": "enum::MouseButton" + } + }, + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "set_double_click", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "double_click", + "type": "bool" + } + ] + }, + { + "name": "is_double_click", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "factor", + "setter": "set_factor", + "getter": "get_factor" + }, + { + "type": "int", + "name": "button_index", + "setter": "set_button_index", + "getter": "get_button_index" + }, + { + "type": "bool", + "name": "pressed", + "setter": "set_pressed", + "getter": "is_pressed" + }, + { + "type": "bool", + "name": "double_click", + "setter": "set_double_click", + "getter": "is_double_click" + } + ] + }, + { + "name": "InputEventMouseMotion", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventMouse", + "api_type": "core", + "methods": [ + { + "name": "set_tilt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "tilt", + "type": "Vector2" + } + ] + }, + { + "name": "get_tilt", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_pressure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pressure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pressure", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pen_inverted", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pen_inverted", + "type": "bool" + } + ] + }, + { + "name": "get_pen_inverted", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "relative", + "type": "Vector2" + } + ] + }, + { + "name": "get_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "tilt", + "setter": "set_tilt", + "getter": "get_tilt" + }, + { + "type": "float", + "name": "pressure", + "setter": "set_pressure", + "getter": "get_pressure" + }, + { + "type": "bool", + "name": "pen_inverted", + "setter": "set_pen_inverted", + "getter": "get_pen_inverted" + }, + { + "type": "Vector2", + "name": "relative", + "setter": "set_relative", + "getter": "get_relative" + }, + { + "type": "Vector2", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + } + ] + }, + { + "name": "InputEventPanGesture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventGesture", + "api_type": "core", + "methods": [ + { + "name": "set_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "delta", + "type": "Vector2" + } + ] + }, + { + "name": "get_delta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "delta", + "setter": "set_delta", + "getter": "get_delta" + } + ] + }, + { + "name": "InputEventScreenDrag", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventFromWindow", + "api_type": "core", + "methods": [ + { + "name": "set_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_tilt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "tilt", + "type": "Vector2" + } + ] + }, + { + "name": "get_tilt", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_pressure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pressure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pressure", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pen_inverted", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pen_inverted", + "type": "bool" + } + ] + }, + { + "name": "get_pen_inverted", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "relative", + "type": "Vector2" + } + ] + }, + { + "name": "get_relative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "int", + "name": "index", + "setter": "set_index", + "getter": "get_index" + }, + { + "type": "Vector2", + "name": "tilt", + "setter": "set_tilt", + "getter": "get_tilt" + }, + { + "type": "float", + "name": "pressure", + "setter": "set_pressure", + "getter": "get_pressure" + }, + { + "type": "bool", + "name": "pen_inverted", + "setter": "set_pen_inverted", + "getter": "get_pen_inverted" + }, + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "Vector2", + "name": "relative", + "setter": "set_relative", + "getter": "get_relative" + }, + { + "type": "Vector2", + "name": "velocity", + "setter": "set_velocity", + "getter": "get_velocity" + } + ] + }, + { + "name": "InputEventScreenTouch", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEventFromWindow", + "api_type": "core", + "methods": [ + { + "name": "set_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "set_double_tap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "double_tap", + "type": "bool" + } + ] + }, + { + "name": "is_double_tap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "index", + "setter": "set_index", + "getter": "get_index" + }, + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "bool", + "name": "pressed", + "setter": "set_pressed", + "getter": "is_pressed" + }, + { + "type": "bool", + "name": "double_tap", + "setter": "set_double_tap", + "getter": "is_double_tap" + } + ] + }, + { + "name": "InputEventShortcut", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "InputEvent", + "api_type": "core", + "methods": [ + { + "name": "set_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 857163497, + "arguments": [ + { + "name": "shortcut", + "type": "Shortcut" + } + ] + }, + { + "name": "get_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3766804753, + "return_value": { + "type": "Shortcut" + } + } + ], + "properties": [ + { + "type": "Shortcut", + "name": "shortcut", + "setter": "set_shortcut", + "getter": "get_shortcut" + } + ] + }, + { + "name": "InputEventWithModifiers", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "InputEventFromWindow", + "api_type": "core", + "methods": [ + { + "name": "set_command_or_control_autoremap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_command_or_control_autoremap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_command_or_control_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_alt_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_alt_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shift_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_shift_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ctrl_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_ctrl_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_meta_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "pressed", + "type": "bool" + } + ] + }, + { + "name": "is_meta_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_modifiers_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1258259499, + "return_value": { + "type": "bitfield::KeyModifierMask" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "command_or_control_autoremap", + "setter": "set_command_or_control_autoremap", + "getter": "is_command_or_control_autoremap" + }, + { + "type": "bool", + "name": "alt_pressed", + "setter": "set_alt_pressed", + "getter": "is_alt_pressed" + }, + { + "type": "bool", + "name": "shift_pressed", + "setter": "set_shift_pressed", + "getter": "is_shift_pressed" + }, + { + "type": "bool", + "name": "ctrl_pressed", + "setter": "set_ctrl_pressed", + "getter": "is_ctrl_pressed" + }, + { + "type": "bool", + "name": "meta_pressed", + "setter": "set_meta_pressed", + "getter": "is_meta_pressed" + } + ] + }, + { + "name": "InputMap", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "has_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "get_actions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::StringName" + } + }, + { + "name": "add_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 573731101, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "deadzone", + "type": "float", + "meta": "float", + "default_value": "0.5" + } + ] + }, + { + "name": "erase_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "action_set_deadzone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4135858297, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "deadzone", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "action_get_deadzone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391627649, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "action_add_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 518302593, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "action_has_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1185871985, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "action_erase_event", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 518302593, + "arguments": [ + { + "name": "action", + "type": "StringName" + }, + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "action_erase_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "action_get_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 689397652, + "return_value": { + "type": "typedarray::InputEvent" + }, + "arguments": [ + { + "name": "action", + "type": "StringName" + } + ] + }, + { + "name": "event_is_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3193353650, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "action", + "type": "StringName" + }, + { + "name": "exact_match", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "load_from_project_settings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "InstancePlaceholder", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "get_stored_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2230153369, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "with_order", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3794612210, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "replace", + "type": "bool", + "default_value": "false" + }, + { + "name": "custom_scene", + "type": "PackedScene", + "default_value": "null" + } + ] + }, + { + "name": "get_instance_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ] + }, + { + "name": "IntervalTweener", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Tweener", + "api_type": "core" + }, + { + "name": "ItemList", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "IconMode", + "is_bitfield": false, + "values": [ + { + "name": "ICON_MODE_TOP", + "value": 0 + }, + { + "name": "ICON_MODE_LEFT", + "value": 1 + } + ] + }, + { + "name": "SelectMode", + "is_bitfield": false, + "values": [ + { + "name": "SELECT_SINGLE", + "value": 0 + }, + { + "name": "SELECT_MULTI", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "add_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4086250691, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "icon", + "type": "Texture2D", + "default_value": "null" + }, + { + "name": "selectable", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "add_icon_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332687421, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "icon", + "type": "Texture2D" + }, + { + "name": "selectable", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_item_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_item_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_item_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1707680378, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_item_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4235602388, + "return_value": { + "type": "enum::Control.TextDirection" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_item_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_icon_transposed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transposed", + "type": "bool" + } + ] + }, + { + "name": "is_item_icon_transposed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_icon_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1356297692, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_item_icon_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3327874267, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_icon_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_item_icon_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "selectable", + "type": "bool" + } + ] + }, + { + "name": "is_item_selectable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_item_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "metadata", + "type": "Variant" + } + ] + }, + { + "name": "get_item_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_custom_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_bg_color", + "type": "Color" + } + ] + }, + { + "name": "get_item_custom_bg_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_custom_fg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_fg_color", + "type": "Color" + } + ] + }, + { + "name": "get_item_custom_fg_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_tooltip_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_item_tooltip_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_item_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "single", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "deselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "deselect_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_selected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_selected_items", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "move_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "to_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "sort_items_by_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_fixed_column_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fixed_column_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_same_column_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_same_column_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_max_text_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "lines", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_text_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_columns", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_columns", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_select_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 928267388, + "arguments": [ + { + "name": "mode", + "type": "enum::ItemList.SelectMode" + } + ] + }, + { + "name": "get_select_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1191945842, + "return_value": { + "type": "enum::ItemList.SelectMode" + } + }, + { + "name": "set_icon_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2025053633, + "arguments": [ + { + "name": "mode", + "type": "enum::ItemList.IconMode" + } + ] + }, + { + "name": "get_icon_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3353929232, + "return_value": { + "type": "enum::ItemList.IconMode" + } + }, + { + "name": "set_fixed_icon_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_fixed_icon_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_icon_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_icon_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_allow_rmb_select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "get_allow_rmb_select", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_reselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "get_allow_reselect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_auto_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_anything_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_item_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2300324924, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "exact", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "ensure_current_is_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_v_scroll_bar", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2630340773, + "return_value": { + "type": "VScrollBar" + } + }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1008890932, + "arguments": [ + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3779142101, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + } + } + ], + "signals": [ + { + "name": "item_selected", + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "empty_clicked", + "arguments": [ + { + "name": "at_position", + "type": "Vector2" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "item_clicked", + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "at_position", + "type": "Vector2" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "multi_selected", + "arguments": [ + { + "name": "index", + "type": "int" + }, + { + "name": "selected", + "type": "bool" + } + ] + }, + { + "name": "item_activated", + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "select_mode", + "setter": "set_select_mode", + "getter": "get_select_mode" + }, + { + "type": "bool", + "name": "allow_reselect", + "setter": "set_allow_reselect", + "getter": "get_allow_reselect" + }, + { + "type": "bool", + "name": "allow_rmb_select", + "setter": "set_allow_rmb_select", + "getter": "get_allow_rmb_select" + }, + { + "type": "int", + "name": "max_text_lines", + "setter": "set_max_text_lines", + "getter": "get_max_text_lines" + }, + { + "type": "bool", + "name": "auto_height", + "setter": "set_auto_height", + "getter": "has_auto_height" + }, + { + "type": "int", + "name": "text_overrun_behavior", + "setter": "set_text_overrun_behavior", + "getter": "get_text_overrun_behavior" + }, + { + "type": "int", + "name": "item_count", + "setter": "set_item_count", + "getter": "get_item_count" + }, + { + "type": "int", + "name": "max_columns", + "setter": "set_max_columns", + "getter": "get_max_columns" + }, + { + "type": "bool", + "name": "same_column_width", + "setter": "set_same_column_width", + "getter": "is_same_column_width" + }, + { + "type": "int", + "name": "fixed_column_width", + "setter": "set_fixed_column_width", + "getter": "get_fixed_column_width" + }, + { + "type": "int", + "name": "icon_mode", + "setter": "set_icon_mode", + "getter": "get_icon_mode" + }, + { + "type": "float", + "name": "icon_scale", + "setter": "set_icon_scale", + "getter": "get_icon_scale" + }, + { + "type": "Vector2i", + "name": "fixed_icon_size", + "setter": "set_fixed_icon_size", + "getter": "get_fixed_icon_size" + } + ] + }, + { + "name": "JNISingleton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core" + }, + { + "name": "JSON", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "stringify", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2656701787, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "data", + "type": "Variant" + }, + { + "name": "indent", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "sort_keys", + "type": "bool", + "default_value": "true" + }, + { + "name": "full_precision", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "parse_string", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 309047738, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "json_string", + "type": "String" + } + ] + }, + { + "name": "parse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 885841341, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "json_text", + "type": "String" + }, + { + "name": "keep_text", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + }, + { + "name": "set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "get_parsed_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_error_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_error_message", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "Variant", + "name": "data", + "setter": "set_data", + "getter": "get_data" + } + ] + }, + { + "name": "JSONRPC", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "ErrorCode", + "is_bitfield": false, + "values": [ + { + "name": "PARSE_ERROR", + "value": -32700 + }, + { + "name": "INVALID_REQUEST", + "value": -32600 + }, + { + "name": "METHOD_NOT_FOUND", + "value": -32601 + }, + { + "name": "INVALID_PARAMS", + "value": -32602 + }, + { + "name": "INTERNAL_ERROR", + "value": -32603 + } + ] + } + ], + "methods": [ + { + "name": "set_scope", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2572618360, + "arguments": [ + { + "name": "scope", + "type": "String" + }, + { + "name": "target", + "type": "Object" + } + ] + }, + { + "name": "process_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2963479484, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "action", + "type": "Variant" + }, + { + "name": "recurse", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "process_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "action", + "type": "String" + } + ] + }, + { + "name": "make_request", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3423508980, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "method", + "type": "String" + }, + { + "name": "params", + "type": "Variant" + }, + { + "name": "id", + "type": "Variant" + } + ] + }, + { + "name": "make_response", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5053918, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "result", + "type": "Variant" + }, + { + "name": "id", + "type": "Variant" + } + ] + }, + { + "name": "make_notification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2949127017, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "method", + "type": "String" + }, + { + "name": "params", + "type": "Variant" + } + ] + }, + { + "name": "make_response_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 928596297, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "code", + "type": "int", + "meta": "int32" + }, + { + "name": "message", + "type": "String" + }, + { + "name": "id", + "type": "Variant", + "default_value": "null" + } + ] + } + ] + }, + { + "name": "JavaClass", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "JavaClassWrapper", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "wrap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1124367868, + "return_value": { + "type": "JavaClass" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + } + ] + }, + { + "name": "JavaScriptBridge", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "eval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 218087648, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "code", + "type": "String" + }, + { + "name": "use_global_execution_context", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1355533281, + "return_value": { + "type": "JavaScriptObject" + }, + "arguments": [ + { + "name": "interface", + "type": "String" + } + ] + }, + { + "name": "create_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 422818440, + "return_value": { + "type": "JavaScriptObject" + }, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "create_object", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 3093893586, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "object", + "type": "String" + } + ] + }, + { + "name": "download_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4123979296, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + }, + { + "name": "name", + "type": "String" + }, + { + "name": "mime", + "type": "String", + "default_value": "\"application/octet-stream\"" + } + ] + }, + { + "name": "pwa_needs_update", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "pwa_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "force_fs_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "pwa_update_available" + } + ] + }, + { + "name": "JavaScriptObject", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "Joint2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_node_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_node_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_exclude_nodes_from_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_nodes_from_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "node_a", + "setter": "set_node_a", + "getter": "get_node_a" + }, + { + "type": "NodePath", + "name": "node_b", + "setter": "set_node_b", + "getter": "get_node_b" + }, + { + "type": "float", + "name": "bias", + "setter": "set_bias", + "getter": "get_bias" + }, + { + "type": "bool", + "name": "disable_collision", + "setter": "set_exclude_nodes_from_collision", + "getter": "get_exclude_nodes_from_collision" + } + ] + }, + { + "name": "Joint3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_node_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_node_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_solver_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_solver_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_exclude_nodes_from_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_nodes_from_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "node_a", + "setter": "set_node_a", + "getter": "get_node_a" + }, + { + "type": "NodePath", + "name": "node_b", + "setter": "set_node_b", + "getter": "get_node_b" + }, + { + "type": "int", + "name": "solver_priority", + "setter": "set_solver_priority", + "getter": "get_solver_priority" + }, + { + "type": "bool", + "name": "exclude_nodes_from_collision", + "setter": "set_exclude_nodes_from_collision", + "getter": "get_exclude_nodes_from_collision" + } + ] + }, + { + "name": "KinematicCollision2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_travel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_remainder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841063350, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "up_direction", + "type": "Vector2", + "default_value": "Vector2(0, -1)" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider_shape_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collider_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ] + }, + { + "name": "KinematicCollision3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_travel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_remainder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_angle", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1242741860, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "up_direction", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "get_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2639523548, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2639523548, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1231817359, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2639523548, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_shape_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + } + ] + }, + { + "name": "Label", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_vertical_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1796458609, + "arguments": [ + { + "name": "alignment", + "type": "enum::VerticalAlignment" + } + ] + }, + { + "name": "get_vertical_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3274884059, + "return_value": { + "type": "enum::VerticalAlignment" + } + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_label_settings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1030653839, + "arguments": [ + { + "name": "settings", + "type": "LabelSettings" + } + ] + }, + { + "name": "get_label_settings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 826676056, + "return_value": { + "type": "LabelSettings" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_autowrap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289138044, + "arguments": [ + { + "name": "autowrap_mode", + "type": "enum::TextServer.AutowrapMode" + } + ] + }, + { + "name": "get_autowrap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549071663, + "return_value": { + "type": "enum::TextServer.AutowrapMode" + } + }, + { + "name": "set_clip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_clipping_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1008890932, + "arguments": [ + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3779142101, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + } + }, + { + "name": "set_uppercase", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_uppercase", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_line_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 181039630, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_total_character_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_visible_characters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_visible_characters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_characters_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 258789322, + "return_value": { + "type": "enum::TextServer.VisibleCharactersBehavior" + } + }, + { + "name": "set_visible_characters_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3383839701, + "arguments": [ + { + "name": "behavior", + "type": "enum::TextServer.VisibleCharactersBehavior" + } + ] + }, + { + "name": "set_visible_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visible_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_lines_skipped", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "lines_skipped", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_lines_skipped", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_lines_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "lines_visible", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_lines_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "LabelSettings", + "name": "label_settings", + "setter": "set_label_settings", + "getter": "get_label_settings" + }, + { + "type": "int", + "name": "horizontal_alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "int", + "name": "vertical_alignment", + "setter": "set_vertical_alignment", + "getter": "get_vertical_alignment" + }, + { + "type": "int", + "name": "autowrap_mode", + "setter": "set_autowrap_mode", + "getter": "get_autowrap_mode" + }, + { + "type": "bool", + "name": "clip_text", + "setter": "set_clip_text", + "getter": "is_clipping_text" + }, + { + "type": "int", + "name": "text_overrun_behavior", + "setter": "set_text_overrun_behavior", + "getter": "get_text_overrun_behavior" + }, + { + "type": "bool", + "name": "uppercase", + "setter": "set_uppercase", + "getter": "is_uppercase" + }, + { + "type": "int", + "name": "lines_skipped", + "setter": "set_lines_skipped", + "getter": "get_lines_skipped" + }, + { + "type": "int", + "name": "max_lines_visible", + "setter": "set_max_lines_visible", + "getter": "get_max_lines_visible" + }, + { + "type": "int", + "name": "visible_characters", + "setter": "set_visible_characters", + "getter": "get_visible_characters" + }, + { + "type": "int", + "name": "visible_characters_behavior", + "setter": "set_visible_characters_behavior", + "getter": "get_visible_characters_behavior" + }, + { + "type": "float", + "name": "visible_ratio", + "setter": "set_visible_ratio", + "getter": "get_visible_ratio" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "Label3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GeometryInstance3D", + "api_type": "core", + "enums": [ + { + "name": "DrawFlags", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_SHADED", + "value": 0 + }, + { + "name": "FLAG_DOUBLE_SIDED", + "value": 1 + }, + { + "name": "FLAG_DISABLE_DEPTH_TEST", + "value": 2 + }, + { + "name": "FLAG_FIXED_SIZE", + "value": 3 + }, + { + "name": "FLAG_MAX", + "value": 4 + } + ] + }, + { + "name": "AlphaCutMode", + "is_bitfield": false, + "values": [ + { + "name": "ALPHA_CUT_DISABLED", + "value": 0 + }, + { + "name": "ALPHA_CUT_DISCARD", + "value": 1 + }, + { + "name": "ALPHA_CUT_OPAQUE_PREPASS", + "value": 2 + }, + { + "name": "ALPHA_CUT_HASH", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_vertical_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1796458609, + "arguments": [ + { + "name": "alignment", + "type": "enum::VerticalAlignment" + } + ] + }, + { + "name": "get_vertical_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3274884059, + "return_value": { + "type": "enum::VerticalAlignment" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_outline_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_outline_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1418190634, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2516697328, + "return_value": { + "type": "enum::TextServer.Direction" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_uppercase", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_uppercase", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_render_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_render_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outline_render_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outline_render_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "set_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outline_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "outline_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outline_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_line_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "line_spacing", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_line_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_autowrap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289138044, + "arguments": [ + { + "name": "autowrap_mode", + "type": "enum::TextServer.AutowrapMode" + } + ] + }, + { + "name": "get_autowrap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549071663, + "return_value": { + "type": "enum::TextServer.AutowrapMode" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pixel_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixel_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pixel_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_draw_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1285833066, + "arguments": [ + { + "name": "flag", + "type": "enum::Label3D.DrawFlags" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_draw_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259226453, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::Label3D.DrawFlags" + } + ] + }, + { + "name": "set_billboard_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4202036497, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.BillboardMode" + } + ] + }, + { + "name": "get_billboard_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1283840139, + "return_value": { + "type": "enum::BaseMaterial3D.BillboardMode" + } + }, + { + "name": "set_alpha_cut_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2549142916, + "arguments": [ + { + "name": "mode", + "type": "enum::Label3D.AlphaCutMode" + } + ] + }, + { + "name": "get_alpha_cut_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 219468601, + "return_value": { + "type": "enum::Label3D.AlphaCutMode" + } + }, + { + "name": "set_alpha_scissor_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_scissor_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_hash_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_hash_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3212649852, + "arguments": [ + { + "name": "alpha_aa", + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + ] + }, + { + "name": "get_alpha_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2889939400, + "return_value": { + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + }, + { + "name": "set_alpha_antialiasing_edge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_antialiasing_edge", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 22904437, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289213076, + "return_value": { + "type": "enum::BaseMaterial3D.TextureFilter" + } + }, + { + "name": "generate_triangle_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3476533166, + "return_value": { + "type": "TriangleMesh" + } + } + ], + "properties": [ + { + "type": "float", + "name": "pixel_size", + "setter": "set_pixel_size", + "getter": "get_pixel_size" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "int", + "name": "billboard", + "setter": "set_billboard_mode", + "getter": "get_billboard_mode" + }, + { + "type": "bool", + "name": "shaded", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 0 + }, + { + "type": "bool", + "name": "double_sided", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 1 + }, + { + "type": "bool", + "name": "no_depth_test", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 2 + }, + { + "type": "bool", + "name": "fixed_size", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 3 + }, + { + "type": "int", + "name": "alpha_cut", + "setter": "set_alpha_cut_mode", + "getter": "get_alpha_cut_mode" + }, + { + "type": "float", + "name": "alpha_scissor_threshold", + "setter": "set_alpha_scissor_threshold", + "getter": "get_alpha_scissor_threshold" + }, + { + "type": "float", + "name": "alpha_hash_scale", + "setter": "set_alpha_hash_scale", + "getter": "get_alpha_hash_scale" + }, + { + "type": "int", + "name": "alpha_antialiasing_mode", + "setter": "set_alpha_antialiasing", + "getter": "get_alpha_antialiasing" + }, + { + "type": "float", + "name": "alpha_antialiasing_edge", + "setter": "set_alpha_antialiasing_edge", + "getter": "get_alpha_antialiasing_edge" + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "int", + "name": "render_priority", + "setter": "set_render_priority", + "getter": "get_render_priority" + }, + { + "type": "int", + "name": "outline_render_priority", + "setter": "set_outline_render_priority", + "getter": "get_outline_render_priority" + }, + { + "type": "Color", + "name": "modulate", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "Color", + "name": "outline_modulate", + "setter": "set_outline_modulate", + "getter": "get_outline_modulate" + }, + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "Font", + "name": "font", + "setter": "set_font", + "getter": "get_font" + }, + { + "type": "int", + "name": "font_size", + "setter": "set_font_size", + "getter": "get_font_size" + }, + { + "type": "int", + "name": "outline_size", + "setter": "set_outline_size", + "getter": "get_outline_size" + }, + { + "type": "int", + "name": "horizontal_alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "int", + "name": "vertical_alignment", + "setter": "set_vertical_alignment", + "getter": "get_vertical_alignment" + }, + { + "type": "bool", + "name": "uppercase", + "setter": "set_uppercase", + "getter": "is_uppercase" + }, + { + "type": "float", + "name": "line_spacing", + "setter": "set_line_spacing", + "getter": "get_line_spacing" + }, + { + "type": "int", + "name": "autowrap_mode", + "setter": "set_autowrap_mode", + "getter": "get_autowrap_mode" + }, + { + "type": "float", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "LabelSettings", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_line_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "spacing", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_line_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "set_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_font_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_font_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_outline_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outline_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outline_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_outline_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_shadow_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_shadow_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_shadow_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_shadow_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_shadow_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_shadow_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "float", + "name": "line_spacing", + "setter": "set_line_spacing", + "getter": "get_line_spacing" + }, + { + "type": "Font", + "name": "font", + "setter": "set_font", + "getter": "get_font" + }, + { + "type": "int", + "name": "font_size", + "setter": "set_font_size", + "getter": "get_font_size" + }, + { + "type": "Color", + "name": "font_color", + "setter": "set_font_color", + "getter": "get_font_color" + }, + { + "type": "int", + "name": "outline_size", + "setter": "set_outline_size", + "getter": "get_outline_size" + }, + { + "type": "Color", + "name": "outline_color", + "setter": "set_outline_color", + "getter": "get_outline_color" + }, + { + "type": "int", + "name": "shadow_size", + "setter": "set_shadow_size", + "getter": "get_shadow_size" + }, + { + "type": "Color", + "name": "shadow_color", + "setter": "set_shadow_color", + "getter": "get_shadow_color" + }, + { + "type": "Vector2", + "name": "shadow_offset", + "setter": "set_shadow_offset", + "getter": "get_shadow_offset" + } + ] + }, + { + "name": "Light2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "ShadowFilter", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_FILTER_NONE", + "value": 0 + }, + { + "name": "SHADOW_FILTER_PCF5", + "value": 1 + }, + { + "name": "SHADOW_FILTER_PCF13", + "value": 2 + } + ] + }, + { + "name": "BlendMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_MODE_ADD", + "value": 0 + }, + { + "name": "BLEND_MODE_SUB", + "value": 1 + }, + { + "name": "BLEND_MODE_MIX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_editor_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "editor_only", + "type": "bool" + } + ] + }, + { + "name": "is_editor_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_z_range_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "z", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_z_range_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_z_range_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "z", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_z_range_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_layer_range_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_layer_range_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_layer_range_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_layer_range_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_item_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "item_cull_mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_item_shadow_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "item_shadow_cull_mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_shadow_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_shadow_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_shadow_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shadow_smooth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "smooth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_shadow_smooth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_shadow_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3209356555, + "arguments": [ + { + "name": "filter", + "type": "enum::Light2D.ShadowFilter" + } + ] + }, + { + "name": "get_shadow_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1973619177, + "return_value": { + "type": "enum::Light2D.ShadowFilter" + } + }, + { + "name": "set_shadow_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "shadow_color", + "type": "Color" + } + ] + }, + { + "name": "get_shadow_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2916638796, + "arguments": [ + { + "name": "mode", + "type": "enum::Light2D.BlendMode" + } + ] + }, + { + "name": "get_blend_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 936255250, + "return_value": { + "type": "enum::Light2D.BlendMode" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "bool", + "name": "editor_only", + "setter": "set_editor_only", + "getter": "is_editor_only" + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "float", + "name": "energy", + "setter": "set_energy", + "getter": "get_energy" + }, + { + "type": "int", + "name": "blend_mode", + "setter": "set_blend_mode", + "getter": "get_blend_mode" + }, + { + "type": "int", + "name": "range_z_min", + "setter": "set_z_range_min", + "getter": "get_z_range_min" + }, + { + "type": "int", + "name": "range_z_max", + "setter": "set_z_range_max", + "getter": "get_z_range_max" + }, + { + "type": "int", + "name": "range_layer_min", + "setter": "set_layer_range_min", + "getter": "get_layer_range_min" + }, + { + "type": "int", + "name": "range_layer_max", + "setter": "set_layer_range_max", + "getter": "get_layer_range_max" + }, + { + "type": "int", + "name": "range_item_cull_mask", + "setter": "set_item_cull_mask", + "getter": "get_item_cull_mask" + }, + { + "type": "bool", + "name": "shadow_enabled", + "setter": "set_shadow_enabled", + "getter": "is_shadow_enabled" + }, + { + "type": "Color", + "name": "shadow_color", + "setter": "set_shadow_color", + "getter": "get_shadow_color" + }, + { + "type": "int", + "name": "shadow_filter", + "setter": "set_shadow_filter", + "getter": "get_shadow_filter" + }, + { + "type": "float", + "name": "shadow_filter_smooth", + "setter": "set_shadow_smooth", + "getter": "get_shadow_smooth" + }, + { + "type": "int", + "name": "shadow_item_cull_mask", + "setter": "set_item_shadow_cull_mask", + "getter": "get_item_shadow_cull_mask" + } + ] + }, + { + "name": "Light3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_ENERGY", + "value": 0 + }, + { + "name": "PARAM_INDIRECT_ENERGY", + "value": 1 + }, + { + "name": "PARAM_VOLUMETRIC_FOG_ENERGY", + "value": 2 + }, + { + "name": "PARAM_SPECULAR", + "value": 3 + }, + { + "name": "PARAM_RANGE", + "value": 4 + }, + { + "name": "PARAM_SIZE", + "value": 5 + }, + { + "name": "PARAM_ATTENUATION", + "value": 6 + }, + { + "name": "PARAM_SPOT_ANGLE", + "value": 7 + }, + { + "name": "PARAM_SPOT_ATTENUATION", + "value": 8 + }, + { + "name": "PARAM_SHADOW_MAX_DISTANCE", + "value": 9 + }, + { + "name": "PARAM_SHADOW_SPLIT_1_OFFSET", + "value": 10 + }, + { + "name": "PARAM_SHADOW_SPLIT_2_OFFSET", + "value": 11 + }, + { + "name": "PARAM_SHADOW_SPLIT_3_OFFSET", + "value": 12 + }, + { + "name": "PARAM_SHADOW_FADE_START", + "value": 13 + }, + { + "name": "PARAM_SHADOW_NORMAL_BIAS", + "value": 14 + }, + { + "name": "PARAM_SHADOW_BIAS", + "value": 15 + }, + { + "name": "PARAM_SHADOW_PANCAKE_SIZE", + "value": 16 + }, + { + "name": "PARAM_SHADOW_OPACITY", + "value": 17 + }, + { + "name": "PARAM_SHADOW_BLUR", + "value": 18 + }, + { + "name": "PARAM_TRANSMITTANCE_BIAS", + "value": 19 + }, + { + "name": "PARAM_INTENSITY", + "value": 20 + }, + { + "name": "PARAM_MAX", + "value": 21 + } + ] + }, + { + "name": "BakeMode", + "is_bitfield": false, + "values": [ + { + "name": "BAKE_DISABLED", + "value": 0 + }, + { + "name": "BAKE_STATIC", + "value": 1 + }, + { + "name": "BAKE_DYNAMIC", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_editor_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "editor_only", + "type": "bool" + } + ] + }, + { + "name": "is_editor_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1722734213, + "arguments": [ + { + "name": "param", + "type": "enum::Light3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1844084987, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::Light3D.Param" + } + ] + }, + { + "name": "set_shadow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "has_shadow", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_negative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_negative", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "cull_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_enable_distance_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_distance_fade_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_distance_fade_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_distance_fade_shadow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_shadow", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_distance_fade_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance_fade_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_shadow_reverse_cull_face", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_shadow_reverse_cull_face", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bake_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 37739303, + "arguments": [ + { + "name": "bake_mode", + "type": "enum::Light3D.BakeMode" + } + ] + }, + { + "name": "get_bake_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 371737608, + "return_value": { + "type": "enum::Light3D.BakeMode" + } + }, + { + "name": "set_projector", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "projector", + "type": "Texture2D" + } + ] + }, + { + "name": "get_projector", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_temperature", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "temperature", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_temperature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_correlated_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "float", + "name": "light_intensity_lumens", + "setter": "set_param", + "getter": "get_param", + "index": 20 + }, + { + "type": "float", + "name": "light_intensity_lux", + "setter": "set_param", + "getter": "get_param", + "index": 20 + }, + { + "type": "float", + "name": "light_temperature", + "setter": "set_temperature", + "getter": "get_temperature" + }, + { + "type": "Color", + "name": "light_color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "float", + "name": "light_energy", + "setter": "set_param", + "getter": "get_param", + "index": 0 + }, + { + "type": "float", + "name": "light_indirect_energy", + "setter": "set_param", + "getter": "get_param", + "index": 1 + }, + { + "type": "float", + "name": "light_volumetric_fog_energy", + "setter": "set_param", + "getter": "get_param", + "index": 2 + }, + { + "type": "Texture2D", + "name": "light_projector", + "setter": "set_projector", + "getter": "get_projector" + }, + { + "type": "float", + "name": "light_size", + "setter": "set_param", + "getter": "get_param", + "index": 5 + }, + { + "type": "float", + "name": "light_angular_distance", + "setter": "set_param", + "getter": "get_param", + "index": 5 + }, + { + "type": "bool", + "name": "light_negative", + "setter": "set_negative", + "getter": "is_negative" + }, + { + "type": "float", + "name": "light_specular", + "setter": "set_param", + "getter": "get_param", + "index": 3 + }, + { + "type": "int", + "name": "light_bake_mode", + "setter": "set_bake_mode", + "getter": "get_bake_mode" + }, + { + "type": "int", + "name": "light_cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + }, + { + "type": "bool", + "name": "shadow_enabled", + "setter": "set_shadow", + "getter": "has_shadow" + }, + { + "type": "float", + "name": "shadow_bias", + "setter": "set_param", + "getter": "get_param", + "index": 15 + }, + { + "type": "float", + "name": "shadow_normal_bias", + "setter": "set_param", + "getter": "get_param", + "index": 14 + }, + { + "type": "bool", + "name": "shadow_reverse_cull_face", + "setter": "set_shadow_reverse_cull_face", + "getter": "get_shadow_reverse_cull_face" + }, + { + "type": "float", + "name": "shadow_transmittance_bias", + "setter": "set_param", + "getter": "get_param", + "index": 19 + }, + { + "type": "float", + "name": "shadow_opacity", + "setter": "set_param", + "getter": "get_param", + "index": 17 + }, + { + "type": "float", + "name": "shadow_blur", + "setter": "set_param", + "getter": "get_param", + "index": 18 + }, + { + "type": "bool", + "name": "distance_fade_enabled", + "setter": "set_enable_distance_fade", + "getter": "is_distance_fade_enabled" + }, + { + "type": "float", + "name": "distance_fade_begin", + "setter": "set_distance_fade_begin", + "getter": "get_distance_fade_begin" + }, + { + "type": "float", + "name": "distance_fade_shadow", + "setter": "set_distance_fade_shadow", + "getter": "get_distance_fade_shadow" + }, + { + "type": "float", + "name": "distance_fade_length", + "setter": "set_distance_fade_length", + "getter": "get_distance_fade_length" + }, + { + "type": "bool", + "name": "editor_only", + "setter": "set_editor_only", + "getter": "is_editor_only" + } + ] + }, + { + "name": "LightOccluder2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_occluder_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3258315893, + "arguments": [ + { + "name": "polygon", + "type": "OccluderPolygon2D" + } + ] + }, + { + "name": "get_occluder_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3962317075, + "return_value": { + "type": "OccluderPolygon2D" + } + }, + { + "name": "set_occluder_light_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_occluder_light_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_as_sdf_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_set_as_sdf_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "OccluderPolygon2D", + "name": "occluder", + "setter": "set_occluder_polygon", + "getter": "get_occluder_polygon" + }, + { + "type": "bool", + "name": "sdf_collision", + "setter": "set_as_sdf_collision", + "getter": "is_set_as_sdf_collision" + }, + { + "type": "int", + "name": "occluder_light_mask", + "setter": "set_occluder_light_mask", + "getter": "get_occluder_light_mask" + } + ] + }, + { + "name": "LightmapGI", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "BakeQuality", + "is_bitfield": false, + "values": [ + { + "name": "BAKE_QUALITY_LOW", + "value": 0 + }, + { + "name": "BAKE_QUALITY_MEDIUM", + "value": 1 + }, + { + "name": "BAKE_QUALITY_HIGH", + "value": 2 + }, + { + "name": "BAKE_QUALITY_ULTRA", + "value": 3 + } + ] + }, + { + "name": "GenerateProbes", + "is_bitfield": false, + "values": [ + { + "name": "GENERATE_PROBES_DISABLED", + "value": 0 + }, + { + "name": "GENERATE_PROBES_SUBDIV_4", + "value": 1 + }, + { + "name": "GENERATE_PROBES_SUBDIV_8", + "value": 2 + }, + { + "name": "GENERATE_PROBES_SUBDIV_16", + "value": 3 + }, + { + "name": "GENERATE_PROBES_SUBDIV_32", + "value": 4 + } + ] + }, + { + "name": "BakeError", + "is_bitfield": false, + "values": [ + { + "name": "BAKE_ERROR_OK", + "value": 0 + }, + { + "name": "BAKE_ERROR_NO_SCENE_ROOT", + "value": 1 + }, + { + "name": "BAKE_ERROR_FOREIGN_DATA", + "value": 2 + }, + { + "name": "BAKE_ERROR_NO_LIGHTMAPPER", + "value": 3 + }, + { + "name": "BAKE_ERROR_NO_SAVE_PATH", + "value": 4 + }, + { + "name": "BAKE_ERROR_NO_MESHES", + "value": 5 + }, + { + "name": "BAKE_ERROR_MESHES_INVALID", + "value": 6 + }, + { + "name": "BAKE_ERROR_CANT_CREATE_IMAGE", + "value": 7 + }, + { + "name": "BAKE_ERROR_USER_ABORTED", + "value": 8 + } + ] + }, + { + "name": "EnvironmentMode", + "is_bitfield": false, + "values": [ + { + "name": "ENVIRONMENT_MODE_DISABLED", + "value": 0 + }, + { + "name": "ENVIRONMENT_MODE_SCENE", + "value": 1 + }, + { + "name": "ENVIRONMENT_MODE_CUSTOM_SKY", + "value": 2 + }, + { + "name": "ENVIRONMENT_MODE_CUSTOM_COLOR", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_light_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1790597277, + "arguments": [ + { + "name": "data", + "type": "LightmapGIData" + } + ] + }, + { + "name": "get_light_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 290354153, + "return_value": { + "type": "LightmapGIData" + } + }, + { + "name": "set_bake_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1192215803, + "arguments": [ + { + "name": "bake_quality", + "type": "enum::LightmapGI.BakeQuality" + } + ] + }, + { + "name": "get_bake_quality", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 688832735, + "return_value": { + "type": "enum::LightmapGI.BakeQuality" + } + }, + { + "name": "set_bounces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bounces", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bounces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_generate_probes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 549981046, + "arguments": [ + { + "name": "subdivision", + "type": "enum::LightmapGI.GenerateProbes" + } + ] + }, + { + "name": "get_generate_probes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3930596226, + "return_value": { + "type": "enum::LightmapGI.GenerateProbes" + } + }, + { + "name": "set_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_environment_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2282650285, + "arguments": [ + { + "name": "mode", + "type": "enum::LightmapGI.EnvironmentMode" + } + ] + }, + { + "name": "get_environment_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4128646479, + "return_value": { + "type": "enum::LightmapGI.EnvironmentMode" + } + }, + { + "name": "set_environment_custom_sky", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3336722921, + "arguments": [ + { + "name": "sky", + "type": "Sky" + } + ] + }, + { + "name": "get_environment_custom_sky", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1177136966, + "return_value": { + "type": "Sky" + } + }, + { + "name": "set_environment_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_environment_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_environment_custom_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_environment_custom_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_texture_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_texture_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_texture_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_denoiser", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_denoiser", + "type": "bool" + } + ] + }, + { + "name": "is_using_denoiser", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_interior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_directional", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "directional", + "type": "bool" + } + ] + }, + { + "name": "is_directional", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817810567, + "arguments": [ + { + "name": "camera_attributes", + "type": "CameraAttributes" + } + ] + }, + { + "name": "get_camera_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3921283215, + "return_value": { + "type": "CameraAttributes" + } + } + ], + "properties": [ + { + "type": "int", + "name": "quality", + "setter": "set_bake_quality", + "getter": "get_bake_quality" + }, + { + "type": "int", + "name": "bounces", + "setter": "set_bounces", + "getter": "get_bounces" + }, + { + "type": "bool", + "name": "directional", + "setter": "set_directional", + "getter": "is_directional" + }, + { + "type": "bool", + "name": "interior", + "setter": "set_interior", + "getter": "is_interior" + }, + { + "type": "bool", + "name": "use_denoiser", + "setter": "set_use_denoiser", + "getter": "is_using_denoiser" + }, + { + "type": "float", + "name": "bias", + "setter": "set_bias", + "getter": "get_bias" + }, + { + "type": "int", + "name": "max_texture_size", + "setter": "set_max_texture_size", + "getter": "get_max_texture_size" + }, + { + "type": "int", + "name": "environment_mode", + "setter": "set_environment_mode", + "getter": "get_environment_mode" + }, + { + "type": "Sky", + "name": "environment_custom_sky", + "setter": "set_environment_custom_sky", + "getter": "get_environment_custom_sky" + }, + { + "type": "Color", + "name": "environment_custom_color", + "setter": "set_environment_custom_color", + "getter": "get_environment_custom_color" + }, + { + "type": "float", + "name": "environment_custom_energy", + "setter": "set_environment_custom_energy", + "getter": "get_environment_custom_energy" + }, + { + "type": "CameraAttributesPractical,CameraAttributesPhysical", + "name": "camera_attributes", + "setter": "set_camera_attributes", + "getter": "get_camera_attributes" + }, + { + "type": "int", + "name": "generate_probes_subdiv", + "setter": "set_generate_probes", + "getter": "get_generate_probes" + }, + { + "type": "LightmapGIData", + "name": "light_data", + "setter": "set_light_data", + "getter": "get_light_data" + } + ] + }, + { + "name": "LightmapGIData", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_light_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1278366092, + "arguments": [ + { + "name": "light_texture", + "type": "TextureLayered" + } + ] + }, + { + "name": "get_light_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3984243839, + "return_value": { + "type": "TextureLayered" + } + }, + { + "name": "set_uses_spherical_harmonics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "uses_spherical_harmonics", + "type": "bool" + } + ] + }, + { + "name": "is_using_spherical_harmonics", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_user", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4272570515, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "uv_scale", + "type": "Rect2" + }, + { + "name": "slice_index", + "type": "int", + "meta": "int32" + }, + { + "name": "sub_instance", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_user_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_user_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "user_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_users", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "TextureLayered", + "name": "light_texture", + "setter": "set_light_texture", + "getter": "get_light_texture" + }, + { + "type": "Array", + "name": "light_textures", + "setter": "_set_light_textures_data", + "getter": "_get_light_textures_data" + }, + { + "type": "bool", + "name": "uses_spherical_harmonics", + "setter": "set_uses_spherical_harmonics", + "getter": "is_using_spherical_harmonics" + }, + { + "type": "Array", + "name": "user_data", + "setter": "_set_user_data", + "getter": "_get_user_data" + }, + { + "type": "Dictionary", + "name": "probe_data", + "setter": "_set_probe_data", + "getter": "_get_probe_data" + } + ] + }, + { + "name": "LightmapProbe", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core" + }, + { + "name": "Lightmapper", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "LightmapperRD", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Lightmapper", + "api_type": "core" + }, + { + "name": "Line2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "LineJointMode", + "is_bitfield": false, + "values": [ + { + "name": "LINE_JOINT_SHARP", + "value": 0 + }, + { + "name": "LINE_JOINT_BEVEL", + "value": 1 + }, + { + "name": "LINE_JOINT_ROUND", + "value": 2 + } + ] + }, + { + "name": "LineCapMode", + "is_bitfield": false, + "values": [ + { + "name": "LINE_CAP_NONE", + "value": 0 + }, + { + "name": "LINE_CAP_BOX", + "value": 1 + }, + { + "name": "LINE_CAP_ROUND", + "value": 2 + } + ] + }, + { + "name": "LineTextureMode", + "is_bitfield": false, + "values": [ + { + "name": "LINE_TEXTURE_NONE", + "value": 0 + }, + { + "name": "LINE_TEXTURE_TILE", + "value": 1 + }, + { + "name": "LINE_TEXTURE_STRETCH", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_point_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_point_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 468506575, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_default_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_default_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_gradient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "color", + "type": "Gradient" + } + ] + }, + { + "name": "get_gradient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1952559516, + "arguments": [ + { + "name": "mode", + "type": "enum::Line2D.LineTextureMode" + } + ] + }, + { + "name": "get_texture_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2341040722, + "return_value": { + "type": "enum::Line2D.LineTextureMode" + } + }, + { + "name": "set_joint_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 604292979, + "arguments": [ + { + "name": "mode", + "type": "enum::Line2D.LineJointMode" + } + ] + }, + { + "name": "get_joint_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546544037, + "return_value": { + "type": "enum::Line2D.LineJointMode" + } + }, + { + "name": "set_begin_cap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1669024546, + "arguments": [ + { + "name": "mode", + "type": "enum::Line2D.LineCapMode" + } + ] + }, + { + "name": "get_begin_cap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1107511441, + "return_value": { + "type": "enum::Line2D.LineCapMode" + } + }, + { + "name": "set_end_cap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1669024546, + "arguments": [ + { + "name": "mode", + "type": "enum::Line2D.LineCapMode" + } + ] + }, + { + "name": "get_end_cap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1107511441, + "return_value": { + "type": "enum::Line2D.LineCapMode" + } + }, + { + "name": "set_sharp_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "limit", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sharp_limit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_round_precision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "precision", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_round_precision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_antialiased", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "antialiased", + "type": "bool" + } + ] + }, + { + "name": "get_antialiased", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "points", + "setter": "set_points", + "getter": "get_points" + }, + { + "type": "float", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "Curve", + "name": "width_curve", + "setter": "set_curve", + "getter": "get_curve" + }, + { + "type": "Color", + "name": "default_color", + "setter": "set_default_color", + "getter": "get_default_color" + }, + { + "type": "Gradient", + "name": "gradient", + "setter": "set_gradient", + "getter": "get_gradient" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "int", + "name": "texture_mode", + "setter": "set_texture_mode", + "getter": "get_texture_mode" + }, + { + "type": "int", + "name": "joint_mode", + "setter": "set_joint_mode", + "getter": "get_joint_mode" + }, + { + "type": "int", + "name": "begin_cap_mode", + "setter": "set_begin_cap_mode", + "getter": "get_begin_cap_mode" + }, + { + "type": "int", + "name": "end_cap_mode", + "setter": "set_end_cap_mode", + "getter": "get_end_cap_mode" + }, + { + "type": "float", + "name": "sharp_limit", + "setter": "set_sharp_limit", + "getter": "get_sharp_limit" + }, + { + "type": "int", + "name": "round_precision", + "setter": "set_round_precision", + "getter": "get_round_precision" + }, + { + "type": "bool", + "name": "antialiased", + "setter": "set_antialiased", + "getter": "get_antialiased" + } + ] + }, + { + "name": "LineEdit", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "MenuItems", + "is_bitfield": false, + "values": [ + { + "name": "MENU_CUT", + "value": 0 + }, + { + "name": "MENU_COPY", + "value": 1 + }, + { + "name": "MENU_PASTE", + "value": 2 + }, + { + "name": "MENU_CLEAR", + "value": 3 + }, + { + "name": "MENU_SELECT_ALL", + "value": 4 + }, + { + "name": "MENU_UNDO", + "value": 5 + }, + { + "name": "MENU_REDO", + "value": 6 + }, + { + "name": "MENU_SUBMENU_TEXT_DIR", + "value": 7 + }, + { + "name": "MENU_DIR_INHERITED", + "value": 8 + }, + { + "name": "MENU_DIR_AUTO", + "value": 9 + }, + { + "name": "MENU_DIR_LTR", + "value": 10 + }, + { + "name": "MENU_DIR_RTL", + "value": 11 + }, + { + "name": "MENU_DISPLAY_UCC", + "value": 12 + }, + { + "name": "MENU_SUBMENU_INSERT_UCC", + "value": 13 + }, + { + "name": "MENU_INSERT_LRM", + "value": 14 + }, + { + "name": "MENU_INSERT_RLM", + "value": 15 + }, + { + "name": "MENU_INSERT_LRE", + "value": 16 + }, + { + "name": "MENU_INSERT_RLE", + "value": 17 + }, + { + "name": "MENU_INSERT_LRO", + "value": 18 + }, + { + "name": "MENU_INSERT_RLO", + "value": 19 + }, + { + "name": "MENU_INSERT_PDF", + "value": 20 + }, + { + "name": "MENU_INSERT_ALM", + "value": 21 + }, + { + "name": "MENU_INSERT_LRI", + "value": 22 + }, + { + "name": "MENU_INSERT_RLI", + "value": 23 + }, + { + "name": "MENU_INSERT_FSI", + "value": 24 + }, + { + "name": "MENU_INSERT_PDI", + "value": 25 + }, + { + "name": "MENU_INSERT_ZWJ", + "value": 26 + }, + { + "name": "MENU_INSERT_ZWNJ", + "value": 27 + }, + { + "name": "MENU_INSERT_WJ", + "value": 28 + }, + { + "name": "MENU_INSERT_SHY", + "value": 29 + }, + { + "name": "MENU_MAX", + "value": 30 + } + ] + }, + { + "name": "VirtualKeyboardType", + "is_bitfield": false, + "values": [ + { + "name": "KEYBOARD_TYPE_DEFAULT", + "value": 0 + }, + { + "name": "KEYBOARD_TYPE_MULTILINE", + "value": 1 + }, + { + "name": "KEYBOARD_TYPE_NUMBER", + "value": 2 + }, + { + "name": "KEYBOARD_TYPE_NUMBER_DECIMAL", + "value": 3 + }, + { + "name": "KEYBOARD_TYPE_PHONE", + "value": 4 + }, + { + "name": "KEYBOARD_TYPE_EMAIL_ADDRESS", + "value": 5 + }, + { + "name": "KEYBOARD_TYPE_PASSWORD", + "value": 6 + }, + { + "name": "KEYBOARD_TYPE_URL", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1328111411, + "arguments": [ + { + "name": "from", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "to", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "select_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "deselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "has_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_selection_from_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_selection_to_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_draw_control_chars", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_control_chars", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_caret_column", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_caret_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_scroll_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_expand_to_text_length_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_expand_to_text_length_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_blink_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_caret_blink_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_mid_grapheme_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_caret_mid_grapheme_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_force_displayed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_caret_force_displayed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_blink_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "interval", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_caret_blink_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "chars", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "insert_text_at_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "delete_char_at_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "delete_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_column", + "type": "int", + "meta": "int32" + }, + { + "name": "to_column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_editable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_secret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_secret", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_secret_character", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "character", + "type": "String" + } + ] + }, + { + "name": "get_secret_character", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "menu_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229722558, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "is_menu_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_context_menu_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_context_menu_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_virtual_keyboard_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_virtual_keyboard_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_virtual_keyboard_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2696893573, + "arguments": [ + { + "name": "type", + "type": "enum::LineEdit.VirtualKeyboardType" + } + ] + }, + { + "name": "get_virtual_keyboard_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1928699316, + "return_value": { + "type": "enum::LineEdit.VirtualKeyboardType" + } + }, + { + "name": "set_clear_button_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_clear_button_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut_keys_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_shortcut_keys_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_middle_mouse_paste_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_middle_mouse_paste_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selecting_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_selecting_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_deselect_on_focus_loss_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_deselect_on_focus_loss_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_right_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_right_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 255860311, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_flat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_flat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_select_all_on_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_select_all_on_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "text_changed", + "arguments": [ + { + "name": "new_text", + "type": "String" + } + ] + }, + { + "name": "text_change_rejected", + "arguments": [ + { + "name": "rejected_substring", + "type": "String" + } + ] + }, + { + "name": "text_submitted", + "arguments": [ + { + "name": "new_text", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "String", + "name": "placeholder_text", + "setter": "set_placeholder", + "getter": "get_placeholder" + }, + { + "type": "int", + "name": "alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "int", + "name": "max_length", + "setter": "set_max_length", + "getter": "get_max_length" + }, + { + "type": "bool", + "name": "editable", + "setter": "set_editable", + "getter": "is_editable" + }, + { + "type": "bool", + "name": "secret", + "setter": "set_secret", + "getter": "is_secret" + }, + { + "type": "String", + "name": "secret_character", + "setter": "set_secret_character", + "getter": "get_secret_character" + }, + { + "type": "bool", + "name": "expand_to_text_length", + "setter": "set_expand_to_text_length_enabled", + "getter": "is_expand_to_text_length_enabled" + }, + { + "type": "bool", + "name": "context_menu_enabled", + "setter": "set_context_menu_enabled", + "getter": "is_context_menu_enabled" + }, + { + "type": "bool", + "name": "virtual_keyboard_enabled", + "setter": "set_virtual_keyboard_enabled", + "getter": "is_virtual_keyboard_enabled" + }, + { + "type": "int", + "name": "virtual_keyboard_type", + "setter": "set_virtual_keyboard_type", + "getter": "get_virtual_keyboard_type" + }, + { + "type": "bool", + "name": "clear_button_enabled", + "setter": "set_clear_button_enabled", + "getter": "is_clear_button_enabled" + }, + { + "type": "bool", + "name": "shortcut_keys_enabled", + "setter": "set_shortcut_keys_enabled", + "getter": "is_shortcut_keys_enabled" + }, + { + "type": "bool", + "name": "middle_mouse_paste_enabled", + "setter": "set_middle_mouse_paste_enabled", + "getter": "is_middle_mouse_paste_enabled" + }, + { + "type": "bool", + "name": "selecting_enabled", + "setter": "set_selecting_enabled", + "getter": "is_selecting_enabled" + }, + { + "type": "bool", + "name": "deselect_on_focus_loss_enabled", + "setter": "set_deselect_on_focus_loss_enabled", + "getter": "is_deselect_on_focus_loss_enabled" + }, + { + "type": "Texture", + "name": "right_icon", + "setter": "set_right_icon", + "getter": "get_right_icon" + }, + { + "type": "bool", + "name": "flat", + "setter": "set_flat", + "getter": "is_flat" + }, + { + "type": "bool", + "name": "draw_control_chars", + "setter": "set_draw_control_chars", + "getter": "get_draw_control_chars" + }, + { + "type": "bool", + "name": "select_all_on_focus", + "setter": "set_select_all_on_focus", + "getter": "is_select_all_on_focus" + }, + { + "type": "bool", + "name": "caret_blink", + "setter": "set_caret_blink_enabled", + "getter": "is_caret_blink_enabled" + }, + { + "type": "float", + "name": "caret_blink_interval", + "setter": "set_caret_blink_interval", + "getter": "get_caret_blink_interval" + }, + { + "type": "int", + "name": "caret_column", + "setter": "set_caret_column", + "getter": "get_caret_column" + }, + { + "type": "bool", + "name": "caret_force_displayed", + "setter": "set_caret_force_displayed", + "getter": "is_caret_force_displayed" + }, + { + "type": "bool", + "name": "caret_mid_grapheme", + "setter": "set_caret_mid_grapheme_enabled", + "getter": "is_caret_mid_grapheme_enabled" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "LinkButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "BaseButton", + "api_type": "core", + "enums": [ + { + "name": "UnderlineMode", + "is_bitfield": false, + "values": [ + { + "name": "UNDERLINE_MODE_ALWAYS", + "value": 0 + }, + { + "name": "UNDERLINE_MODE_ON_HOVER", + "value": 1 + }, + { + "name": "UNDERLINE_MODE_NEVER", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_uri", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "uri", + "type": "String" + } + ] + }, + { + "name": "get_uri", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_underline_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4032947085, + "arguments": [ + { + "name": "underline_mode", + "type": "enum::LinkButton.UnderlineMode" + } + ] + }, + { + "name": "get_underline_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 568343738, + "return_value": { + "type": "enum::LinkButton.UnderlineMode" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "int", + "name": "underline", + "setter": "set_underline_mode", + "getter": "get_underline_mode" + }, + { + "type": "String", + "name": "uri", + "setter": "set_uri", + "getter": "get_uri" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "MainLoop", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_OS_MEMORY_WARNING", + "value": 2009 + }, + { + "name": "NOTIFICATION_TRANSLATION_CHANGED", + "value": 2010 + }, + { + "name": "NOTIFICATION_WM_ABOUT", + "value": 2011 + }, + { + "name": "NOTIFICATION_CRASH", + "value": 2012 + }, + { + "name": "NOTIFICATION_OS_IME_UPDATE", + "value": 2013 + }, + { + "name": "NOTIFICATION_APPLICATION_RESUMED", + "value": 2014 + }, + { + "name": "NOTIFICATION_APPLICATION_PAUSED", + "value": 2015 + }, + { + "name": "NOTIFICATION_APPLICATION_FOCUS_IN", + "value": 2016 + }, + { + "name": "NOTIFICATION_APPLICATION_FOCUS_OUT", + "value": 2017 + }, + { + "name": "NOTIFICATION_TEXT_SERVER_CHANGED", + "value": 2018 + } + ], + "methods": [ + { + "name": "_initialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_physics_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_finalize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + } + ], + "signals": [ + { + "name": "on_request_permissions_result", + "arguments": [ + { + "name": "permission", + "type": "String" + }, + { + "name": "granted", + "type": "bool" + } + ] + } + ] + }, + { + "name": "MarginContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core" + }, + { + "name": "Marker2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_gizmo_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "extents", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gizmo_extents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "gizmo_extents", + "setter": "set_gizmo_extents", + "getter": "get_gizmo_extents" + } + ] + }, + { + "name": "Marker3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_gizmo_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "extents", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gizmo_extents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "gizmo_extents", + "setter": "set_gizmo_extents", + "getter": "get_gizmo_extents" + } + ] + }, + { + "name": "Marshalls", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "variant_to_base64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3876248563, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "variant", + "type": "Variant" + }, + { + "name": "full_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "base64_to_variant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 218087648, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "base64_str", + "type": "String" + }, + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "raw_to_base64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3999417757, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "array", + "type": "PackedByteArray" + } + ] + }, + { + "name": "base64_to_raw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659035735, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "base64_str", + "type": "String" + } + ] + }, + { + "name": "utf8_to_base64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "utf8_str", + "type": "String" + } + ] + }, + { + "name": "base64_to_utf8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1703090593, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "base64_str", + "type": "String" + } + ] + } + ] + }, + { + "name": "Material", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "constants": [ + { + "name": "RENDER_PRIORITY_MAX", + "value": 127 + }, + { + "name": "RENDER_PRIORITY_MIN", + "value": -128 + } + ], + "methods": [ + { + "name": "_get_shader_rid", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_get_shader_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Shader.Mode" + } + }, + { + "name": "_can_do_next_pass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_can_use_render_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_next_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "next_pass", + "type": "Material" + } + ] + }, + { + "name": "get_next_pass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_render_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_render_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "inspect_native_shader_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ], + "properties": [ + { + "type": "int", + "name": "render_priority", + "setter": "set_render_priority", + "getter": "get_render_priority" + }, + { + "type": "Material", + "name": "next_pass", + "setter": "set_next_pass", + "getter": "get_next_pass" + } + ] + }, + { + "name": "MenuBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "set_switch_on_hover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_switch_on_hover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_disable_shortcuts", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_prefer_global_menu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_prefer_global_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_native_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_menu_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_flat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_flat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_start_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "enabled", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_start_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_menu_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + }, + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_menu_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_menu_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_menu_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_menu_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_menu_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_menu_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "is_menu_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_menu_popup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2100501353, + "return_value": { + "type": "PopupMenu" + }, + "arguments": [ + { + "name": "menu", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "flat", + "setter": "set_flat", + "getter": "is_flat" + }, + { + "type": "bool", + "name": "start_index", + "setter": "set_start_index", + "getter": "get_start_index" + }, + { + "type": "bool", + "name": "switch_on_hover", + "setter": "set_switch_on_hover", + "getter": "is_switch_on_hover" + }, + { + "type": "bool", + "name": "prefer_global_menu", + "setter": "set_prefer_global_menu", + "getter": "is_prefer_global_menu" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + } + ] + }, + { + "name": "MenuButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Button", + "api_type": "core", + "methods": [ + { + "name": "get_popup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229722558, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "show_popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_switch_on_hover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_switch_on_hover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_disable_shortcuts", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_item_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "signals": [ + { + "name": "about_to_popup" + } + ], + "properties": [ + { + "type": "bool", + "name": "switch_on_hover", + "setter": "set_switch_on_hover", + "getter": "is_switch_on_hover" + }, + { + "type": "int", + "name": "item_count", + "setter": "set_item_count", + "getter": "get_item_count" + } + ] + }, + { + "name": "Mesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "PrimitiveType", + "is_bitfield": false, + "values": [ + { + "name": "PRIMITIVE_POINTS", + "value": 0 + }, + { + "name": "PRIMITIVE_LINES", + "value": 1 + }, + { + "name": "PRIMITIVE_LINE_STRIP", + "value": 2 + }, + { + "name": "PRIMITIVE_TRIANGLES", + "value": 3 + }, + { + "name": "PRIMITIVE_TRIANGLE_STRIP", + "value": 4 + } + ] + }, + { + "name": "ArrayType", + "is_bitfield": false, + "values": [ + { + "name": "ARRAY_VERTEX", + "value": 0 + }, + { + "name": "ARRAY_NORMAL", + "value": 1 + }, + { + "name": "ARRAY_TANGENT", + "value": 2 + }, + { + "name": "ARRAY_COLOR", + "value": 3 + }, + { + "name": "ARRAY_TEX_UV", + "value": 4 + }, + { + "name": "ARRAY_TEX_UV2", + "value": 5 + }, + { + "name": "ARRAY_CUSTOM0", + "value": 6 + }, + { + "name": "ARRAY_CUSTOM1", + "value": 7 + }, + { + "name": "ARRAY_CUSTOM2", + "value": 8 + }, + { + "name": "ARRAY_CUSTOM3", + "value": 9 + }, + { + "name": "ARRAY_BONES", + "value": 10 + }, + { + "name": "ARRAY_WEIGHTS", + "value": 11 + }, + { + "name": "ARRAY_INDEX", + "value": 12 + }, + { + "name": "ARRAY_MAX", + "value": 13 + } + ] + }, + { + "name": "ArrayCustomFormat", + "is_bitfield": false, + "values": [ + { + "name": "ARRAY_CUSTOM_RGBA8_UNORM", + "value": 0 + }, + { + "name": "ARRAY_CUSTOM_RGBA8_SNORM", + "value": 1 + }, + { + "name": "ARRAY_CUSTOM_RG_HALF", + "value": 2 + }, + { + "name": "ARRAY_CUSTOM_RGBA_HALF", + "value": 3 + }, + { + "name": "ARRAY_CUSTOM_R_FLOAT", + "value": 4 + }, + { + "name": "ARRAY_CUSTOM_RG_FLOAT", + "value": 5 + }, + { + "name": "ARRAY_CUSTOM_RGB_FLOAT", + "value": 6 + }, + { + "name": "ARRAY_CUSTOM_RGBA_FLOAT", + "value": 7 + }, + { + "name": "ARRAY_CUSTOM_MAX", + "value": 8 + } + ] + }, + { + "name": "ArrayFormat", + "is_bitfield": true, + "values": [ + { + "name": "ARRAY_FORMAT_VERTEX", + "value": 1 + }, + { + "name": "ARRAY_FORMAT_NORMAL", + "value": 2 + }, + { + "name": "ARRAY_FORMAT_TANGENT", + "value": 4 + }, + { + "name": "ARRAY_FORMAT_COLOR", + "value": 8 + }, + { + "name": "ARRAY_FORMAT_TEX_UV", + "value": 16 + }, + { + "name": "ARRAY_FORMAT_TEX_UV2", + "value": 32 + }, + { + "name": "ARRAY_FORMAT_CUSTOM0", + "value": 64 + }, + { + "name": "ARRAY_FORMAT_CUSTOM1", + "value": 128 + }, + { + "name": "ARRAY_FORMAT_CUSTOM2", + "value": 256 + }, + { + "name": "ARRAY_FORMAT_CUSTOM3", + "value": 512 + }, + { + "name": "ARRAY_FORMAT_BONES", + "value": 1024 + }, + { + "name": "ARRAY_FORMAT_WEIGHTS", + "value": 2048 + }, + { + "name": "ARRAY_FORMAT_INDEX", + "value": 4096 + }, + { + "name": "ARRAY_FORMAT_BLEND_SHAPE_MASK", + "value": 7 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_BASE", + "value": 13 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_BITS", + "value": 3 + }, + { + "name": "ARRAY_FORMAT_CUSTOM0_SHIFT", + "value": 13 + }, + { + "name": "ARRAY_FORMAT_CUSTOM1_SHIFT", + "value": 16 + }, + { + "name": "ARRAY_FORMAT_CUSTOM2_SHIFT", + "value": 19 + }, + { + "name": "ARRAY_FORMAT_CUSTOM3_SHIFT", + "value": 22 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_MASK", + "value": 7 + }, + { + "name": "ARRAY_COMPRESS_FLAGS_BASE", + "value": 25 + }, + { + "name": "ARRAY_FLAG_USE_2D_VERTICES", + "value": 33554432 + }, + { + "name": "ARRAY_FLAG_USE_DYNAMIC_UPDATE", + "value": 67108864 + }, + { + "name": "ARRAY_FLAG_USE_8_BONE_WEIGHTS", + "value": 134217728 + }, + { + "name": "ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY", + "value": 268435456 + } + ] + }, + { + "name": "BlendShapeMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_SHAPE_MODE_NORMALIZED", + "value": 0 + }, + { + "name": "BLEND_SHAPE_MODE_RELATIVE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_get_surface_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_surface_get_array_len", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_array_index_len", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_arrays", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_blend_shape_arrays", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Array" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_lods", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_format", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_get_primitive_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_surface_set_material", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "_surface_get_material", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_blend_shape_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_blend_shape_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_set_blend_shape_name", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "_get_aabb", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_lightmap_size_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_lightmap_size_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "get_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "get_surface_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "surface_get_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_get_blend_shape_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "typedarray::Array" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "surface_set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3671737478, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "surface_get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2897466400, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "surf_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + }, + { + "name": "create_trimesh_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4160111210, + "return_value": { + "type": "ConcavePolygonShape3D" + } + }, + { + "name": "create_convex_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2529984628, + "return_value": { + "type": "ConvexPolygonShape3D" + }, + "arguments": [ + { + "name": "clean", + "type": "bool", + "default_value": "true" + }, + { + "name": "simplify", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1208642001, + "return_value": { + "type": "Mesh" + }, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "generate_triangle_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3476533166, + "return_value": { + "type": "TriangleMesh" + } + } + ], + "properties": [ + { + "type": "Vector2i", + "name": "lightmap_size_hint", + "setter": "set_lightmap_size_hint", + "getter": "get_lightmap_size_hint" + } + ] + }, + { + "name": "MeshDataTool", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_from_surface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2727020678, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "mesh", + "type": "ArrayMesh" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "commit_to_surface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521099812, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "mesh", + "type": "ArrayMesh" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_vertex_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_edge_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_face_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_vertex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "vertex", + "type": "Vector3" + } + ] + }, + { + "name": "get_vertex", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "normal", + "type": "Vector3" + } + ] + }, + { + "name": "get_vertex_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1104099133, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tangent", + "type": "Plane" + } + ] + }, + { + "name": "get_vertex_tangent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1372055458, + "return_value": { + "type": "Plane" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_uv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "uv", + "type": "Vector2" + } + ] + }, + { + "name": "get_vertex_uv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_uv2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "uv2", + "type": "Vector2" + } + ] + }, + { + "name": "get_vertex_uv2", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_vertex_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3500328261, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bones", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_vertex_bones", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706082319, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_weights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1345852415, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "get_vertex_weights", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1542882410, + "return_value": { + "type": "PackedFloat32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_vertex_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "get_vertex_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_vertex_edges", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706082319, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_vertex_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706082319, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_edge_vertex", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "vertex", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_edge_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706082319, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_edge_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "get_edge_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_face_vertex", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "vertex", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_face_edge", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "edge", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_face_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "get_face_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_face_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ] + }, + { + "name": "MeshInstance2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "signals": [ + { + "name": "texture_changed" + } + ], + "properties": [ + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "MeshInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GeometryInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_skeleton_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "skeleton_path", + "type": "NodePath" + } + ] + }, + { + "name": "get_skeleton_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 277076166, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971435618, + "arguments": [ + { + "name": "skin", + "type": "Skin" + } + ] + }, + { + "name": "get_skin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074563878, + "return_value": { + "type": "Skin" + } + }, + { + "name": "get_surface_override_material_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_surface_override_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3671737478, + "arguments": [ + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_surface_override_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2897466400, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_active_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2897466400, + "return_value": { + "type": "Material" + }, + "arguments": [ + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_trimesh_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_convex_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2751962654, + "arguments": [ + { + "name": "clean", + "type": "bool", + "default_value": "true" + }, + { + "name": "simplify", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_multiple_convex_collisions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_blend_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_blend_shape_by_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4150868206, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_blend_shape_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "blend_shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_blend_shape_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "blend_shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "create_debug_tangents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "Skin", + "name": "skin", + "setter": "set_skin", + "getter": "get_skin" + }, + { + "type": "NodePath", + "name": "skeleton", + "setter": "set_skeleton_path", + "getter": "get_skeleton_path" + } + ] + }, + { + "name": "MeshLibrary", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "create_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_item_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969122797, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "set_item_mesh_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "mesh_transform", + "type": "Transform3D" + } + ] + }, + { + "name": "set_item_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3483353960, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "navigation_mesh", + "type": "NavigationMesh" + } + ] + }, + { + "name": "set_item_navigation_mesh_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "navigation_mesh", + "type": "Transform3D" + } + ] + }, + { + "name": "set_item_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "set_item_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 537221740, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "shapes", + "type": "Array" + } + ] + }, + { + "name": "set_item_preview", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_item_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1576363275, + "return_value": { + "type": "Mesh" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_mesh_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2729647406, + "return_value": { + "type": "NavigationMesh" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_navigation_mesh_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_shapes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_preview", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "find_item_by_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_item_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "get_last_unused_item_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "MeshTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_image_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_image_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_base_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_base_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "properties": [ + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "Texture2D", + "name": "base_texture", + "setter": "set_base_texture", + "getter": "get_base_texture" + }, + { + "type": "Vector2", + "name": "image_size", + "setter": "set_image_size", + "getter": "get_image_size" + } + ] + }, + { + "name": "MethodTweener", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Tweener", + "api_type": "core", + "methods": [ + { + "name": "set_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 266477812, + "return_value": { + "type": "MethodTweener" + }, + "arguments": [ + { + "name": "delay", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_trans", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740975367, + "return_value": { + "type": "MethodTweener" + }, + "arguments": [ + { + "name": "trans", + "type": "enum::Tween.TransitionType" + } + ] + }, + { + "name": "set_ease", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 315540545, + "return_value": { + "type": "MethodTweener" + }, + "arguments": [ + { + "name": "ease", + "type": "enum::Tween.EaseType" + } + ] + } + ] + }, + { + "name": "MissingNode", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "set_original_class", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_original_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_recording_properties", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_recording_properties", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "original_class", + "setter": "set_original_class", + "getter": "get_original_class" + }, + { + "type": "bool", + "name": "recording_properties", + "setter": "set_recording_properties", + "getter": "is_recording_properties" + } + ] + }, + { + "name": "MissingResource", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_original_class", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_original_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_recording_properties", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_recording_properties", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "original_class", + "setter": "set_original_class", + "getter": "get_original_class" + }, + { + "type": "bool", + "name": "recording_properties", + "setter": "set_recording_properties", + "getter": "is_recording_properties" + } + ] + }, + { + "name": "MobileVRInterface", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRInterface", + "api_type": "core", + "methods": [ + { + "name": "set_eye_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "eye_height", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_eye_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_iod", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "iod", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_iod", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_display_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "display_width", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_display_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_display_to_lens", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "display_to_lens", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_display_to_lens", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_oversample", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "oversample", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_oversample", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_k1", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "k", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_k1", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_k2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "k", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_k2", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + } + ], + "properties": [ + { + "type": "float", + "name": "eye_height", + "setter": "set_eye_height", + "getter": "get_eye_height" + }, + { + "type": "float", + "name": "iod", + "setter": "set_iod", + "getter": "get_iod" + }, + { + "type": "float", + "name": "display_width", + "setter": "set_display_width", + "getter": "get_display_width" + }, + { + "type": "float", + "name": "display_to_lens", + "setter": "set_display_to_lens", + "getter": "get_display_to_lens" + }, + { + "type": "float", + "name": "oversample", + "setter": "set_oversample", + "getter": "get_oversample" + }, + { + "type": "float", + "name": "k1", + "setter": "set_k1", + "getter": "get_k1" + }, + { + "type": "float", + "name": "k2", + "setter": "set_k2", + "getter": "get_k2" + } + ] + }, + { + "name": "MovieWriter", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "_get_audio_mix_rate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_get_audio_speaker_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::AudioServer.SpeakerMode" + } + }, + { + "name": "_handles_file", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_write_begin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "movie_size", + "type": "Vector2i" + }, + { + "name": "fps", + "type": "int", + "meta": "uint32" + }, + { + "name": "base_path", + "type": "String" + } + ] + }, + { + "name": "_write_frame", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "frame_image", + "type": "Image" + }, + { + "name": "audio_frame_block", + "type": "const void*" + } + ] + }, + { + "name": "_write_end", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "add_writer", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 4023702871, + "arguments": [ + { + "name": "writer", + "type": "MovieWriter" + } + ] + } + ] + }, + { + "name": "MovieWriterMJPEG", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "MovieWriter", + "api_type": "core" + }, + { + "name": "MovieWriterPNGWAV", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "MovieWriter", + "api_type": "core" + }, + { + "name": "MultiMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "TransformFormat", + "is_bitfield": false, + "values": [ + { + "name": "TRANSFORM_2D", + "value": 0 + }, + { + "name": "TRANSFORM_3D", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_use_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_custom_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_custom_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_transform_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2404750322, + "arguments": [ + { + "name": "format", + "type": "enum::MultiMesh.TransformFormat" + } + ] + }, + { + "name": "get_transform_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2444156481, + "return_value": { + "type": "enum::MultiMesh.TransformFormat" + } + }, + { + "name": "set_instance_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_instance_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_visible_instance_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_visible_instance_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_instance_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "set_instance_transform_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 30160968, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_instance_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_instance_transform_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3836996910, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_instance_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_instance_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_instance_custom_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_data", + "type": "Color" + } + ] + }, + { + "name": "get_instance_custom_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "instance", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "get_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675695659, + "return_value": { + "type": "PackedFloat32Array" + } + }, + { + "name": "set_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "buffer", + "type": "PackedFloat32Array" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "transform_format", + "setter": "set_transform_format", + "getter": "get_transform_format" + }, + { + "type": "bool", + "name": "use_colors", + "setter": "set_use_colors", + "getter": "is_using_colors" + }, + { + "type": "bool", + "name": "use_custom_data", + "setter": "set_use_custom_data", + "getter": "is_using_custom_data" + }, + { + "type": "int", + "name": "instance_count", + "setter": "set_instance_count", + "getter": "get_instance_count" + }, + { + "type": "int", + "name": "visible_instance_count", + "setter": "set_visible_instance_count", + "getter": "get_visible_instance_count" + }, + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "PackedFloat32Array", + "name": "buffer", + "setter": "set_buffer", + "getter": "get_buffer" + }, + { + "type": "PackedVector3Array", + "name": "transform_array", + "setter": "_set_transform_array", + "getter": "_get_transform_array" + }, + { + "type": "PackedVector2Array", + "name": "transform_2d_array", + "setter": "_set_transform_2d_array", + "getter": "_get_transform_2d_array" + }, + { + "type": "PackedColorArray", + "name": "color_array", + "setter": "_set_color_array", + "getter": "_get_color_array" + }, + { + "type": "PackedColorArray", + "name": "custom_data_array", + "setter": "_set_custom_data_array", + "getter": "_get_custom_data_array" + } + ] + }, + { + "name": "MultiMeshInstance2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_multimesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2246127404, + "arguments": [ + { + "name": "multimesh", + "type": "MultiMesh" + } + ] + }, + { + "name": "get_multimesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1385450523, + "return_value": { + "type": "MultiMesh" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "signals": [ + { + "name": "texture_changed" + } + ], + "properties": [ + { + "type": "MultiMesh", + "name": "multimesh", + "setter": "set_multimesh", + "getter": "get_multimesh" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "MultiMeshInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "GeometryInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_multimesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2246127404, + "arguments": [ + { + "name": "multimesh", + "type": "MultiMesh" + } + ] + }, + { + "name": "get_multimesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1385450523, + "return_value": { + "type": "MultiMesh" + } + } + ], + "properties": [ + { + "type": "MultiMesh", + "name": "multimesh", + "setter": "set_multimesh", + "getter": "get_multimesh" + } + ] + }, + { + "name": "MultiplayerAPI", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "RPCMode", + "is_bitfield": false, + "values": [ + { + "name": "RPC_MODE_DISABLED", + "value": 0 + }, + { + "name": "RPC_MODE_ANY_PEER", + "value": 1 + }, + { + "name": "RPC_MODE_AUTHORITY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "has_multiplayer_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_multiplayer_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3223692825, + "return_value": { + "type": "MultiplayerPeer" + } + }, + { + "name": "set_multiplayer_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3694835298, + "arguments": [ + { + "name": "peer", + "type": "MultiplayerPeer" + } + ] + }, + { + "name": "get_unique_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_remote_sender_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "rpc", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1833408346, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer", + "type": "int", + "meta": "int32" + }, + { + "name": "object", + "type": "Object" + }, + { + "name": "method", + "type": "StringName" + }, + { + "name": "arguments", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "object_configuration_add", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1171879464, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "configuration", + "type": "Variant" + } + ] + }, + { + "name": "object_configuration_remove", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1171879464, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "configuration", + "type": "Variant" + } + ] + }, + { + "name": "get_peers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_default_interface", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "interface_name", + "type": "StringName" + } + ] + }, + { + "name": "get_default_interface", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2737447660, + "return_value": { + "type": "StringName" + } + }, + { + "name": "create_default_interface", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3294156723, + "return_value": { + "type": "MultiplayerAPI" + } + } + ], + "signals": [ + { + "name": "peer_connected", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "peer_disconnected", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "connected_to_server" + }, + { + "name": "connection_failed" + }, + { + "name": "server_disconnected" + } + ], + "properties": [ + { + "type": "MultiplayerPeer", + "name": "multiplayer_peer", + "setter": "set_multiplayer_peer", + "getter": "get_multiplayer_peer" + } + ] + }, + { + "name": "MultiplayerAPIExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerAPI", + "api_type": "core", + "methods": [ + { + "name": "_poll", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "_set_multiplayer_peer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "multiplayer_peer", + "type": "MultiplayerPeer" + } + ] + }, + { + "name": "_get_multiplayer_peer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "MultiplayerPeer" + } + }, + { + "name": "_get_unique_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_peer_ids", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "_rpc", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer", + "type": "int", + "meta": "int32" + }, + { + "name": "object", + "type": "Object" + }, + { + "name": "method", + "type": "StringName" + }, + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "_get_remote_sender_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_object_configuration_add", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "configuration", + "type": "Variant" + } + ] + }, + { + "name": "_object_configuration_remove", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "configuration", + "type": "Variant" + } + ] + } + ] + }, + { + "name": "MultiplayerPeer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "PacketPeer", + "api_type": "core", + "constants": [ + { + "name": "TARGET_PEER_BROADCAST", + "value": 0 + }, + { + "name": "TARGET_PEER_SERVER", + "value": 1 + } + ], + "enums": [ + { + "name": "ConnectionStatus", + "is_bitfield": false, + "values": [ + { + "name": "CONNECTION_DISCONNECTED", + "value": 0 + }, + { + "name": "CONNECTION_CONNECTING", + "value": 1 + }, + { + "name": "CONNECTION_CONNECTED", + "value": 2 + } + ] + }, + { + "name": "TransferMode", + "is_bitfield": false, + "values": [ + { + "name": "TRANSFER_MODE_UNRELIABLE", + "value": 0 + }, + { + "name": "TRANSFER_MODE_UNRELIABLE_ORDERED", + "value": 1 + }, + { + "name": "TRANSFER_MODE_RELIABLE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_transfer_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "channel", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_transfer_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_transfer_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 950411049, + "arguments": [ + { + "name": "mode", + "type": "enum::MultiplayerPeer.TransferMode" + } + ] + }, + { + "name": "get_transfer_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3369852622, + "return_value": { + "type": "enum::MultiplayerPeer.TransferMode" + } + }, + { + "name": "set_target_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_packet_peer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_packet_channel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_packet_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3369852622, + "return_value": { + "type": "enum::MultiplayerPeer.TransferMode" + } + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "disconnect_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "peer", + "type": "int", + "meta": "int32" + }, + { + "name": "force", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_connection_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2147374275, + "return_value": { + "type": "enum::MultiplayerPeer.ConnectionStatus" + } + }, + { + "name": "get_unique_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "generate_unique_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_refuse_new_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_refusing_new_connections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_server_relay_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "peer_connected", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "peer_disconnected", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "refuse_new_connections", + "setter": "set_refuse_new_connections", + "getter": "is_refusing_new_connections" + }, + { + "type": "int", + "name": "transfer_mode", + "setter": "set_transfer_mode", + "getter": "get_transfer_mode" + }, + { + "type": "int", + "name": "transfer_channel", + "setter": "set_transfer_channel", + "getter": "get_transfer_channel" + } + ] + }, + { + "name": "MultiplayerPeerExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerPeer", + "api_type": "core", + "methods": [ + { + "name": "_get_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "r_buffer", + "type": "const uint8_t **" + }, + { + "name": "r_buffer_size", + "type": "int32_t*" + } + ] + }, + { + "name": "_put_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_buffer", + "type": "const uint8_t*" + }, + { + "name": "p_buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_available_packet_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_max_packet_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_packet_script", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "_put_packet_script", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "_set_transfer_channel", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_channel", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_transfer_channel", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_set_transfer_mode", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_mode", + "type": "enum::MultiplayerPeer.TransferMode" + } + ] + }, + { + "name": "_get_transfer_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::MultiplayerPeer.TransferMode" + } + }, + { + "name": "_set_target_peer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_peer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_packet_peer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_is_server", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_poll", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_close", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_disconnect_peer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_peer", + "type": "int", + "meta": "int32" + }, + { + "name": "p_force", + "type": "bool" + } + ] + }, + { + "name": "_get_unique_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_set_refuse_new_connections", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_enable", + "type": "bool" + } + ] + }, + { + "name": "_is_refusing_new_connections", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_connection_status", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::MultiplayerPeer.ConnectionStatus" + } + } + ] + }, + { + "name": "MultiplayerSpawner", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "add_spawnable_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_spawnable_scene_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_spawnable_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_spawnable_scenes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "spawn", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1991184589, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "data", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "get_spawn_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_spawn_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_spawn_limit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_spawn_limit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "limit", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_spawn_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1307783378, + "return_value": { + "type": "Callable" + } + }, + { + "name": "set_spawn_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "spawn_function", + "type": "Callable" + } + ] + } + ], + "signals": [ + { + "name": "despawned", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "spawned", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "spawn_path", + "setter": "set_spawn_path", + "getter": "get_spawn_path" + }, + { + "type": "int", + "name": "spawn_limit", + "setter": "set_spawn_limit", + "getter": "get_spawn_limit" + }, + { + "type": "Callable", + "name": "spawn_function", + "setter": "set_spawn_function", + "getter": "get_spawn_function" + } + ] + }, + { + "name": "MultiplayerSynchronizer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "VisibilityUpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "VISIBILITY_PROCESS_IDLE", + "value": 0 + }, + { + "name": "VISIBILITY_PROCESS_PHYSICS", + "value": 1 + }, + { + "name": "VISIBILITY_PROCESS_NONE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_root_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_root_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_replication_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "milliseconds", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_replication_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_replication_config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3889206742, + "arguments": [ + { + "name": "config", + "type": "SceneReplicationConfig" + } + ] + }, + { + "name": "get_replication_config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200254614, + "return_value": { + "type": "SceneReplicationConfig" + } + }, + { + "name": "set_visibility_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3494860300, + "arguments": [ + { + "name": "mode", + "type": "enum::MultiplayerSynchronizer.VisibilityUpdateMode" + } + ] + }, + { + "name": "get_visibility_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3352241418, + "return_value": { + "type": "enum::MultiplayerSynchronizer.VisibilityUpdateMode" + } + }, + { + "name": "update_visibility", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "for_peer", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_visibility_public", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visibility_public", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_visibility_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "filter", + "type": "Callable" + } + ] + }, + { + "name": "remove_visibility_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "filter", + "type": "Callable" + } + ] + }, + { + "name": "set_visibility_for", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "peer", + "type": "int", + "meta": "int32" + }, + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "get_visibility_for", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "peer", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "synchronized" + }, + { + "name": "visibility_changed", + "arguments": [ + { + "name": "for_peer", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "root_path", + "setter": "set_root_path", + "getter": "get_root_path" + }, + { + "type": "float", + "name": "replication_interval", + "setter": "set_replication_interval", + "getter": "get_replication_interval" + }, + { + "type": "SceneReplicationConfig", + "name": "replication_config", + "setter": "set_replication_config", + "getter": "get_replication_config" + }, + { + "type": "int", + "name": "visibility_update_mode", + "setter": "set_visibility_update_mode", + "getter": "get_visibility_update_mode" + }, + { + "type": "bool", + "name": "public_visibility", + "setter": "set_visibility_public", + "getter": "is_visibility_public" + } + ] + }, + { + "name": "Mutex", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "lock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "try_lock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "unlock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "NavigationAgent2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_avoidance_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_avoidance_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_path_desired_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "desired_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_desired_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_target_desired_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "desired_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_target_desired_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_neighbor_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "neighbor_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_neighbor_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_neighbors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_neighbors", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_neighbors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_time_horizon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time_horizon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_time_horizon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_path_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_path_metadata_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 24274129, + "arguments": [ + { + "name": "flags", + "type": "bitfield::NavigationPathQueryParameters2D.PathMetadataFlags" + } + ] + }, + { + "name": "get_path_metadata_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 488152976, + "return_value": { + "type": "bitfield::NavigationPathQueryParameters2D.PathMetadataFlags" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_next_path_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "distance_to_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_current_navigation_result", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166799483, + "return_value": { + "type": "NavigationPathQueryResult2D" + } + }, + { + "name": "get_current_navigation_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "get_current_navigation_path_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_target_reached", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_target_reachable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_navigation_finished", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_final_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_debug_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_use_custom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_use_custom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_path_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_debug_path_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_debug_path_custom_point_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "point_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_debug_path_custom_point_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_debug_path_custom_line_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "line_width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_debug_path_custom_line_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "path_changed" + }, + { + "name": "target_reached" + }, + { + "name": "waypoint_reached", + "arguments": [ + { + "name": "details", + "type": "Dictionary" + } + ] + }, + { + "name": "link_reached", + "arguments": [ + { + "name": "details", + "type": "Dictionary" + } + ] + }, + { + "name": "navigation_finished" + }, + { + "name": "velocity_computed", + "arguments": [ + { + "name": "safe_velocity", + "type": "Vector2" + } + ] + } + ], + "properties": [ + { + "type": "Vector2", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "float", + "name": "path_desired_distance", + "setter": "set_path_desired_distance", + "getter": "get_path_desired_distance" + }, + { + "type": "float", + "name": "target_desired_distance", + "setter": "set_target_desired_distance", + "getter": "get_target_desired_distance" + }, + { + "type": "float", + "name": "path_max_distance", + "setter": "set_path_max_distance", + "getter": "get_path_max_distance" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "int", + "name": "path_metadata_flags", + "setter": "set_path_metadata_flags", + "getter": "get_path_metadata_flags" + }, + { + "type": "bool", + "name": "avoidance_enabled", + "setter": "set_avoidance_enabled", + "getter": "get_avoidance_enabled" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "neighbor_distance", + "setter": "set_neighbor_distance", + "getter": "get_neighbor_distance" + }, + { + "type": "int", + "name": "max_neighbors", + "setter": "set_max_neighbors", + "getter": "get_max_neighbors" + }, + { + "type": "float", + "name": "time_horizon", + "setter": "set_time_horizon", + "getter": "get_time_horizon" + }, + { + "type": "float", + "name": "max_speed", + "setter": "set_max_speed", + "getter": "get_max_speed" + }, + { + "type": "bool", + "name": "debug_enabled", + "setter": "set_debug_enabled", + "getter": "get_debug_enabled" + }, + { + "type": "bool", + "name": "debug_use_custom", + "setter": "set_debug_use_custom", + "getter": "get_debug_use_custom" + }, + { + "type": "Color", + "name": "debug_path_custom_color", + "setter": "set_debug_path_custom_color", + "getter": "get_debug_path_custom_color" + }, + { + "type": "float", + "name": "debug_path_custom_point_size", + "setter": "set_debug_path_custom_point_size", + "getter": "get_debug_path_custom_point_size" + }, + { + "type": "float", + "name": "debug_path_custom_line_width", + "setter": "set_debug_path_custom_line_width", + "getter": "get_debug_path_custom_line_width" + } + ] + }, + { + "name": "NavigationAgent3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_avoidance_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_avoidance_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_path_desired_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "desired_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_desired_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_target_desired_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "desired_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_target_desired_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_agent_height_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "agent_height_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_agent_height_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ignore_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "get_ignore_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_neighbor_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "neighbor_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_neighbor_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_neighbors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_neighbors", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_neighbors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_time_horizon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time_horizon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_time_horizon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_path_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_path_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_path_metadata_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2713846708, + "arguments": [ + { + "name": "flags", + "type": "bitfield::NavigationPathQueryParameters3D.PathMetadataFlags" + } + ] + }, + { + "name": "get_path_metadata_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1582332802, + "return_value": { + "type": "bitfield::NavigationPathQueryParameters3D.PathMetadataFlags" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_next_path_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3783033775, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "distance_to_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_current_navigation_result", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 728825684, + "return_value": { + "type": "NavigationPathQueryResult3D" + } + }, + { + "name": "get_current_navigation_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "get_current_navigation_path_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_target_reached", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_target_reachable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_navigation_finished", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_final_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3783033775, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_debug_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_use_custom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_use_custom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_path_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_debug_path_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_debug_path_custom_point_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "point_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_debug_path_custom_point_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "path_changed" + }, + { + "name": "target_reached" + }, + { + "name": "waypoint_reached", + "arguments": [ + { + "name": "details", + "type": "Dictionary" + } + ] + }, + { + "name": "link_reached", + "arguments": [ + { + "name": "details", + "type": "Dictionary" + } + ] + }, + { + "name": "navigation_finished" + }, + { + "name": "velocity_computed", + "arguments": [ + { + "name": "safe_velocity", + "type": "Vector3" + } + ] + } + ], + "properties": [ + { + "type": "Vector3", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "float", + "name": "path_desired_distance", + "setter": "set_path_desired_distance", + "getter": "get_path_desired_distance" + }, + { + "type": "float", + "name": "target_desired_distance", + "setter": "set_target_desired_distance", + "getter": "get_target_desired_distance" + }, + { + "type": "float", + "name": "agent_height_offset", + "setter": "set_agent_height_offset", + "getter": "get_agent_height_offset" + }, + { + "type": "float", + "name": "path_max_distance", + "setter": "set_path_max_distance", + "getter": "get_path_max_distance" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "int", + "name": "path_metadata_flags", + "setter": "set_path_metadata_flags", + "getter": "get_path_metadata_flags" + }, + { + "type": "bool", + "name": "avoidance_enabled", + "setter": "set_avoidance_enabled", + "getter": "get_avoidance_enabled" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "neighbor_distance", + "setter": "set_neighbor_distance", + "getter": "get_neighbor_distance" + }, + { + "type": "int", + "name": "max_neighbors", + "setter": "set_max_neighbors", + "getter": "get_max_neighbors" + }, + { + "type": "float", + "name": "time_horizon", + "setter": "set_time_horizon", + "getter": "get_time_horizon" + }, + { + "type": "float", + "name": "max_speed", + "setter": "set_max_speed", + "getter": "get_max_speed" + }, + { + "type": "bool", + "name": "ignore_y", + "setter": "set_ignore_y", + "getter": "get_ignore_y" + }, + { + "type": "bool", + "name": "debug_enabled", + "setter": "set_debug_enabled", + "getter": "get_debug_enabled" + }, + { + "type": "bool", + "name": "debug_use_custom", + "setter": "set_debug_use_custom", + "getter": "get_debug_use_custom" + }, + { + "type": "Color", + "name": "debug_path_custom_color", + "setter": "set_debug_path_custom_color", + "getter": "get_debug_path_custom_color" + }, + { + "type": "float", + "name": "debug_path_custom_point_size", + "setter": "set_debug_path_custom_point_size", + "getter": "get_debug_path_custom_point_size" + } + ] + }, + { + "name": "NavigationLink2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bidirectional", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "bidirectional", + "type": "bool" + } + ] + }, + { + "name": "is_bidirectional", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_global_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_global_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_global_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_global_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "bool", + "name": "bidirectional", + "setter": "set_bidirectional", + "getter": "is_bidirectional" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "Vector2", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position" + }, + { + "type": "Vector2", + "name": "end_position", + "setter": "set_end_position", + "getter": "get_end_position" + }, + { + "type": "float", + "name": "enter_cost", + "setter": "set_enter_cost", + "getter": "get_enter_cost" + }, + { + "type": "float", + "name": "travel_cost", + "setter": "set_travel_cost", + "getter": "get_travel_cost" + } + ] + }, + { + "name": "NavigationLink3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bidirectional", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "bidirectional", + "type": "bool" + } + ] + }, + { + "name": "is_bidirectional", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_global_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_global_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_global_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_global_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "bool", + "name": "bidirectional", + "setter": "set_bidirectional", + "getter": "is_bidirectional" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "Vector3", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position" + }, + { + "type": "Vector3", + "name": "end_position", + "setter": "set_end_position", + "getter": "get_end_position" + }, + { + "type": "float", + "name": "enter_cost", + "setter": "set_enter_cost", + "getter": "get_enter_cost" + }, + { + "type": "float", + "name": "travel_cost", + "setter": "set_travel_cost", + "getter": "get_travel_cost" + } + ] + }, + { + "name": "NavigationMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "SamplePartitionType", + "is_bitfield": false, + "values": [ + { + "name": "SAMPLE_PARTITION_WATERSHED", + "value": 0 + }, + { + "name": "SAMPLE_PARTITION_MONOTONE", + "value": 1 + }, + { + "name": "SAMPLE_PARTITION_LAYERS", + "value": 2 + }, + { + "name": "SAMPLE_PARTITION_MAX", + "value": 3 + } + ] + }, + { + "name": "ParsedGeometryType", + "is_bitfield": false, + "values": [ + { + "name": "PARSED_GEOMETRY_MESH_INSTANCES", + "value": 0 + }, + { + "name": "PARSED_GEOMETRY_STATIC_COLLIDERS", + "value": 1 + }, + { + "name": "PARSED_GEOMETRY_BOTH", + "value": 2 + }, + { + "name": "PARSED_GEOMETRY_MAX", + "value": 3 + } + ] + }, + { + "name": "SourceGeometryMode", + "is_bitfield": false, + "values": [ + { + "name": "SOURCE_GEOMETRY_ROOT_NODE_CHILDREN", + "value": 0 + }, + { + "name": "SOURCE_GEOMETRY_GROUPS_WITH_CHILDREN", + "value": 1 + }, + { + "name": "SOURCE_GEOMETRY_GROUPS_EXPLICIT", + "value": 2 + }, + { + "name": "SOURCE_GEOMETRY_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_sample_partition_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2472437533, + "arguments": [ + { + "name": "sample_partition_type", + "type": "enum::NavigationMesh.SamplePartitionType" + } + ] + }, + { + "name": "get_sample_partition_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 833513918, + "return_value": { + "type": "enum::NavigationMesh.SamplePartitionType" + } + }, + { + "name": "set_parsed_geometry_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3064713163, + "arguments": [ + { + "name": "geometry_type", + "type": "enum::NavigationMesh.ParsedGeometryType" + } + ] + }, + { + "name": "get_parsed_geometry_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3928011953, + "return_value": { + "type": "enum::NavigationMesh.ParsedGeometryType" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_source_geometry_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2700825194, + "arguments": [ + { + "name": "mask", + "type": "enum::NavigationMesh.SourceGeometryMode" + } + ] + }, + { + "name": "get_source_geometry_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2770484141, + "return_value": { + "type": "enum::NavigationMesh.SourceGeometryMode" + } + }, + { + "name": "set_source_group_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "mask", + "type": "StringName" + } + ] + }, + { + "name": "get_source_group_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "cell_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_cell_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "cell_height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cell_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_agent_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "agent_height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_agent_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_agent_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "agent_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_agent_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_agent_max_climb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "agent_max_climb", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_agent_max_climb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_agent_max_slope", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "agent_max_slope", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_agent_max_slope", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_region_min_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "region_min_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_region_min_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_region_merge_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "region_merge_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_region_merge_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_edge_max_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge_max_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_edge_max_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_edge_max_error", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge_max_error", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_edge_max_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vertices_per_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "vertices_per_polygon", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_vertices_per_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_detail_sample_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "detail_sample_dist", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_detail_sample_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_detail_sample_max_error", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "detail_sample_max_error", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_detail_sample_max_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_filter_low_hanging_obstacles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "filter_low_hanging_obstacles", + "type": "bool" + } + ] + }, + { + "name": "get_filter_low_hanging_obstacles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_filter_ledge_spans", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "filter_ledge_spans", + "type": "bool" + } + ] + }, + { + "name": "get_filter_ledge_spans", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_filter_walkable_low_height_spans", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "filter_walkable_low_height_spans", + "type": "bool" + } + ] + }, + { + "name": "get_filter_walkable_low_height_spans", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_filter_baking_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "baking_aabb", + "type": "AABB" + } + ] + }, + { + "name": "get_filter_baking_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_filter_baking_aabb_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "baking_aabb_offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_filter_baking_aabb_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_vertices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_vertices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "add_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "polygon", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_polygon_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3668444399, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_from_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + } + ], + "properties": [ + { + "type": "PackedVector3Array", + "name": "vertices", + "setter": "set_vertices", + "getter": "get_vertices" + }, + { + "type": "Array", + "name": "polygons", + "setter": "_set_polygons", + "getter": "_get_polygons" + }, + { + "type": "int", + "name": "sample_partition_type", + "setter": "set_sample_partition_type", + "getter": "get_sample_partition_type" + }, + { + "type": "int", + "name": "geometry_parsed_geometry_type", + "setter": "set_parsed_geometry_type", + "getter": "get_parsed_geometry_type" + }, + { + "type": "int", + "name": "geometry_collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "int", + "name": "geometry_source_geometry_mode", + "setter": "set_source_geometry_mode", + "getter": "get_source_geometry_mode" + }, + { + "type": "String", + "name": "geometry_source_group_name", + "setter": "set_source_group_name", + "getter": "get_source_group_name" + }, + { + "type": "float", + "name": "cell_size", + "setter": "set_cell_size", + "getter": "get_cell_size" + }, + { + "type": "float", + "name": "cell_height", + "setter": "set_cell_height", + "getter": "get_cell_height" + }, + { + "type": "float", + "name": "agent_height", + "setter": "set_agent_height", + "getter": "get_agent_height" + }, + { + "type": "float", + "name": "agent_radius", + "setter": "set_agent_radius", + "getter": "get_agent_radius" + }, + { + "type": "float", + "name": "agent_max_climb", + "setter": "set_agent_max_climb", + "getter": "get_agent_max_climb" + }, + { + "type": "float", + "name": "agent_max_slope", + "setter": "set_agent_max_slope", + "getter": "get_agent_max_slope" + }, + { + "type": "float", + "name": "region_min_size", + "setter": "set_region_min_size", + "getter": "get_region_min_size" + }, + { + "type": "float", + "name": "region_merge_size", + "setter": "set_region_merge_size", + "getter": "get_region_merge_size" + }, + { + "type": "float", + "name": "edge_max_length", + "setter": "set_edge_max_length", + "getter": "get_edge_max_length" + }, + { + "type": "float", + "name": "edge_max_error", + "setter": "set_edge_max_error", + "getter": "get_edge_max_error" + }, + { + "type": "float", + "name": "vertices_per_polygon", + "setter": "set_vertices_per_polygon", + "getter": "get_vertices_per_polygon" + }, + { + "type": "float", + "name": "detail_sample_distance", + "setter": "set_detail_sample_distance", + "getter": "get_detail_sample_distance" + }, + { + "type": "float", + "name": "detail_sample_max_error", + "setter": "set_detail_sample_max_error", + "getter": "get_detail_sample_max_error" + }, + { + "type": "bool", + "name": "filter_low_hanging_obstacles", + "setter": "set_filter_low_hanging_obstacles", + "getter": "get_filter_low_hanging_obstacles" + }, + { + "type": "bool", + "name": "filter_ledge_spans", + "setter": "set_filter_ledge_spans", + "getter": "get_filter_ledge_spans" + }, + { + "type": "bool", + "name": "filter_walkable_low_height_spans", + "setter": "set_filter_walkable_low_height_spans", + "getter": "get_filter_walkable_low_height_spans" + }, + { + "type": "AABB", + "name": "filter_baking_aabb", + "setter": "set_filter_baking_aabb", + "getter": "get_filter_baking_aabb" + }, + { + "type": "Vector3", + "name": "filter_baking_aabb_offset", + "setter": "set_filter_baking_aabb_offset", + "getter": "get_filter_baking_aabb_offset" + } + ] + }, + { + "name": "NavigationMeshGenerator", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "bake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1401173477, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + }, + { + "name": "root_node", + "type": "Node" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2923361153, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + } + ] + } + ] + }, + { + "name": "NavigationObstacle2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_estimate_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "estimate_radius", + "type": "bool" + } + ] + }, + { + "name": "is_radius_estimated", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "estimate_radius", + "setter": "set_estimate_radius", + "getter": "is_radius_estimated" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "NavigationObstacle3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "navigation_map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_estimate_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "estimate_radius", + "type": "bool" + } + ] + }, + { + "name": "is_radius_estimated", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "estimate_radius", + "setter": "set_estimate_radius", + "getter": "is_radius_estimated" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "NavigationPathQueryParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathfindingAlgorithm", + "is_bitfield": false, + "values": [ + { + "name": "PATHFINDING_ALGORITHM_ASTAR", + "value": 0 + } + ] + }, + { + "name": "PathPostProcessing", + "is_bitfield": false, + "values": [ + { + "name": "PATH_POSTPROCESSING_CORRIDORFUNNEL", + "value": 0 + }, + { + "name": "PATH_POSTPROCESSING_EDGECENTERED", + "value": 1 + } + ] + }, + { + "name": "PathMetadataFlags", + "is_bitfield": true, + "values": [ + { + "name": "PATH_METADATA_INCLUDE_NONE", + "value": 0 + }, + { + "name": "PATH_METADATA_INCLUDE_TYPES", + "value": 1 + }, + { + "name": "PATH_METADATA_INCLUDE_RIDS", + "value": 2 + }, + { + "name": "PATH_METADATA_INCLUDE_OWNERS", + "value": 4 + }, + { + "name": "PATH_METADATA_INCLUDE_ALL", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_pathfinding_algorithm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783519915, + "arguments": [ + { + "name": "pathfinding_algorithm", + "type": "enum::NavigationPathQueryParameters2D.PathfindingAlgorithm" + } + ] + }, + { + "name": "get_pathfinding_algorithm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3000421146, + "return_value": { + "type": "enum::NavigationPathQueryParameters2D.PathfindingAlgorithm" + } + }, + { + "name": "set_path_postprocessing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2864409082, + "arguments": [ + { + "name": "path_postprocessing", + "type": "enum::NavigationPathQueryParameters2D.PathPostProcessing" + } + ] + }, + { + "name": "get_path_postprocessing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3798118993, + "return_value": { + "type": "enum::NavigationPathQueryParameters2D.PathPostProcessing" + } + }, + { + "name": "set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "start_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "target_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_metadata_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 24274129, + "arguments": [ + { + "name": "flags", + "type": "bitfield::NavigationPathQueryParameters2D.PathMetadataFlags" + } + ] + }, + { + "name": "get_metadata_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 488152976, + "return_value": { + "type": "bitfield::NavigationPathQueryParameters2D.PathMetadataFlags" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "map", + "setter": "set_map", + "getter": "get_map" + }, + { + "type": "Vector2", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position" + }, + { + "type": "Vector2", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "int", + "name": "pathfinding_algorithm", + "setter": "set_pathfinding_algorithm", + "getter": "get_pathfinding_algorithm" + }, + { + "type": "int", + "name": "path_postprocessing", + "setter": "set_path_postprocessing", + "getter": "get_path_postprocessing" + }, + { + "type": "int", + "name": "metadata_flags", + "setter": "set_metadata_flags", + "getter": "get_metadata_flags" + } + ] + }, + { + "name": "NavigationPathQueryParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathfindingAlgorithm", + "is_bitfield": false, + "values": [ + { + "name": "PATHFINDING_ALGORITHM_ASTAR", + "value": 0 + } + ] + }, + { + "name": "PathPostProcessing", + "is_bitfield": false, + "values": [ + { + "name": "PATH_POSTPROCESSING_CORRIDORFUNNEL", + "value": 0 + }, + { + "name": "PATH_POSTPROCESSING_EDGECENTERED", + "value": 1 + } + ] + }, + { + "name": "PathMetadataFlags", + "is_bitfield": true, + "values": [ + { + "name": "PATH_METADATA_INCLUDE_NONE", + "value": 0 + }, + { + "name": "PATH_METADATA_INCLUDE_TYPES", + "value": 1 + }, + { + "name": "PATH_METADATA_INCLUDE_RIDS", + "value": 2 + }, + { + "name": "PATH_METADATA_INCLUDE_OWNERS", + "value": 4 + }, + { + "name": "PATH_METADATA_INCLUDE_ALL", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_pathfinding_algorithm", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 394560454, + "arguments": [ + { + "name": "pathfinding_algorithm", + "type": "enum::NavigationPathQueryParameters3D.PathfindingAlgorithm" + } + ] + }, + { + "name": "get_pathfinding_algorithm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3398491350, + "return_value": { + "type": "enum::NavigationPathQueryParameters3D.PathfindingAlgorithm" + } + }, + { + "name": "set_path_postprocessing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2267362344, + "arguments": [ + { + "name": "path_postprocessing", + "type": "enum::NavigationPathQueryParameters3D.PathPostProcessing" + } + ] + }, + { + "name": "get_path_postprocessing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3883858360, + "return_value": { + "type": "enum::NavigationPathQueryParameters3D.PathPostProcessing" + } + }, + { + "name": "set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "start_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "target_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_metadata_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2713846708, + "arguments": [ + { + "name": "flags", + "type": "bitfield::NavigationPathQueryParameters3D.PathMetadataFlags" + } + ] + }, + { + "name": "get_metadata_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1582332802, + "return_value": { + "type": "bitfield::NavigationPathQueryParameters3D.PathMetadataFlags" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "map", + "setter": "set_map", + "getter": "get_map" + }, + { + "type": "Vector3", + "name": "start_position", + "setter": "set_start_position", + "getter": "get_start_position" + }, + { + "type": "Vector3", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "int", + "name": "pathfinding_algorithm", + "setter": "set_pathfinding_algorithm", + "getter": "get_pathfinding_algorithm" + }, + { + "type": "int", + "name": "path_postprocessing", + "setter": "set_path_postprocessing", + "getter": "get_path_postprocessing" + }, + { + "type": "int", + "name": "metadata_flags", + "setter": "set_metadata_flags", + "getter": "get_metadata_flags" + } + ] + }, + { + "name": "NavigationPathQueryResult2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathSegmentType", + "is_bitfield": false, + "values": [ + { + "name": "PATH_SEGMENT_TYPE_REGION", + "value": 0 + }, + { + "name": "PATH_SEGMENT_TYPE_LINK", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "path", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_path_types", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "path_types", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_path_types", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_path_rids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "path_rids", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_path_rids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_path_owner_ids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3709968205, + "arguments": [ + { + "name": "path_owner_ids", + "type": "PackedInt64Array" + } + ] + }, + { + "name": "get_path_owner_ids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 235988956, + "return_value": { + "type": "PackedInt64Array" + } + }, + { + "name": "reset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "path", + "setter": "set_path", + "getter": "get_path" + }, + { + "type": "PackedInt32Array", + "name": "path_types", + "setter": "set_path_types", + "getter": "get_path_types" + }, + { + "type": "typedarray::RID", + "name": "path_rids", + "setter": "set_path_rids", + "getter": "get_path_rids" + }, + { + "type": "PackedInt64Array", + "name": "path_owner_ids", + "setter": "set_path_owner_ids", + "getter": "get_path_owner_ids" + } + ] + }, + { + "name": "NavigationPathQueryResult3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "PathSegmentType", + "is_bitfield": false, + "values": [ + { + "name": "PATH_SEGMENT_TYPE_REGION", + "value": 0 + }, + { + "name": "PATH_SEGMENT_TYPE_LINK", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 334873810, + "arguments": [ + { + "name": "path", + "type": "PackedVector3Array" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "set_path_types", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "path_types", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_path_types", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_path_rids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "path_rids", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_path_rids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_path_owner_ids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3709968205, + "arguments": [ + { + "name": "path_owner_ids", + "type": "PackedInt64Array" + } + ] + }, + { + "name": "get_path_owner_ids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 235988956, + "return_value": { + "type": "PackedInt64Array" + } + }, + { + "name": "reset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "PackedVector3Array", + "name": "path", + "setter": "set_path", + "getter": "get_path" + }, + { + "type": "PackedInt32Array", + "name": "path_types", + "setter": "set_path_types", + "getter": "get_path_types" + }, + { + "type": "typedarray::RID", + "name": "path_rids", + "setter": "set_path_rids", + "getter": "get_path_rids" + }, + { + "type": "PackedInt64Array", + "name": "path_owner_ids", + "setter": "set_path_owner_ids", + "getter": "get_path_owner_ids" + } + ] + }, + { + "name": "NavigationPolygon", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_vertices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_vertices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "add_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "polygon", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_polygon_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3668444399, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 330232164, + "return_value": { + "type": "NavigationMesh" + } + }, + { + "name": "add_outline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "outline", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "add_outline_at_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1569738947, + "arguments": [ + { + "name": "outline", + "type": "PackedVector2Array" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outline_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1201971903, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "outline", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3946907486, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_outline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_outlines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "make_polygons_from_outlines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "vertices", + "setter": "set_vertices", + "getter": "get_vertices" + }, + { + "type": "Array", + "name": "polygons", + "setter": "_set_polygons", + "getter": "_get_polygons" + }, + { + "type": "Array", + "name": "outlines", + "setter": "_set_outlines", + "getter": "_get_outlines" + } + ] + }, + { + "name": "NavigationRegion2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_navigation_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1515040758, + "arguments": [ + { + "name": "navigation_polygon", + "type": "NavigationPolygon" + } + ] + }, + { + "name": "get_navigation_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1046532237, + "return_value": { + "type": "NavigationPolygon" + } + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_region_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "NavigationPolygon", + "name": "navigation_polygon", + "setter": "set_navigation_polygon", + "getter": "get_navigation_polygon" + }, + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "float", + "name": "enter_cost", + "setter": "set_enter_cost", + "getter": "get_enter_cost" + }, + { + "type": "float", + "name": "travel_cost", + "setter": "set_travel_cost", + "getter": "get_travel_cost" + } + ] + }, + { + "name": "NavigationRegion3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2923361153, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + } + ] + }, + { + "name": "get_navigation_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1468720886, + "return_value": { + "type": "NavigationMesh" + } + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_navigation_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_region_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "bake_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "on_thread", + "type": "bool", + "default_value": "true" + } + ] + } + ], + "signals": [ + { + "name": "navigation_mesh_changed" + }, + { + "name": "bake_finished" + } + ], + "properties": [ + { + "type": "NavigationMesh", + "name": "navigation_mesh", + "setter": "set_navigation_mesh", + "getter": "get_navigation_mesh" + }, + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "int", + "name": "navigation_layers", + "setter": "set_navigation_layers", + "getter": "get_navigation_layers" + }, + { + "type": "float", + "name": "enter_cost", + "setter": "set_enter_cost", + "getter": "get_enter_cost" + }, + { + "type": "float", + "name": "travel_cost", + "setter": "set_travel_cost", + "getter": "get_travel_cost" + } + ] + }, + { + "name": "NavigationServer2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_maps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "map_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "map_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "map_is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "cell_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_edge_connection_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_edge_connection_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_link_connection_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_link_connection_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 56240621, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "origin", + "type": "Vector2" + }, + { + "name": "destination", + "type": "Vector2" + }, + { + "name": "optimize", + "type": "bool" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "map_get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1358334418, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "to_point", + "type": "Vector2" + } + ] + }, + { + "name": "map_get_closest_point_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1353467510, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "to_point", + "type": "Vector2" + } + ] + }, + { + "name": "map_get_links", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_regions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_agents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_force_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "query_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3394638789, + "arguments": [ + { + "name": "parameters", + "type": "NavigationPathQueryParameters2D" + }, + { + "name": "result", + "type": "NavigationPathQueryResult2D" + } + ] + }, + { + "name": "region_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "region_set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "region_get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "region_get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_owner_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "owner_id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "region_get_owner_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_owns_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 219849798, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "region_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "region_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "region_get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "region_set_navigation_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3633623451, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_polygon", + "type": "NavigationPolygon" + } + ] + }, + { + "name": "region_get_connections_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_get_connection_pathway_start", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546185844, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "connection", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "region_get_connection_pathway_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546185844, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "connection", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "link_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "link_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "link_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_bidirectional", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "bidirectional", + "type": "bool" + } + ] + }, + { + "name": "link_is_bidirectional", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "link_get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "link_get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "link_get_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "link_get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "link_get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_owner_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "owner_id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "link_get_owner_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "agent_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "agent_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "agent_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, + { + "name": "agent_set_neighbor_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_max_neighbors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "agent_set_time_horizon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "time", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_max_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "agent_set_target_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "target_velocity", + "type": "Vector2" + } + ] + }, + { + "name": "agent_set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "agent_is_map_changed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, + { + "name": "agent_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_debug_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "map_changed", + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "navigation_debug_changed" + } + ] + }, + { + "name": "NavigationServer3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "ProcessInfo", + "is_bitfield": false, + "values": [ + { + "name": "INFO_ACTIVE_MAPS", + "value": 0 + }, + { + "name": "INFO_REGION_COUNT", + "value": 1 + }, + { + "name": "INFO_AGENT_COUNT", + "value": 2 + }, + { + "name": "INFO_LINK_COUNT", + "value": 3 + }, + { + "name": "INFO_POLYGON_COUNT", + "value": 4 + }, + { + "name": "INFO_EDGE_COUNT", + "value": 5 + }, + { + "name": "INFO_EDGE_MERGE_COUNT", + "value": 6 + }, + { + "name": "INFO_EDGE_CONNECTION_COUNT", + "value": 7 + }, + { + "name": "INFO_EDGE_FREE_COUNT", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "get_maps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "map_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "map_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "map_is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_up", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "up", + "type": "Vector3" + } + ] + }, + { + "name": "map_get_up", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "cell_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_edge_connection_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_edge_connection_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_set_link_connection_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "map_get_link_connection_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2121045993, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "origin", + "type": "Vector3" + }, + { + "name": "destination", + "type": "Vector3" + }, + { + "name": "optimize", + "type": "bool" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "map_get_closest_point_to_segment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3830095642, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "start", + "type": "Vector3" + }, + { + "name": "end", + "type": "Vector3" + }, + { + "name": "use_collision", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "map_get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2056183332, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "map_get_closest_point_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2056183332, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "map_get_closest_point_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 553364610, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + }, + { + "name": "to_point", + "type": "Vector3" + } + ] + }, + { + "name": "map_get_links", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_regions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_get_agents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "map_force_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "query_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3415008901, + "arguments": [ + { + "name": "parameters", + "type": "NavigationPathQueryParameters3D" + }, + { + "name": "result", + "type": "NavigationPathQueryResult3D" + } + ] + }, + { + "name": "region_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "region_set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "region_get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "region_get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_owner_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "owner_id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "region_get_owner_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_owns_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2360011153, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "region_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "region_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "region_get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "region_set_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2764952978, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "navigation_mesh", + "type": "NavigationMesh" + } + ] + }, + { + "name": "region_bake_navigation_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1401173477, + "arguments": [ + { + "name": "navigation_mesh", + "type": "NavigationMesh" + }, + { + "name": "root_node", + "type": "Node" + } + ] + }, + { + "name": "region_get_connections_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + } + ] + }, + { + "name": "region_get_connection_pathway_start", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3440143363, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "connection", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "region_get_connection_pathway_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3440143363, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "region", + "type": "RID" + }, + { + "name": "connection", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "link_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "link_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "link_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_bidirectional", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "bidirectional", + "type": "bool" + } + ] + }, + { + "name": "link_is_bidirectional", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_navigation_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "navigation_layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "link_get_navigation_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_start_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "link_get_start_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_end_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "link_get_end_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_enter_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "enter_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "link_get_enter_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_travel_cost", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "travel_cost", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "link_get_travel_cost", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "link_set_owner_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "link", + "type": "RID" + }, + { + "name": "owner_id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "link_get_owner_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "link", + "type": "RID" + } + ] + }, + { + "name": "agent_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "agent_set_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "agent_get_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, + { + "name": "agent_set_neighbor_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_max_neighbors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "agent_set_time_horizon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "time", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_max_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "max_speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "agent_set_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "agent_set_target_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "target_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "agent_set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "agent_is_map_changed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "agent", + "type": "RID" + } + ] + }, + { + "name": "agent_set_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "agent", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "set_debug_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_debug_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_process_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1938440894, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::NavigationServer3D.ProcessInfo" + } + ] + } + ], + "signals": [ + { + "name": "map_changed", + "arguments": [ + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "navigation_debug_changed" + } + ] + }, + { + "name": "NinePatchRect", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "AxisStretchMode", + "is_bitfield": false, + "values": [ + { + "name": "AXIS_STRETCH_MODE_STRETCH", + "value": 0 + }, + { + "name": "AXIS_STRETCH_MODE_TILE", + "value": 1 + }, + { + "name": "AXIS_STRETCH_MODE_TILE_FIT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_patch_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 437707142, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_patch_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1983885014, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_region_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_region_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_draw_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draw_center", + "type": "bool" + } + ] + }, + { + "name": "is_draw_center_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_h_axis_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3219608417, + "arguments": [ + { + "name": "mode", + "type": "enum::NinePatchRect.AxisStretchMode" + } + ] + }, + { + "name": "get_h_axis_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3317113799, + "return_value": { + "type": "enum::NinePatchRect.AxisStretchMode" + } + }, + { + "name": "set_v_axis_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3219608417, + "arguments": [ + { + "name": "mode", + "type": "enum::NinePatchRect.AxisStretchMode" + } + ] + }, + { + "name": "get_v_axis_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3317113799, + "return_value": { + "type": "enum::NinePatchRect.AxisStretchMode" + } + } + ], + "signals": [ + { + "name": "texture_changed" + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "bool", + "name": "draw_center", + "setter": "set_draw_center", + "getter": "is_draw_center_enabled" + }, + { + "type": "Rect2", + "name": "region_rect", + "setter": "set_region_rect", + "getter": "get_region_rect" + }, + { + "type": "int", + "name": "patch_margin_left", + "setter": "set_patch_margin", + "getter": "get_patch_margin", + "index": 0 + }, + { + "type": "int", + "name": "patch_margin_top", + "setter": "set_patch_margin", + "getter": "get_patch_margin", + "index": 1 + }, + { + "type": "int", + "name": "patch_margin_right", + "setter": "set_patch_margin", + "getter": "get_patch_margin", + "index": 2 + }, + { + "type": "int", + "name": "patch_margin_bottom", + "setter": "set_patch_margin", + "getter": "get_patch_margin", + "index": 3 + }, + { + "type": "int", + "name": "axis_stretch_horizontal", + "setter": "set_h_axis_stretch_mode", + "getter": "get_h_axis_stretch_mode" + }, + { + "type": "int", + "name": "axis_stretch_vertical", + "setter": "set_v_axis_stretch_mode", + "getter": "get_v_axis_stretch_mode" + } + ] + }, + { + "name": "Node", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_ENTER_TREE", + "value": 10 + }, + { + "name": "NOTIFICATION_EXIT_TREE", + "value": 11 + }, + { + "name": "NOTIFICATION_MOVED_IN_PARENT", + "value": 12 + }, + { + "name": "NOTIFICATION_READY", + "value": 13 + }, + { + "name": "NOTIFICATION_PAUSED", + "value": 14 + }, + { + "name": "NOTIFICATION_UNPAUSED", + "value": 15 + }, + { + "name": "NOTIFICATION_PHYSICS_PROCESS", + "value": 16 + }, + { + "name": "NOTIFICATION_PROCESS", + "value": 17 + }, + { + "name": "NOTIFICATION_PARENTED", + "value": 18 + }, + { + "name": "NOTIFICATION_UNPARENTED", + "value": 19 + }, + { + "name": "NOTIFICATION_SCENE_INSTANTIATED", + "value": 20 + }, + { + "name": "NOTIFICATION_DRAG_BEGIN", + "value": 21 + }, + { + "name": "NOTIFICATION_DRAG_END", + "value": 22 + }, + { + "name": "NOTIFICATION_PATH_RENAMED", + "value": 23 + }, + { + "name": "NOTIFICATION_INTERNAL_PROCESS", + "value": 25 + }, + { + "name": "NOTIFICATION_INTERNAL_PHYSICS_PROCESS", + "value": 26 + }, + { + "name": "NOTIFICATION_POST_ENTER_TREE", + "value": 27 + }, + { + "name": "NOTIFICATION_DISABLED", + "value": 28 + }, + { + "name": "NOTIFICATION_ENABLED", + "value": 29 + }, + { + "name": "NOTIFICATION_NODE_RECACHE_REQUESTED", + "value": 30 + }, + { + "name": "NOTIFICATION_EDITOR_PRE_SAVE", + "value": 9001 + }, + { + "name": "NOTIFICATION_EDITOR_POST_SAVE", + "value": 9002 + }, + { + "name": "NOTIFICATION_WM_MOUSE_ENTER", + "value": 1002 + }, + { + "name": "NOTIFICATION_WM_MOUSE_EXIT", + "value": 1003 + }, + { + "name": "NOTIFICATION_WM_WINDOW_FOCUS_IN", + "value": 1004 + }, + { + "name": "NOTIFICATION_WM_WINDOW_FOCUS_OUT", + "value": 1005 + }, + { + "name": "NOTIFICATION_WM_CLOSE_REQUEST", + "value": 1006 + }, + { + "name": "NOTIFICATION_WM_GO_BACK_REQUEST", + "value": 1007 + }, + { + "name": "NOTIFICATION_WM_SIZE_CHANGED", + "value": 1008 + }, + { + "name": "NOTIFICATION_WM_DPI_CHANGE", + "value": 1009 + }, + { + "name": "NOTIFICATION_VP_MOUSE_ENTER", + "value": 1010 + }, + { + "name": "NOTIFICATION_VP_MOUSE_EXIT", + "value": 1011 + }, + { + "name": "NOTIFICATION_OS_MEMORY_WARNING", + "value": 2009 + }, + { + "name": "NOTIFICATION_TRANSLATION_CHANGED", + "value": 2010 + }, + { + "name": "NOTIFICATION_WM_ABOUT", + "value": 2011 + }, + { + "name": "NOTIFICATION_CRASH", + "value": 2012 + }, + { + "name": "NOTIFICATION_OS_IME_UPDATE", + "value": 2013 + }, + { + "name": "NOTIFICATION_APPLICATION_RESUMED", + "value": 2014 + }, + { + "name": "NOTIFICATION_APPLICATION_PAUSED", + "value": 2015 + }, + { + "name": "NOTIFICATION_APPLICATION_FOCUS_IN", + "value": 2016 + }, + { + "name": "NOTIFICATION_APPLICATION_FOCUS_OUT", + "value": 2017 + }, + { + "name": "NOTIFICATION_TEXT_SERVER_CHANGED", + "value": 2018 + } + ], + "enums": [ + { + "name": "ProcessMode", + "is_bitfield": false, + "values": [ + { + "name": "PROCESS_MODE_INHERIT", + "value": 0 + }, + { + "name": "PROCESS_MODE_PAUSABLE", + "value": 1 + }, + { + "name": "PROCESS_MODE_WHEN_PAUSED", + "value": 2 + }, + { + "name": "PROCESS_MODE_ALWAYS", + "value": 3 + }, + { + "name": "PROCESS_MODE_DISABLED", + "value": 4 + } + ] + }, + { + "name": "DuplicateFlags", + "is_bitfield": false, + "values": [ + { + "name": "DUPLICATE_SIGNALS", + "value": 1 + }, + { + "name": "DUPLICATE_GROUPS", + "value": 2 + }, + { + "name": "DUPLICATE_SCRIPTS", + "value": 4 + }, + { + "name": "DUPLICATE_USE_INSTANTIATION", + "value": 8 + } + ] + }, + { + "name": "InternalMode", + "is_bitfield": false, + "values": [ + { + "name": "INTERNAL_MODE_DISABLED", + "value": 0 + }, + { + "name": "INTERNAL_MODE_FRONT", + "value": 1 + }, + { + "name": "INTERNAL_MODE_BACK", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_physics_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_enter_tree", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_exit_tree", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_ready", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_configuration_warnings", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "_shortcut_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "_unhandled_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "_unhandled_key_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "print_orphan_nodes", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_sibling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2570952461, + "arguments": [ + { + "name": "sibling", + "type": "Node" + }, + { + "name": "force_readable_name", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "add_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3070154285, + "arguments": [ + { + "name": "node", + "type": "Node" + }, + { + "name": "force_readable_name", + "type": "bool", + "default_value": "false" + }, + { + "name": "internal", + "type": "enum::Node.InternalMode", + "default_value": "0" + } + ] + }, + { + "name": "remove_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "reparent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2570952461, + "arguments": [ + { + "name": "new_parent", + "type": "Node" + }, + { + "name": "keep_global_transform", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_child_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 894402480, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "include_internal", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_children", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 873284517, + "return_value": { + "type": "typedarray::Node" + }, + "arguments": [ + { + "name": "include_internal", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_child", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 541253412, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "include_internal", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "has_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 861721659, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2734337346, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_or_null", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2734337346, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "find_child", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4253159453, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "pattern", + "type": "String" + }, + { + "name": "recursive", + "type": "bool", + "default_value": "true" + }, + { + "name": "owned", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "find_children", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585018254, + "return_value": { + "type": "typedarray::Node" + }, + "arguments": [ + { + "name": "pattern", + "type": "String" + }, + { + "name": "type", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "recursive", + "type": "bool", + "default_value": "true" + }, + { + "name": "owned", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "find_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1140089439, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "pattern", + "type": "String" + } + ] + }, + { + "name": "has_node_and_resource", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 861721659, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_node_and_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 502563882, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "is_inside_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_ancestor_of", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "is_greater_than", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "get_path_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 498846349, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + }, + { + "name": "use_unique_path", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_to_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3683006648, + "arguments": [ + { + "name": "group", + "type": "StringName" + }, + { + "name": "persistent", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_from_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "group", + "type": "StringName" + } + ] + }, + { + "name": "is_in_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "group", + "type": "StringName" + } + ] + }, + { + "name": "move_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3315886247, + "arguments": [ + { + "name": "child_node", + "type": "Node" + }, + { + "name": "to_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_groups", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::StringName" + } + }, + { + "name": "set_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "owner", + "type": "Node" + } + ] + }, + { + "name": "get_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "get_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 894402480, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "include_internal", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "print_tree", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "print_tree_pretty", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_scene_file_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "scene_file_path", + "type": "String" + } + ] + }, + { + "name": "get_scene_file_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "propagate_notification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "what", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "propagate_call", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1667910434, + "arguments": [ + { + "name": "method", + "type": "StringName" + }, + { + "name": "args", + "type": "Array", + "default_value": "[]" + }, + { + "name": "parent_first", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_physics_process", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_physics_process_delta_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "is_physics_processing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_process_delta_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_process", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_process_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_process_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_processing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_processing_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_shortcut_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_processing_shortcut_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_unhandled_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_processing_unhandled_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_unhandled_key_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_processing_unhandled_key_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1841290486, + "arguments": [ + { + "name": "mode", + "type": "enum::Node.ProcessMode" + } + ] + }, + { + "name": "get_process_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 739966102, + "return_value": { + "type": "enum::Node.ProcessMode" + } + }, + { + "name": "can_process", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_display_folded", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "fold", + "type": "bool" + } + ] + }, + { + "name": "is_displayed_folded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_process_internal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_processing_internal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_physics_process_internal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_physics_processing_internal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_window", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1757182445, + "return_value": { + "type": "Window" + } + }, + { + "name": "get_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2958820483, + "return_value": { + "type": "SceneTree" + } + }, + { + "name": "create_tween", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3426978995, + "return_value": { + "type": "Tween" + } + }, + { + "name": "duplicate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3511555459, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "flags", + "type": "int", + "meta": "int32", + "default_value": "15" + } + ] + }, + { + "name": "replace_by", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2570952461, + "arguments": [ + { + "name": "node", + "type": "Node" + }, + { + "name": "keep_groups", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_scene_instance_load_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "load_placeholder", + "type": "bool" + } + ] + }, + { + "name": "get_scene_instance_load_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_editable_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2731852923, + "arguments": [ + { + "name": "node", + "type": "Node" + }, + { + "name": "is_editable", + "type": "bool" + } + ] + }, + { + "name": "is_editable_instance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3093956946, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "get_viewport", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3596683776, + "return_value": { + "type": "Viewport" + } + }, + { + "name": "queue_free", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "request_ready", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_multiplayer_authority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "recursive", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_multiplayer_authority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_multiplayer_authority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_multiplayer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 406750475, + "return_value": { + "type": "MultiplayerAPI" + } + }, + { + "name": "rpc_config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "method", + "type": "StringName" + }, + { + "name": "config", + "type": "Variant" + } + ] + }, + { + "name": "set_editor_description", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "editor_description", + "type": "String" + } + ] + }, + { + "name": "get_editor_description", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_unique_name_in_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_unique_name_in_owner", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "rpc", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 4047867050, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "rpc_id", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 361499283, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "update_configuration_warnings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "ready" + }, + { + "name": "renamed" + }, + { + "name": "tree_entered" + }, + { + "name": "tree_exiting" + }, + { + "name": "tree_exited" + }, + { + "name": "child_entered_tree", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "child_exiting_tree", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "StringName", + "name": "name", + "setter": "set_name", + "getter": "get_name" + }, + { + "type": "bool", + "name": "unique_name_in_owner", + "setter": "set_unique_name_in_owner", + "getter": "is_unique_name_in_owner" + }, + { + "type": "String", + "name": "scene_file_path", + "setter": "set_scene_file_path", + "getter": "get_scene_file_path" + }, + { + "type": "Node", + "name": "owner", + "setter": "set_owner", + "getter": "get_owner" + }, + { + "type": "MultiplayerAPI", + "name": "multiplayer", + "getter": "get_multiplayer" + }, + { + "type": "int", + "name": "process_mode", + "setter": "set_process_mode", + "getter": "get_process_mode" + }, + { + "type": "int", + "name": "process_priority", + "setter": "set_process_priority", + "getter": "get_process_priority" + }, + { + "type": "String", + "name": "editor_description", + "setter": "set_editor_description", + "getter": "get_editor_description" + } + ] + }, + { + "name": "Node2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CanvasItem", + "api_type": "core", + "methods": [ + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "set_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_rotation_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_skew", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_rotation_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_skew", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "rotate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "move_local_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2087892650, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "scaled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "move_local_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2087892650, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "scaled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "global_translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "apply_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "ratio", + "type": "Vector2" + } + ] + }, + { + "name": "set_global_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_global_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_global_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_global_rotation_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_global_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_global_rotation_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_global_skew", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radians", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_global_skew", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_global_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_global_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "set_global_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "look_at", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "get_angle_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2276447920, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "to_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "global_point", + "type": "Vector2" + } + ] + }, + { + "name": "to_global", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "local_point", + "type": "Vector2" + } + ] + }, + { + "name": "get_relative_transform_to_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 904556875, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "parent", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "float", + "name": "rotation", + "setter": "set_rotation", + "getter": "get_rotation" + }, + { + "type": "float", + "name": "rotation_degrees", + "setter": "set_rotation_degrees", + "getter": "get_rotation_degrees" + }, + { + "type": "Vector2", + "name": "scale", + "setter": "set_scale", + "getter": "get_scale" + }, + { + "type": "float", + "name": "skew", + "setter": "set_skew", + "getter": "get_skew" + }, + { + "type": "Transform2D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "Vector2", + "name": "global_position", + "setter": "set_global_position", + "getter": "get_global_position" + }, + { + "type": "float", + "name": "global_rotation", + "setter": "set_global_rotation", + "getter": "get_global_rotation" + }, + { + "type": "float", + "name": "global_rotation_degrees", + "setter": "set_global_rotation_degrees", + "getter": "get_global_rotation_degrees" + }, + { + "type": "Vector2", + "name": "global_scale", + "setter": "set_global_scale", + "getter": "get_global_scale" + }, + { + "type": "float", + "name": "global_skew", + "setter": "set_global_skew", + "getter": "get_global_skew" + }, + { + "type": "Transform2D", + "name": "global_transform", + "setter": "set_global_transform", + "getter": "get_global_transform" + } + ] + }, + { + "name": "Node3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_TRANSFORM_CHANGED", + "value": 2000 + }, + { + "name": "NOTIFICATION_ENTER_WORLD", + "value": 41 + }, + { + "name": "NOTIFICATION_EXIT_WORLD", + "value": 42 + }, + { + "name": "NOTIFICATION_VISIBILITY_CHANGED", + "value": 43 + }, + { + "name": "NOTIFICATION_LOCAL_TRANSFORM_CHANGED", + "value": 44 + } + ], + "enums": [ + { + "name": "RotationEditMode", + "is_bitfield": false, + "values": [ + { + "name": "ROTATION_EDIT_MODE_EULER", + "value": 0 + }, + { + "name": "ROTATION_EDIT_MODE_QUATERNION", + "value": 1 + }, + { + "name": "ROTATION_EDIT_MODE_BASIS", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "local", + "type": "Transform3D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler_radians", + "type": "Vector3" + } + ] + }, + { + "name": "get_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_rotation_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler_degrees", + "type": "Vector3" + } + ] + }, + { + "name": "get_rotation_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_rotation_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1820889989, + "arguments": [ + { + "name": "order", + "type": "enum::EulerOrder" + } + ] + }, + { + "name": "get_rotation_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 916939469, + "return_value": { + "type": "enum::EulerOrder" + } + }, + { + "name": "set_rotation_edit_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 141483330, + "arguments": [ + { + "name": "edit_mode", + "type": "enum::Node3D.RotationEditMode" + } + ] + }, + { + "name": "get_rotation_edit_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1572188370, + "return_value": { + "type": "enum::Node3D.RotationEditMode" + } + }, + { + "name": "set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_quaternion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1727505552, + "arguments": [ + { + "name": "quaternion", + "type": "Quaternion" + } + ] + }, + { + "name": "get_quaternion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + }, + { + "name": "set_basis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1055510324, + "arguments": [ + { + "name": "basis", + "type": "Basis" + } + ] + }, + { + "name": "get_basis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2716978435, + "return_value": { + "type": "Basis" + } + }, + { + "name": "set_global_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "global", + "type": "Transform3D" + } + ] + }, + { + "name": "get_global_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_global_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_global_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_global_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler_radians", + "type": "Vector3" + } + ] + }, + { + "name": "get_global_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_global_rotation_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler_degrees", + "type": "Vector3" + } + ] + }, + { + "name": "get_global_rotation_degrees", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_parent_node_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 151077316, + "return_value": { + "type": "Node3D" + } + }, + { + "name": "set_ignore_transform_notification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_as_top_level", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_set_as_top_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_disable_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_scale_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_world_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 317588385, + "return_value": { + "type": "World3D" + } + }, + { + "name": "force_update_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_visibility_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_visibility_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "update_gizmos", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_gizmo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1544533845, + "arguments": [ + { + "name": "gizmo", + "type": "Node3DGizmo" + } + ] + }, + { + "name": "get_gizmos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Node3DGizmo" + } + }, + { + "name": "clear_gizmos", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_subgizmo_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3317607635, + "arguments": [ + { + "name": "gizmo", + "type": "Node3DGizmo" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "clear_subgizmo_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_visible_in_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "hide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_notify_local_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_local_transform_notification_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_notify_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_transform_notification_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "rotate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3436291937, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "global_rotate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3436291937, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "global_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "global_translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "rotate_object_local", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3436291937, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + }, + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "scale_object_local", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "translate_object_local", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "rotate_x", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "rotate_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "rotate_z", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "orthonormalize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_identity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "look_at", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "target", + "type": "Vector3" + }, + { + "name": "up", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "look_at_from_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 735115603, + "arguments": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "target", + "type": "Vector3" + }, + { + "name": "up", + "type": "Vector3", + "default_value": "Vector3(0, 1, 0)" + } + ] + }, + { + "name": "to_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 192990374, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "global_point", + "type": "Vector3" + } + ] + }, + { + "name": "to_global", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 192990374, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "local_point", + "type": "Vector3" + } + ] + } + ], + "signals": [ + { + "name": "visibility_changed" + } + ], + "properties": [ + { + "type": "Transform3D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "Transform3D", + "name": "global_transform", + "setter": "set_global_transform", + "getter": "get_global_transform" + }, + { + "type": "Vector3", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "Vector3", + "name": "rotation", + "setter": "set_rotation", + "getter": "get_rotation" + }, + { + "type": "Vector3", + "name": "rotation_degrees", + "setter": "set_rotation_degrees", + "getter": "get_rotation_degrees" + }, + { + "type": "Quaternion", + "name": "quaternion", + "setter": "set_quaternion", + "getter": "get_quaternion" + }, + { + "type": "Basis", + "name": "basis", + "setter": "set_basis", + "getter": "get_basis" + }, + { + "type": "Vector3", + "name": "scale", + "setter": "set_scale", + "getter": "get_scale" + }, + { + "type": "int", + "name": "rotation_edit_mode", + "setter": "set_rotation_edit_mode", + "getter": "get_rotation_edit_mode" + }, + { + "type": "int", + "name": "rotation_order", + "setter": "set_rotation_order", + "getter": "get_rotation_order" + }, + { + "type": "bool", + "name": "top_level", + "setter": "set_as_top_level", + "getter": "is_set_as_top_level" + }, + { + "type": "Vector3", + "name": "global_position", + "setter": "set_global_position", + "getter": "get_global_position" + }, + { + "type": "Vector3", + "name": "global_rotation", + "setter": "set_global_rotation", + "getter": "get_global_rotation" + }, + { + "type": "Vector3", + "name": "global_rotation_degrees", + "setter": "set_global_rotation_degrees", + "getter": "get_global_rotation_degrees" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + }, + { + "type": "NodePath", + "name": "visibility_parent", + "setter": "set_visibility_parent", + "getter": "get_visibility_parent" + } + ] + }, + { + "name": "Node3DGizmo", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "Noise", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_noise_1d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3919130443, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "x", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_noise_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2753205203, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "x", + "type": "float", + "meta": "float" + }, + { + "name": "y", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_noise_2dv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2276447920, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "v", + "type": "Vector2" + } + ] + }, + { + "name": "get_noise_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 973811851, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "x", + "type": "float", + "meta": "float" + }, + { + "name": "y", + "type": "float", + "meta": "float" + }, + { + "name": "z", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_noise_3dv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1109078154, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "v", + "type": "Vector3" + } + ] + }, + { + "name": "get_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2569233413, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "invert", + "type": "bool", + "default_value": "false" + }, + { + "name": "in_3d_space", + "type": "bool", + "default_value": "false" + }, + { + "name": "normalize", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_seamless_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2210827790, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "invert", + "type": "bool", + "default_value": "false" + }, + { + "name": "in_3d_space", + "type": "bool", + "default_value": "false" + }, + { + "name": "skirt", + "type": "float", + "meta": "float", + "default_value": "0.1" + }, + { + "name": "normalize", + "type": "bool", + "default_value": "true" + } + ] + } + ] + }, + { + "name": "NoiseTexture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_invert", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "get_invert", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_in_3d_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_in_3d_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_generate_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "is_generating_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_seamless", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "seamless", + "type": "bool" + } + ] + }, + { + "name": "get_seamless", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_seamless_blend_skirt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seamless_blend_skirt", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_seamless_blend_skirt", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_as_normal_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "as_normal_map", + "type": "bool" + } + ] + }, + { + "name": "is_normal_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bump_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bump_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bump_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_normalize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "normalize", + "type": "bool" + } + ] + }, + { + "name": "is_normalized", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_color_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2756054477, + "arguments": [ + { + "name": "gradient", + "type": "Gradient" + } + ] + }, + { + "name": "get_color_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 132272999, + "return_value": { + "type": "Gradient" + } + }, + { + "name": "set_noise", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4135492439, + "arguments": [ + { + "name": "noise", + "type": "Noise" + } + ] + }, + { + "name": "get_noise", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 185851837, + "return_value": { + "type": "Noise" + } + } + ], + "properties": [ + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "bool", + "name": "invert", + "setter": "set_invert", + "getter": "get_invert" + }, + { + "type": "bool", + "name": "in_3d_space", + "setter": "set_in_3d_space", + "getter": "is_in_3d_space" + }, + { + "type": "bool", + "name": "generate_mipmaps", + "setter": "set_generate_mipmaps", + "getter": "is_generating_mipmaps" + }, + { + "type": "bool", + "name": "seamless", + "setter": "set_seamless", + "getter": "get_seamless" + }, + { + "type": "float", + "name": "seamless_blend_skirt", + "setter": "set_seamless_blend_skirt", + "getter": "get_seamless_blend_skirt" + }, + { + "type": "bool", + "name": "as_normal_map", + "setter": "set_as_normal_map", + "getter": "is_normal_map" + }, + { + "type": "float", + "name": "bump_strength", + "setter": "set_bump_strength", + "getter": "get_bump_strength" + }, + { + "type": "bool", + "name": "normalize", + "setter": "set_normalize", + "getter": "is_normalized" + }, + { + "type": "Gradient", + "name": "color_ramp", + "setter": "set_color_ramp", + "getter": "get_color_ramp" + }, + { + "type": "Noise", + "name": "noise", + "setter": "set_noise", + "getter": "get_noise" + } + ] + }, + { + "name": "ORMMaterial3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "BaseMaterial3D", + "api_type": "core" + }, + { + "name": "OS", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "RenderingDriver", + "is_bitfield": false, + "values": [ + { + "name": "RENDERING_DRIVER_VULKAN", + "value": 0 + }, + { + "name": "RENDERING_DRIVER_OPENGL3", + "value": 1 + } + ] + }, + { + "name": "SystemDir", + "is_bitfield": false, + "values": [ + { + "name": "SYSTEM_DIR_DESKTOP", + "value": 0 + }, + { + "name": "SYSTEM_DIR_DCIM", + "value": 1 + }, + { + "name": "SYSTEM_DIR_DOCUMENTS", + "value": 2 + }, + { + "name": "SYSTEM_DIR_DOWNLOADS", + "value": 3 + }, + { + "name": "SYSTEM_DIR_MOVIES", + "value": 4 + }, + { + "name": "SYSTEM_DIR_MUSIC", + "value": 5 + }, + { + "name": "SYSTEM_DIR_PICTURES", + "value": 6 + }, + { + "name": "SYSTEM_DIR_RINGTONES", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "get_connected_midi_inputs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "open_midi_inputs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "close_midi_inputs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "alert", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 233059325, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "title", + "type": "String", + "default_value": "\"Alert!\"" + } + ] + }, + { + "name": "crash", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "message", + "type": "String" + } + ] + }, + { + "name": "set_low_processor_usage_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_in_low_processor_usage_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_low_processor_usage_mode_sleep_usec", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "usec", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_low_processor_usage_mode_sleep_usec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_processor_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_processor_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_system_fonts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_system_font_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2262142305, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_name", + "type": "String" + }, + { + "name": "weight", + "type": "int", + "meta": "int32", + "default_value": "400" + }, + { + "name": "stretch", + "type": "int", + "meta": "int32", + "default_value": "100" + }, + { + "name": "italic", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_system_font_path_for_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3824042574, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "font_name", + "type": "String" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "locale", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "script", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "weight", + "type": "int", + "meta": "int32", + "default_value": "400" + }, + { + "name": "stretch", + "type": "int", + "meta": "int32", + "default_value": "100" + }, + { + "name": "italic", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_executable_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "read_string_from_stdin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "execute", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2881709059, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "arguments", + "type": "PackedStringArray" + }, + { + "name": "output", + "type": "Array", + "default_value": "[]" + }, + { + "name": "read_stderr", + "type": "bool", + "default_value": "false" + }, + { + "name": "open_console", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_process", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2903767230, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "arguments", + "type": "PackedStringArray" + }, + { + "name": "open_console", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_instance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1080601263, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "arguments", + "type": "PackedStringArray" + } + ] + }, + { + "name": "kill", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844576869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "pid", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "shell_open", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "uri", + "type": "String" + } + ] + }, + { + "name": "is_process_running", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "pid", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_process_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "variable", + "type": "String" + } + ] + }, + { + "name": "get_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "variable", + "type": "String" + } + ] + }, + { + "name": "set_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3605043004, + "arguments": [ + { + "name": "variable", + "type": "String" + }, + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "unset_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3089850668, + "arguments": [ + { + "name": "variable", + "type": "String" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_distribution_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_cmdline_args", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_cmdline_user_args", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_video_adapter_driver_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_restart_on_exit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 611198603, + "arguments": [ + { + "name": "restart", + "type": "bool" + }, + { + "name": "arguments", + "type": "PackedStringArray", + "default_value": "PackedStringArray()" + } + ] + }, + { + "name": "is_restart_on_exit_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_restart_on_exit_arguments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "delay_usec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 998575451, + "arguments": [ + { + "name": "usec", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "delay_msec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 998575451, + "arguments": [ + { + "name": "msec", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_locale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_locale_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_model_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_userfs_persistent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_stdout_verbose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_debug_build", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_static_memory_usage", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_static_memory_peak_usage", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "move_to_trash", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2113323047, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_user_data_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_system_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965199849, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "dir", + "type": "enum::OS.SystemDir" + }, + { + "name": "shared_storage", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_config_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_data_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_cache_dir", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_unique_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_keycode_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2261993717, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "code", + "type": "enum::Key" + } + ] + }, + { + "name": "is_keycode_unicode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "code", + "type": "int" + } + ] + }, + { + "name": "find_keycode_from_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1084858572, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "set_use_file_access_save_and_swap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_thread_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_thread_caller_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_main_thread_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "tag_name", + "type": "String" + } + ] + }, + { + "name": "request_permission", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "request_permissions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_granted_permissions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "low_processor_usage_mode", + "setter": "set_low_processor_usage_mode", + "getter": "is_in_low_processor_usage_mode" + }, + { + "type": "int", + "name": "low_processor_usage_mode_sleep_usec", + "setter": "set_low_processor_usage_mode_sleep_usec", + "getter": "get_low_processor_usage_mode_sleep_usec" + } + ] + }, + { + "name": "Object", + "is_refcounted": false, + "is_instantiable": true, + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_POSTINITIALIZE", + "value": 0 + }, + { + "name": "NOTIFICATION_PREDELETE", + "value": 1 + } + ], + "enums": [ + { + "name": "ConnectFlags", + "is_bitfield": false, + "values": [ + { + "name": "CONNECT_DEFERRED", + "value": 1 + }, + { + "name": "CONNECT_PERSIST", + "value": 2 + }, + { + "name": "CONNECT_ONE_SHOT", + "value": 4 + }, + { + "name": "CONNECT_REFERENCE_COUNTED", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "get_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_class", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "class", + "type": "String" + } + ] + }, + { + "name": "set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "set_indexed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3500910842, + "arguments": [ + { + "name": "property_path", + "type": "NodePath" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_indexed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4006125091, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "property_path", + "type": "NodePath" + } + ] + }, + { + "name": "get_property_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_method_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "property_can_revert", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "property_get_revert", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "notification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "what", + "type": "int", + "meta": "int32" + }, + { + "name": "reversed", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "to_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "get_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "set_script", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "script", + "type": "Variant" + } + ] + }, + { + "name": "get_script", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + }, + { + "name": "set_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "remove_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3990617847, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "default", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "has_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_meta_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "add_user_signal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780025912, + "arguments": [ + { + "name": "signal", + "type": "String" + }, + { + "name": "arguments", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "has_user_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "emit_signal", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 4047867050, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "call", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 3400424181, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "call_deferred", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 3400424181, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "set_deferred", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "callv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1260104456, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + }, + { + "name": "arg_array", + "type": "Array" + } + ] + }, + { + "name": "has_method", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "has_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "get_signal_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_signal_connection_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3147814860, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "get_incoming_connections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "connect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1469446357, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "disconnect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1874754934, + "arguments": [ + { + "name": "signal", + "type": "StringName" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "is_connected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 768136979, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "set_block_signals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_blocking_signals", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "notify_property_list_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_message_translation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "can_translate_messages", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "tr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2475554935, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "tr_n", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4021311862, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "message", + "type": "StringName" + }, + { + "name": "plural_message", + "type": "StringName" + }, + { + "name": "n", + "type": "int", + "meta": "int32" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "is_queued_for_deletion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "script_changed" + }, + { + "name": "property_list_changed" + } + ] + }, + { + "name": "Occluder3D", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_vertices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "get_indices", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + } + ] + }, + { + "name": "OccluderInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_bake_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_bake_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_bake_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_bake_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bake_simplification_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "simplification_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bake_simplification_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_occluder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1664878165, + "arguments": [ + { + "name": "occluder", + "type": "Occluder3D" + } + ] + }, + { + "name": "get_occluder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1696836198, + "return_value": { + "type": "Occluder3D" + } + } + ], + "properties": [ + { + "type": "Occluder3D", + "name": "occluder", + "setter": "set_occluder", + "getter": "get_occluder" + }, + { + "type": "int", + "name": "bake_mask", + "setter": "set_bake_mask", + "getter": "get_bake_mask" + }, + { + "type": "float", + "name": "bake_simplification_distance", + "setter": "set_bake_simplification_distance", + "getter": "get_bake_simplification_distance" + } + ] + }, + { + "name": "OccluderPolygon2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "CullMode", + "is_bitfield": false, + "values": [ + { + "name": "CULL_DISABLED", + "value": 0 + }, + { + "name": "CULL_CLOCKWISE", + "value": 1 + }, + { + "name": "CULL_COUNTER_CLOCKWISE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_closed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "closed", + "type": "bool" + } + ] + }, + { + "name": "is_closed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cull_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3500863002, + "arguments": [ + { + "name": "cull_mode", + "type": "enum::OccluderPolygon2D.CullMode" + } + ] + }, + { + "name": "get_cull_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 33931036, + "return_value": { + "type": "enum::OccluderPolygon2D.CullMode" + } + }, + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "closed", + "setter": "set_closed", + "getter": "is_closed" + }, + { + "type": "int", + "name": "cull_mode", + "setter": "set_cull_mode", + "getter": "get_cull_mode" + }, + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + } + ] + }, + { + "name": "OfflineMultiplayerPeer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerPeer", + "api_type": "core" + }, + { + "name": "OggPacketSequence", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_packet_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "packet_data", + "type": "typedarray::Array" + } + ] + }, + { + "name": "get_packet_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Array" + } + }, + { + "name": "set_packet_granule_positions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3709968205, + "arguments": [ + { + "name": "granule_positions", + "type": "PackedInt64Array" + } + ] + }, + { + "name": "get_packet_granule_positions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 235988956, + "return_value": { + "type": "PackedInt64Array" + } + }, + { + "name": "set_sampling_rate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "sampling_rate", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sampling_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "typedarray::PackedByteArray", + "name": "packet_data", + "setter": "set_packet_data", + "getter": "get_packet_data" + }, + { + "type": "PackedInt64Array", + "name": "granule_positions", + "setter": "set_packet_granule_positions", + "getter": "get_packet_granule_positions" + }, + { + "type": "float", + "name": "sampling_rate", + "setter": "set_sampling_rate", + "getter": "get_sampling_rate" + } + ] + }, + { + "name": "OggPacketSequencePlayback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "OmniLight3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Light3D", + "api_type": "core", + "enums": [ + { + "name": "ShadowMode", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_DUAL_PARABOLOID", + "value": 0 + }, + { + "name": "SHADOW_CUBE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_shadow_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121862228, + "arguments": [ + { + "name": "mode", + "type": "enum::OmniLight3D.ShadowMode" + } + ] + }, + { + "name": "get_shadow_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4181586331, + "return_value": { + "type": "enum::OmniLight3D.ShadowMode" + } + } + ], + "properties": [ + { + "type": "float", + "name": "omni_range", + "setter": "set_param", + "getter": "get_param", + "index": 4 + }, + { + "type": "float", + "name": "omni_attenuation", + "setter": "set_param", + "getter": "get_param", + "index": 6 + }, + { + "type": "int", + "name": "omni_shadow_mode", + "setter": "set_shadow_mode", + "getter": "get_shadow_mode" + } + ] + }, + { + "name": "OpenXRAction", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "ActionType", + "is_bitfield": false, + "values": [ + { + "name": "OPENXR_ACTION_BOOL", + "value": 0 + }, + { + "name": "OPENXR_ACTION_FLOAT", + "value": 1 + }, + { + "name": "OPENXR_ACTION_VECTOR2", + "value": 2 + }, + { + "name": "OPENXR_ACTION_POSE", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_localized_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "localized_name", + "type": "String" + } + ] + }, + { + "name": "get_localized_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_action_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1675238366, + "arguments": [ + { + "name": "action_type", + "type": "enum::OpenXRAction.ActionType" + } + ] + }, + { + "name": "get_action_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536542431, + "return_value": { + "type": "enum::OpenXRAction.ActionType" + } + }, + { + "name": "set_toplevel_paths", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "toplevel_paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_toplevel_paths", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ], + "properties": [ + { + "type": "String", + "name": "localized_name", + "setter": "set_localized_name", + "getter": "get_localized_name" + }, + { + "type": "int", + "name": "action_type", + "setter": "set_action_type", + "getter": "get_action_type" + }, + { + "type": "PackedStringArray", + "name": "toplevel_paths", + "setter": "set_toplevel_paths", + "getter": "get_toplevel_paths" + } + ] + }, + { + "name": "OpenXRActionMap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_action_sets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "action_sets", + "type": "Array" + } + ] + }, + { + "name": "get_action_sets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_action_set_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_action_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1888809267, + "return_value": { + "type": "OpenXRActionSet" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_action_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1789580336, + "return_value": { + "type": "OpenXRActionSet" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_action_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2093310581, + "arguments": [ + { + "name": "action_set", + "type": "OpenXRActionSet" + } + ] + }, + { + "name": "remove_action_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2093310581, + "arguments": [ + { + "name": "action_set", + "type": "OpenXRActionSet" + } + ] + }, + { + "name": "set_interaction_profiles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "interaction_profiles", + "type": "Array" + } + ] + }, + { + "name": "get_interaction_profiles", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_interaction_profile_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_interaction_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3095875538, + "return_value": { + "type": "OpenXRInteractionProfile" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_interaction_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546151210, + "return_value": { + "type": "OpenXRInteractionProfile" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_interaction_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2697953512, + "arguments": [ + { + "name": "interaction_profile", + "type": "OpenXRInteractionProfile" + } + ] + }, + { + "name": "remove_interaction_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2697953512, + "arguments": [ + { + "name": "interaction_profile", + "type": "OpenXRInteractionProfile" + } + ] + }, + { + "name": "create_default_action_sets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "OpenXRActionSet", + "name": "action_sets", + "setter": "set_action_sets", + "getter": "get_action_sets" + }, + { + "type": "OpenXRInteractionProfile", + "name": "interaction_profiles", + "setter": "set_interaction_profiles", + "getter": "get_interaction_profiles" + } + ] + }, + { + "name": "OpenXRActionSet", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_localized_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "localized_name", + "type": "String" + } + ] + }, + { + "name": "get_localized_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_action_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_actions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "actions", + "type": "Array" + } + ] + }, + { + "name": "get_actions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "add_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + }, + { + "name": "remove_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "localized_name", + "setter": "set_localized_name", + "getter": "get_localized_name" + }, + { + "type": "int", + "name": "priority", + "setter": "set_priority", + "getter": "get_priority" + }, + { + "type": "OpenXRAction", + "name": "actions", + "setter": "set_actions", + "getter": "get_actions" + } + ] + }, + { + "name": "OpenXRHand", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "Hands", + "is_bitfield": false, + "values": [ + { + "name": "HAND_LEFT", + "value": 0 + }, + { + "name": "HAND_RIGHT", + "value": 1 + }, + { + "name": "HAND_MAX", + "value": 2 + } + ] + }, + { + "name": "MotionRange", + "is_bitfield": false, + "values": [ + { + "name": "MOTION_RANGE_UNOBSTRUCTED", + "value": 0 + }, + { + "name": "MOTION_RANGE_CONFORM_TO_CONTROLLER", + "value": 1 + }, + { + "name": "MOTION_RANGE_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_hand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1849328560, + "arguments": [ + { + "name": "hand", + "type": "enum::OpenXRHand.Hands" + } + ] + }, + { + "name": "get_hand", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2850644561, + "return_value": { + "type": "enum::OpenXRHand.Hands" + } + }, + { + "name": "set_hand_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "hand_skeleton", + "type": "NodePath" + } + ] + }, + { + "name": "get_hand_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_motion_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3326516003, + "arguments": [ + { + "name": "motion_range", + "type": "enum::OpenXRHand.MotionRange" + } + ] + }, + { + "name": "get_motion_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2191822314, + "return_value": { + "type": "enum::OpenXRHand.MotionRange" + } + } + ], + "properties": [ + { + "type": "int", + "name": "hand", + "setter": "set_hand", + "getter": "get_hand" + }, + { + "type": "int", + "name": "motion_range", + "setter": "set_motion_range", + "getter": "get_motion_range" + }, + { + "type": "NodePath", + "name": "hand_skeleton", + "setter": "set_hand_skeleton", + "getter": "get_hand_skeleton" + } + ] + }, + { + "name": "OpenXRIPBinding", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349361333, + "arguments": [ + { + "name": "action", + "type": "OpenXRAction" + } + ] + }, + { + "name": "get_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4072409085, + "return_value": { + "type": "OpenXRAction" + } + }, + { + "name": "get_path_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_paths", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "paths", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_paths", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "has_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "add_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "remove_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "OpenXRAction", + "name": "action", + "setter": "set_action", + "getter": "get_action" + }, + { + "type": "PackedStringArray", + "name": "paths", + "setter": "set_paths", + "getter": "get_paths" + } + ] + }, + { + "name": "OpenXRInteractionProfile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_interaction_profile_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "interaction_profile_path", + "type": "String" + } + ] + }, + { + "name": "get_interaction_profile_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_binding_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_binding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3934429652, + "return_value": { + "type": "OpenXRIPBinding" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bindings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "bindings", + "type": "Array" + } + ] + }, + { + "name": "get_bindings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "String", + "name": "interaction_profile_path", + "setter": "set_interaction_profile_path", + "getter": "get_interaction_profile_path" + }, + { + "type": "OpenXRIPBinding", + "name": "bindings", + "setter": "set_bindings", + "getter": "get_bindings" + } + ] + }, + { + "name": "OpenXRInterface", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRInterface", + "api_type": "core", + "methods": [ + { + "name": "get_display_refresh_rate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_display_refresh_rate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "refresh_rate", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "is_action_set_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_action_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_action_sets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_available_display_refresh_rates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "signals": [ + { + "name": "session_begun" + }, + { + "name": "session_stopping" + }, + { + "name": "session_focussed" + }, + { + "name": "session_visible" + }, + { + "name": "pose_recentered" + } + ], + "properties": [ + { + "type": "float", + "name": "display_refresh_rate", + "setter": "set_display_refresh_rate", + "getter": "get_display_refresh_rate" + } + ] + }, + { + "name": "OptimizedTranslation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Translation", + "api_type": "core", + "methods": [ + { + "name": "generate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1466479800, + "arguments": [ + { + "name": "from", + "type": "Translation" + } + ] + } + ] + }, + { + "name": "OptionButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Button", + "api_type": "core", + "methods": [ + { + "name": "add_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3043792800, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_icon_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3944051090, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_item_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "set_item_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_item_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_item_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "metadata", + "type": "Variant" + } + ] + }, + { + "name": "set_item_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_item_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_separator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_separator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3005725572, + "arguments": [ + { + "name": "text", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_selected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_selected_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_selected_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + }, + { + "name": "remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_popup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229722558, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "show_popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_item_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_selectable_items", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_selectable_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 894402480, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "from_last", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_fit_to_longest_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "fit", + "type": "bool" + } + ] + }, + { + "name": "is_fit_to_longest_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "item_selected", + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "item_focused", + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "item_count", + "setter": "set_item_count", + "getter": "get_item_count" + }, + { + "type": "int", + "name": "selected", + "setter": "_select_int", + "getter": "get_selected" + }, + { + "type": "bool", + "name": "fit_to_longest_item", + "setter": "set_fit_to_longest_item", + "getter": "is_fit_to_longest_item" + } + ] + }, + { + "name": "PCKPacker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "pck_start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3232891339, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "pck_name", + "type": "String" + }, + { + "name": "alignment", + "type": "int", + "meta": "int32", + "default_value": "32" + }, + { + "name": "key", + "type": "String", + "default_value": "\"0000000000000000000000000000000000000000000000000000000000000000\"" + }, + { + "name": "encrypt_directory", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2215643711, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "pck_path", + "type": "String" + }, + { + "name": "source_path", + "type": "String" + }, + { + "name": "encrypt", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "flush", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1633102583, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "verbose", + "type": "bool", + "default_value": "false" + } + ] + } + ] + }, + { + "name": "PackedDataContainer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "pack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 966674026, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "PackedDataContainerRef", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "PackedScene", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "GenEditState", + "is_bitfield": false, + "values": [ + { + "name": "GEN_EDIT_STATE_DISABLED", + "value": 0 + }, + { + "name": "GEN_EDIT_STATE_INSTANCE", + "value": 1 + }, + { + "name": "GEN_EDIT_STATE_MAIN", + "value": 2 + }, + { + "name": "GEN_EDIT_STATE_MAIN_INHERITED", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "pack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2584678054, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "Node" + } + ] + }, + { + "name": "instantiate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2628778455, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "edit_state", + "type": "enum::PackedScene.GenEditState", + "default_value": "0" + } + ] + }, + { + "name": "can_instantiate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3479783971, + "return_value": { + "type": "SceneState" + } + } + ] + }, + { + "name": "PacketPeer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_var", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3442865206, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "put_var", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2436251611, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "var", + "type": "Variant" + }, + { + "name": "full_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_packet", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2115431945, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "put_packet", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_packet_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3185525595, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_available_packet_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_encode_buffer_max_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_encode_buffer_max_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_size", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "encode_buffer_max_size", + "setter": "set_encode_buffer_max_size", + "getter": "get_encode_buffer_max_size" + } + ] + }, + { + "name": "PacketPeerDTLS", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PacketPeer", + "api_type": "core", + "enums": [ + { + "name": "Status", + "is_bitfield": false, + "values": [ + { + "name": "STATUS_DISCONNECTED", + "value": 0 + }, + { + "name": "STATUS_HANDSHAKING", + "value": 1 + }, + { + "name": "STATUS_CONNECTED", + "value": 2 + }, + { + "name": "STATUS_ERROR", + "value": 3 + }, + { + "name": "STATUS_ERROR_HOSTNAME_MISMATCH", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "connect_to_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1801538152, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "packet_peer", + "type": "PacketPeerUDP" + }, + { + "name": "hostname", + "type": "String" + }, + { + "name": "client_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "get_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3248654679, + "return_value": { + "type": "enum::PacketPeerDTLS.Status" + } + }, + { + "name": "disconnect_from_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "PacketPeerExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PacketPeer", + "api_type": "core", + "methods": [ + { + "name": "_get_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "r_buffer", + "type": "const uint8_t **" + }, + { + "name": "r_buffer_size", + "type": "int32_t*" + } + ] + }, + { + "name": "_put_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_buffer", + "type": "const uint8_t*" + }, + { + "name": "p_buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_available_packet_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_max_packet_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "PacketPeerStream", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PacketPeer", + "api_type": "core", + "methods": [ + { + "name": "set_stream_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3281897016, + "arguments": [ + { + "name": "peer", + "type": "StreamPeer" + } + ] + }, + { + "name": "get_stream_peer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2741655269, + "return_value": { + "type": "StreamPeer" + } + }, + { + "name": "set_input_buffer_max_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_size_bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_output_buffer_max_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_size_bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_input_buffer_max_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_output_buffer_max_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "input_buffer_max_size", + "setter": "set_input_buffer_max_size", + "getter": "get_input_buffer_max_size" + }, + { + "type": "int", + "name": "output_buffer_max_size", + "setter": "set_output_buffer_max_size", + "getter": "get_output_buffer_max_size" + }, + { + "type": "StreamPeer", + "name": "stream_peer", + "setter": "set_stream_peer", + "getter": "get_stream_peer" + } + ] + }, + { + "name": "PacketPeerUDP", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PacketPeer", + "api_type": "core", + "methods": [ + { + "name": "bind", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290438434, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "bind_address", + "type": "String", + "default_value": "\"*\"" + }, + { + "name": "recv_buf_size", + "type": "int", + "meta": "int32", + "default_value": "65536" + } + ] + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "wait", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "is_bound", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "connect_to_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 993915709, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_socket_connected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_packet_ip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_packet_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_dest_address", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 993915709, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_broadcast_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "join_multicast_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "multicast_address", + "type": "String" + }, + { + "name": "interface_name", + "type": "String" + } + ] + }, + { + "name": "leave_multicast_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "multicast_address", + "type": "String" + }, + { + "name": "interface_name", + "type": "String" + } + ] + } + ] + }, + { + "name": "Panel", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core" + }, + { + "name": "PanelContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core" + }, + { + "name": "PanoramaSkyMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "methods": [ + { + "name": "set_panorama", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_panorama", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_filtering_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_filtering_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "panorama", + "setter": "set_panorama", + "getter": "get_panorama" + }, + { + "type": "bool", + "name": "filter", + "setter": "set_filtering_enabled", + "getter": "is_filtering_enabled" + } + ] + }, + { + "name": "ParallaxBackground", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "CanvasLayer", + "api_type": "core", + "methods": [ + { + "name": "set_scroll_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_scroll_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_scroll_base_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_scroll_base_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_scroll_base_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_scroll_base_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_limit_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_limit_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_limit_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_limit_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_ignore_camera_zoom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "is_ignore_camera_zoom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "scroll_offset", + "setter": "set_scroll_offset", + "getter": "get_scroll_offset" + }, + { + "type": "Vector2", + "name": "scroll_base_offset", + "setter": "set_scroll_base_offset", + "getter": "get_scroll_base_offset" + }, + { + "type": "Vector2", + "name": "scroll_base_scale", + "setter": "set_scroll_base_scale", + "getter": "get_scroll_base_scale" + }, + { + "type": "Vector2", + "name": "scroll_limit_begin", + "setter": "set_limit_begin", + "getter": "get_limit_begin" + }, + { + "type": "Vector2", + "name": "scroll_limit_end", + "setter": "set_limit_end", + "getter": "get_limit_end" + }, + { + "type": "bool", + "name": "scroll_ignore_camera_zoom", + "setter": "set_ignore_camera_zoom", + "getter": "is_ignore_camera_zoom" + } + ] + }, + { + "name": "ParallaxLayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_motion_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_motion_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_motion_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_motion_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_mirroring", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "mirror", + "type": "Vector2" + } + ] + }, + { + "name": "get_mirroring", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "motion_scale", + "setter": "set_motion_scale", + "getter": "get_motion_scale" + }, + { + "type": "Vector2", + "name": "motion_offset", + "setter": "set_motion_offset", + "getter": "get_motion_offset" + }, + { + "type": "Vector2", + "name": "motion_mirroring", + "setter": "set_mirroring", + "getter": "get_mirroring" + } + ] + }, + { + "name": "ParticleProcessMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "enums": [ + { + "name": "Parameter", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_INITIAL_LINEAR_VELOCITY", + "value": 0 + }, + { + "name": "PARAM_ANGULAR_VELOCITY", + "value": 1 + }, + { + "name": "PARAM_ORBIT_VELOCITY", + "value": 2 + }, + { + "name": "PARAM_LINEAR_ACCEL", + "value": 3 + }, + { + "name": "PARAM_RADIAL_ACCEL", + "value": 4 + }, + { + "name": "PARAM_TANGENTIAL_ACCEL", + "value": 5 + }, + { + "name": "PARAM_DAMPING", + "value": 6 + }, + { + "name": "PARAM_ANGLE", + "value": 7 + }, + { + "name": "PARAM_SCALE", + "value": 8 + }, + { + "name": "PARAM_HUE_VARIATION", + "value": 9 + }, + { + "name": "PARAM_ANIM_SPEED", + "value": 10 + }, + { + "name": "PARAM_ANIM_OFFSET", + "value": 11 + }, + { + "name": "PARAM_MAX", + "value": 15 + }, + { + "name": "PARAM_TURB_VEL_INFLUENCE", + "value": 13 + }, + { + "name": "PARAM_TURB_INIT_DISPLACEMENT", + "value": 14 + }, + { + "name": "PARAM_TURB_INFLUENCE_OVER_LIFE", + "value": 12 + } + ] + }, + { + "name": "ParticleFlags", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY", + "value": 0 + }, + { + "name": "PARTICLE_FLAG_ROTATE_Y", + "value": 1 + }, + { + "name": "PARTICLE_FLAG_DISABLE_Z", + "value": 2 + }, + { + "name": "PARTICLE_FLAG_MAX", + "value": 3 + } + ] + }, + { + "name": "EmissionShape", + "is_bitfield": false, + "values": [ + { + "name": "EMISSION_SHAPE_POINT", + "value": 0 + }, + { + "name": "EMISSION_SHAPE_SPHERE", + "value": 1 + }, + { + "name": "EMISSION_SHAPE_SPHERE_SURFACE", + "value": 2 + }, + { + "name": "EMISSION_SHAPE_BOX", + "value": 3 + }, + { + "name": "EMISSION_SHAPE_POINTS", + "value": 4 + }, + { + "name": "EMISSION_SHAPE_DIRECTED_POINTS", + "value": 5 + }, + { + "name": "EMISSION_SHAPE_RING", + "value": 6 + }, + { + "name": "EMISSION_SHAPE_MAX", + "value": 7 + } + ] + }, + { + "name": "SubEmitterMode", + "is_bitfield": false, + "values": [ + { + "name": "SUB_EMITTER_DISABLED", + "value": 0 + }, + { + "name": "SUB_EMITTER_CONSTANT", + "value": 1 + }, + { + "name": "SUB_EMITTER_AT_END", + "value": 2 + }, + { + "name": "SUB_EMITTER_AT_COLLISION", + "value": 3 + }, + { + "name": "SUB_EMITTER_MAX", + "value": 4 + } + ] + }, + { + "name": "CollisionMode", + "is_bitfield": false, + "values": [ + { + "name": "COLLISION_DISABLED", + "value": 0 + }, + { + "name": "COLLISION_RIGID", + "value": 1 + }, + { + "name": "COLLISION_HIDE_ON_CONTACT", + "value": 2 + }, + { + "name": "COLLISION_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "degrees", + "type": "Vector3" + } + ] + }, + { + "name": "get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_spread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_spread", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_flatness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_flatness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_param_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2295964248, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3903786503, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + } + ] + }, + { + "name": "set_param_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2295964248, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3903786503, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + } + ] + }, + { + "name": "set_param_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 526976089, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_param_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3489372978, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "param", + "type": "enum::ParticleProcessMaterial.Parameter" + } + ] + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_color_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "ramp", + "type": "Texture2D" + } + ] + }, + { + "name": "get_color_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_color_initial_ramp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "ramp", + "type": "Texture2D" + } + ] + }, + { + "name": "get_color_initial_ramp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_particle_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1711815571, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::ParticleProcessMaterial.ParticleFlags" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_particle_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3895316907, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "particle_flag", + "type": "enum::ParticleProcessMaterial.ParticleFlags" + } + ] + }, + { + "name": "set_emission_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 461501442, + "arguments": [ + { + "name": "shape", + "type": "enum::ParticleProcessMaterial.EmissionShape" + } + ] + }, + { + "name": "get_emission_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3719733018, + "return_value": { + "type": "enum::ParticleProcessMaterial.EmissionShape" + } + }, + { + "name": "set_emission_sphere_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_sphere_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_box_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "extents", + "type": "Vector3" + } + ] + }, + { + "name": "get_emission_box_extents", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_emission_point_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_emission_point_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_emission_normal_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_emission_normal_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_emission_color_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_emission_color_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_emission_point_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "point_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_emission_point_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_emission_ring_axis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "axis", + "type": "Vector3" + } + ] + }, + { + "name": "get_emission_ring_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_emission_ring_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_ring_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_emission_ring_inner_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "inner_radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_emission_ring_inner_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_turbulence_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_turbulence_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "turbulence_enabled", + "type": "bool" + } + ] + }, + { + "name": "get_turbulence_noise_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_turbulence_noise_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "turbulence_noise_strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_turbulence_noise_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_turbulence_noise_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "turbulence_noise_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_turbulence_noise_speed_random", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_turbulence_noise_speed_random", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "turbulence_noise_speed_random", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_turbulence_noise_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_turbulence_noise_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "turbulence_noise_speed", + "type": "Vector3" + } + ] + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "accel_vec", + "type": "Vector3" + } + ] + }, + { + "name": "set_lifetime_randomness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "randomness", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_lifetime_randomness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_sub_emitter_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2399052877, + "return_value": { + "type": "enum::ParticleProcessMaterial.SubEmitterMode" + } + }, + { + "name": "set_sub_emitter_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2161806672, + "arguments": [ + { + "name": "mode", + "type": "enum::ParticleProcessMaterial.SubEmitterMode" + } + ] + }, + { + "name": "get_sub_emitter_frequency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_sub_emitter_frequency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "hz", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_sub_emitter_amount_at_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sub_emitter_amount_at_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sub_emitter_amount_at_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sub_emitter_amount_at_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sub_emitter_keep_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sub_emitter_keep_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_attractor_interaction_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_attractor_interaction_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 653804659, + "arguments": [ + { + "name": "mode", + "type": "enum::ParticleProcessMaterial.CollisionMode" + } + ] + }, + { + "name": "get_collision_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 139371864, + "return_value": { + "type": "enum::ParticleProcessMaterial.CollisionMode" + } + }, + { + "name": "set_collision_use_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "radius", + "type": "bool" + } + ] + }, + { + "name": "is_collision_using_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_friction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "friction", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_friction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_collision_bounce", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bounce", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_bounce", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "lifetime_randomness", + "setter": "set_lifetime_randomness", + "getter": "get_lifetime_randomness" + }, + { + "type": "int", + "name": "emission_shape", + "setter": "set_emission_shape", + "getter": "get_emission_shape" + }, + { + "type": "float", + "name": "emission_sphere_radius", + "setter": "set_emission_sphere_radius", + "getter": "get_emission_sphere_radius" + }, + { + "type": "Vector3", + "name": "emission_box_extents", + "setter": "set_emission_box_extents", + "getter": "get_emission_box_extents" + }, + { + "type": "Texture2D", + "name": "emission_point_texture", + "setter": "set_emission_point_texture", + "getter": "get_emission_point_texture" + }, + { + "type": "Texture2D", + "name": "emission_normal_texture", + "setter": "set_emission_normal_texture", + "getter": "get_emission_normal_texture" + }, + { + "type": "Texture2D", + "name": "emission_color_texture", + "setter": "set_emission_color_texture", + "getter": "get_emission_color_texture" + }, + { + "type": "int", + "name": "emission_point_count", + "setter": "set_emission_point_count", + "getter": "get_emission_point_count" + }, + { + "type": "Vector3", + "name": "emission_ring_axis", + "setter": "set_emission_ring_axis", + "getter": "get_emission_ring_axis" + }, + { + "type": "float", + "name": "emission_ring_height", + "setter": "set_emission_ring_height", + "getter": "get_emission_ring_height" + }, + { + "type": "float", + "name": "emission_ring_radius", + "setter": "set_emission_ring_radius", + "getter": "get_emission_ring_radius" + }, + { + "type": "float", + "name": "emission_ring_inner_radius", + "setter": "set_emission_ring_inner_radius", + "getter": "get_emission_ring_inner_radius" + }, + { + "type": "bool", + "name": "particle_flag_align_y", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 0 + }, + { + "type": "bool", + "name": "particle_flag_rotate_y", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 1 + }, + { + "type": "bool", + "name": "particle_flag_disable_z", + "setter": "set_particle_flag", + "getter": "get_particle_flag", + "index": 2 + }, + { + "type": "Vector3", + "name": "direction", + "setter": "set_direction", + "getter": "get_direction" + }, + { + "type": "float", + "name": "spread", + "setter": "set_spread", + "getter": "get_spread" + }, + { + "type": "float", + "name": "flatness", + "setter": "set_flatness", + "getter": "get_flatness" + }, + { + "type": "Vector3", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + }, + { + "type": "float", + "name": "initial_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 0 + }, + { + "type": "float", + "name": "initial_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 0 + }, + { + "type": "float", + "name": "angular_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 1 + }, + { + "type": "float", + "name": "angular_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 1 + }, + { + "type": "CurveTexture", + "name": "angular_velocity_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 1 + }, + { + "type": "float", + "name": "orbit_velocity_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 2 + }, + { + "type": "float", + "name": "orbit_velocity_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 2 + }, + { + "type": "CurveTexture", + "name": "orbit_velocity_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 2 + }, + { + "type": "float", + "name": "linear_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 3 + }, + { + "type": "float", + "name": "linear_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 3 + }, + { + "type": "CurveTexture", + "name": "linear_accel_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 3 + }, + { + "type": "float", + "name": "radial_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 4 + }, + { + "type": "float", + "name": "radial_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 4 + }, + { + "type": "CurveTexture", + "name": "radial_accel_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 4 + }, + { + "type": "float", + "name": "tangential_accel_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 5 + }, + { + "type": "float", + "name": "tangential_accel_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 5 + }, + { + "type": "CurveTexture", + "name": "tangential_accel_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 5 + }, + { + "type": "float", + "name": "damping_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 6 + }, + { + "type": "float", + "name": "damping_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 6 + }, + { + "type": "CurveTexture", + "name": "damping_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 6 + }, + { + "type": "float", + "name": "angle_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 7 + }, + { + "type": "float", + "name": "angle_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 7 + }, + { + "type": "CurveTexture", + "name": "angle_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 7 + }, + { + "type": "float", + "name": "scale_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 8 + }, + { + "type": "float", + "name": "scale_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 8 + }, + { + "type": "CurveTexture,CurveXYZTexture", + "name": "scale_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 8 + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "GradientTexture1D", + "name": "color_ramp", + "setter": "set_color_ramp", + "getter": "get_color_ramp" + }, + { + "type": "GradientTexture1D", + "name": "color_initial_ramp", + "setter": "set_color_initial_ramp", + "getter": "get_color_initial_ramp" + }, + { + "type": "float", + "name": "hue_variation_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 9 + }, + { + "type": "float", + "name": "hue_variation_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 9 + }, + { + "type": "CurveTexture", + "name": "hue_variation_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 9 + }, + { + "type": "bool", + "name": "turbulence_enabled", + "setter": "set_turbulence_enabled", + "getter": "get_turbulence_enabled" + }, + { + "type": "float", + "name": "turbulence_noise_strength", + "setter": "set_turbulence_noise_strength", + "getter": "get_turbulence_noise_strength" + }, + { + "type": "float", + "name": "turbulence_noise_scale", + "setter": "set_turbulence_noise_scale", + "getter": "get_turbulence_noise_scale" + }, + { + "type": "Vector3", + "name": "turbulence_noise_speed", + "setter": "set_turbulence_noise_speed", + "getter": "get_turbulence_noise_speed" + }, + { + "type": "float", + "name": "turbulence_noise_speed_random", + "setter": "set_turbulence_noise_speed_random", + "getter": "get_turbulence_noise_speed_random" + }, + { + "type": "float", + "name": "turbulence_influence_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 13 + }, + { + "type": "float", + "name": "turbulence_influence_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 13 + }, + { + "type": "float", + "name": "turbulence_initial_displacement_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 14 + }, + { + "type": "float", + "name": "turbulence_initial_displacement_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 14 + }, + { + "type": "CurveTexture", + "name": "turbulence_influence_over_life", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 12 + }, + { + "type": "float", + "name": "anim_speed_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 10 + }, + { + "type": "float", + "name": "anim_speed_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 10 + }, + { + "type": "CurveTexture", + "name": "anim_speed_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 10 + }, + { + "type": "float", + "name": "anim_offset_min", + "setter": "set_param_min", + "getter": "get_param_min", + "index": 11 + }, + { + "type": "float", + "name": "anim_offset_max", + "setter": "set_param_max", + "getter": "get_param_max", + "index": 11 + }, + { + "type": "CurveTexture", + "name": "anim_offset_curve", + "setter": "set_param_texture", + "getter": "get_param_texture", + "index": 11 + }, + { + "type": "int", + "name": "sub_emitter_mode", + "setter": "set_sub_emitter_mode", + "getter": "get_sub_emitter_mode" + }, + { + "type": "float", + "name": "sub_emitter_frequency", + "setter": "set_sub_emitter_frequency", + "getter": "get_sub_emitter_frequency" + }, + { + "type": "int", + "name": "sub_emitter_amount_at_end", + "setter": "set_sub_emitter_amount_at_end", + "getter": "get_sub_emitter_amount_at_end" + }, + { + "type": "int", + "name": "sub_emitter_amount_at_collision", + "setter": "set_sub_emitter_amount_at_collision", + "getter": "get_sub_emitter_amount_at_collision" + }, + { + "type": "bool", + "name": "sub_emitter_keep_velocity", + "setter": "set_sub_emitter_keep_velocity", + "getter": "get_sub_emitter_keep_velocity" + }, + { + "type": "bool", + "name": "attractor_interaction_enabled", + "setter": "set_attractor_interaction_enabled", + "getter": "is_attractor_interaction_enabled" + }, + { + "type": "int", + "name": "collision_mode", + "setter": "set_collision_mode", + "getter": "get_collision_mode" + }, + { + "type": "float", + "name": "collision_friction", + "setter": "set_collision_friction", + "getter": "get_collision_friction" + }, + { + "type": "float", + "name": "collision_bounce", + "setter": "set_collision_bounce", + "getter": "get_collision_bounce" + }, + { + "type": "bool", + "name": "collision_use_scale", + "setter": "set_collision_use_scale", + "getter": "is_collision_using_scale" + } + ] + }, + { + "name": "Path2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659985499, + "arguments": [ + { + "name": "curve", + "type": "Curve2D" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 660369445, + "return_value": { + "type": "Curve2D" + } + } + ], + "properties": [ + { + "type": "Curve2D", + "name": "curve", + "setter": "set_curve", + "getter": "get_curve" + } + ] + }, + { + "name": "Path3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408955118, + "arguments": [ + { + "name": "curve", + "type": "Curve3D" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4244715212, + "return_value": { + "type": "Curve3D" + } + } + ], + "signals": [ + { + "name": "curve_changed" + } + ], + "properties": [ + { + "type": "Curve3D", + "name": "curve", + "setter": "set_curve", + "getter": "get_curve" + } + ] + }, + { + "name": "PathFollow2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_h_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "h_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_h_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_v_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "v_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_v_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_progress_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_progress_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rotates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_rotating", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cubic_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_cubic_interpolation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_lookahead", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "lookahead", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lookahead", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "progress", + "setter": "set_progress", + "getter": "get_progress" + }, + { + "type": "float", + "name": "progress_ratio", + "setter": "set_progress_ratio", + "getter": "get_progress_ratio" + }, + { + "type": "float", + "name": "h_offset", + "setter": "set_h_offset", + "getter": "get_h_offset" + }, + { + "type": "float", + "name": "v_offset", + "setter": "set_v_offset", + "getter": "get_v_offset" + }, + { + "type": "bool", + "name": "rotates", + "setter": "set_rotates", + "getter": "is_rotating" + }, + { + "type": "bool", + "name": "cubic_interp", + "setter": "set_cubic_interpolation", + "getter": "get_cubic_interpolation" + }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, + { + "type": "float", + "name": "lookahead", + "setter": "set_lookahead", + "getter": "get_lookahead" + } + ] + }, + { + "name": "PathFollow3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "enums": [ + { + "name": "RotationMode", + "is_bitfield": false, + "values": [ + { + "name": "ROTATION_NONE", + "value": 0 + }, + { + "name": "ROTATION_Y", + "value": 1 + }, + { + "name": "ROTATION_XY", + "value": 2 + }, + { + "name": "ROTATION_XYZ", + "value": 3 + }, + { + "name": "ROTATION_ORIENTED", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "progress", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_h_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "h_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_h_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_v_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "v_offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_v_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_progress_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_progress_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rotation_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1640311967, + "arguments": [ + { + "name": "rotation_mode", + "type": "enum::PathFollow3D.RotationMode" + } + ] + }, + { + "name": "get_rotation_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814010545, + "return_value": { + "type": "enum::PathFollow3D.RotationMode" + } + }, + { + "name": "set_cubic_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_cubic_interpolation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "has_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tilt_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_tilt_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "correct_posture", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2686588690, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "rotation_mode", + "type": "enum::PathFollow3D.RotationMode" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "progress", + "setter": "set_progress", + "getter": "get_progress" + }, + { + "type": "float", + "name": "progress_ratio", + "setter": "set_progress_ratio", + "getter": "get_progress_ratio" + }, + { + "type": "float", + "name": "h_offset", + "setter": "set_h_offset", + "getter": "get_h_offset" + }, + { + "type": "float", + "name": "v_offset", + "setter": "set_v_offset", + "getter": "get_v_offset" + }, + { + "type": "int", + "name": "rotation_mode", + "setter": "set_rotation_mode", + "getter": "get_rotation_mode" + }, + { + "type": "bool", + "name": "cubic_interp", + "setter": "set_cubic_interpolation", + "getter": "get_cubic_interpolation" + }, + { + "type": "bool", + "name": "loop", + "setter": "set_loop", + "getter": "has_loop" + }, + { + "type": "bool", + "name": "tilt_enabled", + "setter": "set_tilt_enabled", + "getter": "is_tilt_enabled" + } + ] + }, + { + "name": "Performance", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "Monitor", + "is_bitfield": false, + "values": [ + { + "name": "TIME_FPS", + "value": 0 + }, + { + "name": "TIME_PROCESS", + "value": 1 + }, + { + "name": "TIME_PHYSICS_PROCESS", + "value": 2 + }, + { + "name": "TIME_NAVIGATION_PROCESS", + "value": 3 + }, + { + "name": "MEMORY_STATIC", + "value": 4 + }, + { + "name": "MEMORY_STATIC_MAX", + "value": 5 + }, + { + "name": "MEMORY_MESSAGE_BUFFER_MAX", + "value": 6 + }, + { + "name": "OBJECT_COUNT", + "value": 7 + }, + { + "name": "OBJECT_RESOURCE_COUNT", + "value": 8 + }, + { + "name": "OBJECT_NODE_COUNT", + "value": 9 + }, + { + "name": "OBJECT_ORPHAN_NODE_COUNT", + "value": 10 + }, + { + "name": "RENDER_TOTAL_OBJECTS_IN_FRAME", + "value": 11 + }, + { + "name": "RENDER_TOTAL_PRIMITIVES_IN_FRAME", + "value": 12 + }, + { + "name": "RENDER_TOTAL_DRAW_CALLS_IN_FRAME", + "value": 13 + }, + { + "name": "RENDER_VIDEO_MEM_USED", + "value": 14 + }, + { + "name": "RENDER_TEXTURE_MEM_USED", + "value": 15 + }, + { + "name": "RENDER_BUFFER_MEM_USED", + "value": 16 + }, + { + "name": "PHYSICS_2D_ACTIVE_OBJECTS", + "value": 17 + }, + { + "name": "PHYSICS_2D_COLLISION_PAIRS", + "value": 18 + }, + { + "name": "PHYSICS_2D_ISLAND_COUNT", + "value": 19 + }, + { + "name": "PHYSICS_3D_ACTIVE_OBJECTS", + "value": 20 + }, + { + "name": "PHYSICS_3D_COLLISION_PAIRS", + "value": 21 + }, + { + "name": "PHYSICS_3D_ISLAND_COUNT", + "value": 22 + }, + { + "name": "AUDIO_OUTPUT_LATENCY", + "value": 23 + }, + { + "name": "NAVIGATION_ACTIVE_MAPS", + "value": 24 + }, + { + "name": "NAVIGATION_REGION_COUNT", + "value": 25 + }, + { + "name": "NAVIGATION_AGENT_COUNT", + "value": 26 + }, + { + "name": "NAVIGATION_LINK_COUNT", + "value": 27 + }, + { + "name": "NAVIGATION_POLYGON_COUNT", + "value": 28 + }, + { + "name": "NAVIGATION_EDGE_COUNT", + "value": 29 + }, + { + "name": "NAVIGATION_EDGE_MERGE_COUNT", + "value": 30 + }, + { + "name": "NAVIGATION_EDGE_CONNECTION_COUNT", + "value": 31 + }, + { + "name": "NAVIGATION_EDGE_FREE_COUNT", + "value": 32 + }, + { + "name": "MONITOR_MAX", + "value": 33 + } + ] + } + ], + "methods": [ + { + "name": "get_monitor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1943275655, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "monitor", + "type": "enum::Performance.Monitor" + } + ] + }, + { + "name": "add_custom_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2865980031, + "arguments": [ + { + "name": "id", + "type": "StringName" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "arguments", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "remove_custom_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "id", + "type": "StringName" + } + ] + }, + { + "name": "has_custom_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2041966384, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "StringName" + } + ] + }, + { + "name": "get_custom_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "id", + "type": "StringName" + } + ] + }, + { + "name": "get_monitor_modification_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_custom_monitor_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::StringName" + } + } + ] + }, + { + "name": "PhysicalBone2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RigidBody2D", + "api_type": "core", + "methods": [ + { + "name": "get_joint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3582132112, + "return_value": { + "type": "Joint2D" + } + }, + { + "name": "get_auto_configure_joint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_configure_joint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "auto_configure_joint", + "type": "bool" + } + ] + }, + { + "name": "set_simulate_physics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "simulate_physics", + "type": "bool" + } + ] + }, + { + "name": "get_simulate_physics", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_simulating_physics", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bone2d_nodepath", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_bone2d_nodepath", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_bone2d_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone2d_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_follow_bone_when_simulating", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "follow_bone", + "type": "bool" + } + ] + }, + { + "name": "get_follow_bone_when_simulating", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "bone2d_nodepath", + "setter": "set_bone2d_nodepath", + "getter": "get_bone2d_nodepath" + }, + { + "type": "int", + "name": "bone2d_index", + "setter": "set_bone2d_index", + "getter": "get_bone2d_index" + }, + { + "type": "bool", + "name": "auto_configure_joint", + "setter": "set_auto_configure_joint", + "getter": "get_auto_configure_joint" + }, + { + "type": "bool", + "name": "simulate_physics", + "setter": "set_simulate_physics", + "getter": "get_simulate_physics" + }, + { + "type": "bool", + "name": "follow_bone_when_simulating", + "setter": "set_follow_bone_when_simulating", + "getter": "get_follow_bone_when_simulating" + } + ] + }, + { + "name": "PhysicalBone3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody3D", + "api_type": "core", + "enums": [ + { + "name": "DampMode", + "is_bitfield": false, + "values": [ + { + "name": "DAMP_MODE_COMBINE", + "value": 0 + }, + { + "name": "DAMP_MODE_REPLACE", + "value": 1 + } + ] + }, + { + "name": "JointType", + "is_bitfield": false, + "values": [ + { + "name": "JOINT_TYPE_NONE", + "value": 0 + }, + { + "name": "JOINT_TYPE_PIN", + "value": 1 + }, + { + "name": "JOINT_TYPE_CONE", + "value": 2 + }, + { + "name": "JOINT_TYPE_HINGE", + "value": 3 + }, + { + "name": "JOINT_TYPE_SLIDER", + "value": 4 + }, + { + "name": "JOINT_TYPE_6DOF", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "_integrate_forces", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "state", + "type": "PhysicsDirectBodyState3D" + } + ] + }, + { + "name": "apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "set_joint_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2289552604, + "arguments": [ + { + "name": "joint_type", + "type": "enum::PhysicalBone3D.JointType" + } + ] + }, + { + "name": "get_joint_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 931347320, + "return_value": { + "type": "enum::PhysicalBone3D.JointType" + } + }, + { + "name": "set_joint_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "offset", + "type": "Transform3D" + } + ] + }, + { + "name": "get_joint_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_joint_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "euler", + "type": "Vector3" + } + ] + }, + { + "name": "get_joint_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_body_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "offset", + "type": "Transform3D" + } + ] + }, + { + "name": "get_body_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_simulate_physics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_simulating_physics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_bone_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_friction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "friction", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_friction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bounce", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bounce", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bounce", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_gravity_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gravity_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1244972221, + "arguments": [ + { + "name": "linear_damp_mode", + "type": "enum::PhysicalBone3D.DampMode" + } + ] + }, + { + "name": "get_linear_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205884699, + "return_value": { + "type": "enum::PhysicalBone3D.DampMode" + } + }, + { + "name": "set_angular_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1244972221, + "arguments": [ + { + "name": "angular_damp_mode", + "type": "enum::PhysicalBone3D.DampMode" + } + ] + }, + { + "name": "get_angular_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205884699, + "return_value": { + "type": "enum::PhysicalBone3D.DampMode" + } + }, + { + "name": "set_linear_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_angular_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "linear_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "angular_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_use_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_can_sleep", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "able_to_sleep", + "type": "bool" + } + ] + }, + { + "name": "is_able_to_sleep", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "joint_type", + "setter": "set_joint_type", + "getter": "get_joint_type" + }, + { + "type": "Transform3D", + "name": "joint_offset", + "setter": "set_joint_offset", + "getter": "get_joint_offset" + }, + { + "type": "Vector3", + "name": "joint_rotation", + "setter": "set_joint_rotation", + "getter": "get_joint_rotation" + }, + { + "type": "Transform3D", + "name": "body_offset", + "setter": "set_body_offset", + "getter": "get_body_offset" + }, + { + "type": "float", + "name": "mass", + "setter": "set_mass", + "getter": "get_mass" + }, + { + "type": "float", + "name": "friction", + "setter": "set_friction", + "getter": "get_friction" + }, + { + "type": "float", + "name": "bounce", + "setter": "set_bounce", + "getter": "get_bounce" + }, + { + "type": "float", + "name": "gravity_scale", + "setter": "set_gravity_scale", + "getter": "get_gravity_scale" + }, + { + "type": "bool", + "name": "custom_integrator", + "setter": "set_use_custom_integrator", + "getter": "is_using_custom_integrator" + }, + { + "type": "int", + "name": "linear_damp_mode", + "setter": "set_linear_damp_mode", + "getter": "get_linear_damp_mode" + }, + { + "type": "float", + "name": "linear_damp", + "setter": "set_linear_damp", + "getter": "get_linear_damp" + }, + { + "type": "int", + "name": "angular_damp_mode", + "setter": "set_angular_damp_mode", + "getter": "get_angular_damp_mode" + }, + { + "type": "float", + "name": "angular_damp", + "setter": "set_angular_damp", + "getter": "get_angular_damp" + }, + { + "type": "Vector3", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "Vector3", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "bool", + "name": "can_sleep", + "setter": "set_can_sleep", + "getter": "is_able_to_sleep" + } + ] + }, + { + "name": "PhysicalSkyMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "methods": [ + { + "name": "set_rayleigh_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rayleigh", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_rayleigh_coefficient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rayleigh_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_rayleigh_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_mie_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mie", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mie_coefficient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_mie_eccentricity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "eccentricity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mie_eccentricity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_mie_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_mie_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_turbidity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "turbidity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_turbidity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sun_disk_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sun_disk_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ground_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_ground_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_debanding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_debanding", + "type": "bool" + } + ] + }, + { + "name": "get_use_debanding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_night_sky", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "night_sky", + "type": "Texture2D" + } + ] + }, + { + "name": "get_night_sky", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "properties": [ + { + "type": "float", + "name": "rayleigh_coefficient", + "setter": "set_rayleigh_coefficient", + "getter": "get_rayleigh_coefficient" + }, + { + "type": "Color", + "name": "rayleigh_color", + "setter": "set_rayleigh_color", + "getter": "get_rayleigh_color" + }, + { + "type": "float", + "name": "mie_coefficient", + "setter": "set_mie_coefficient", + "getter": "get_mie_coefficient" + }, + { + "type": "float", + "name": "mie_eccentricity", + "setter": "set_mie_eccentricity", + "getter": "get_mie_eccentricity" + }, + { + "type": "Color", + "name": "mie_color", + "setter": "set_mie_color", + "getter": "get_mie_color" + }, + { + "type": "float", + "name": "turbidity", + "setter": "set_turbidity", + "getter": "get_turbidity" + }, + { + "type": "float", + "name": "sun_disk_scale", + "setter": "set_sun_disk_scale", + "getter": "get_sun_disk_scale" + }, + { + "type": "Color", + "name": "ground_color", + "setter": "set_ground_color", + "getter": "get_ground_color" + }, + { + "type": "float", + "name": "energy_multiplier", + "setter": "set_energy_multiplier", + "getter": "get_energy_multiplier" + }, + { + "type": "bool", + "name": "use_debanding", + "setter": "set_use_debanding", + "getter": "get_use_debanding" + }, + { + "type": "Texture2D", + "name": "night_sky", + "setter": "set_night_sky", + "getter": "get_night_sky" + } + ] + }, + { + "name": "PhysicsBody2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "CollisionObject2D", + "api_type": "core", + "methods": [ + { + "name": "move_and_collide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3198110832, + "return_value": { + "type": "KinematicCollision2D" + }, + "arguments": [ + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "test_only", + "type": "bool", + "default_value": "false" + }, + { + "name": "safe_margin", + "type": "float", + "meta": "float", + "default_value": "0.08" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "test_move", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1369208982, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "collision", + "type": "KinematicCollision2D", + "default_value": "null" + }, + { + "name": "safe_margin", + "type": "float", + "meta": "float", + "default_value": "0.08" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_collision_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::PhysicsBody2D" + } + }, + { + "name": "add_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "remove_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + } + ] + }, + { + "name": "PhysicsBody3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "CollisionObject3D", + "api_type": "core", + "methods": [ + { + "name": "move_and_collide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1140990067, + "return_value": { + "type": "KinematicCollision3D" + }, + "arguments": [ + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "test_only", + "type": "bool", + "default_value": "false" + }, + { + "name": "safe_margin", + "type": "float", + "meta": "float", + "default_value": "0.001" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + }, + { + "name": "max_collisions", + "type": "int", + "meta": "int32", + "default_value": "1" + } + ] + }, + { + "name": "test_move", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2082761915, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "collision", + "type": "KinematicCollision3D", + "default_value": "null" + }, + { + "name": "safe_margin", + "type": "float", + "meta": "float", + "default_value": "0.001" + }, + { + "name": "recovery_as_collision", + "type": "bool", + "default_value": "false" + }, + { + "name": "max_collisions", + "type": "int", + "meta": "int32", + "default_value": "1" + } + ] + }, + { + "name": "set_axis_lock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1787895195, + "arguments": [ + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + }, + { + "name": "lock", + "type": "bool" + } + ] + }, + { + "name": "get_axis_lock", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2264617709, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + } + ] + }, + { + "name": "get_collision_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::PhysicsBody3D" + } + }, + { + "name": "add_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "remove_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "axis_lock_linear_x", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 1 + }, + { + "type": "bool", + "name": "axis_lock_linear_y", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 2 + }, + { + "type": "bool", + "name": "axis_lock_linear_z", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 4 + }, + { + "type": "bool", + "name": "axis_lock_angular_x", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 8 + }, + { + "type": "bool", + "name": "axis_lock_angular_y", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 16 + }, + { + "type": "bool", + "name": "axis_lock_angular_z", + "setter": "set_axis_lock", + "getter": "get_axis_lock", + "index": 32 + } + ] + }, + { + "name": "PhysicsDirectBodyState2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_total_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_total_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_total_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_center_of_mass_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_inverse_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_inverse_inertia", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "velocity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_velocity_at_local_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector2" + } + ] + }, + { + "name": "apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "impulse", + "type": "Vector2" + } + ] + }, + { + "name": "apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "impulse", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "impulse", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3862383994, + "arguments": [ + { + "name": "force", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3862383994, + "arguments": [ + { + "name": "force", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sleep_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_sleeping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_contact_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_contact_local_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_local_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_object", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_velocity_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_impulse", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "integrate_forces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_space_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2506717822, + "return_value": { + "type": "PhysicsDirectSpaceState2D" + } + } + ], + "properties": [ + { + "type": "float", + "name": "step", + "getter": "get_step" + }, + { + "type": "float", + "name": "inverse_mass", + "getter": "get_inverse_mass" + }, + { + "type": "float", + "name": "inverse_inertia", + "getter": "get_inverse_inertia" + }, + { + "type": "float", + "name": "total_angular_damp", + "getter": "get_total_angular_damp" + }, + { + "type": "float", + "name": "total_linear_damp", + "getter": "get_total_linear_damp" + }, + { + "type": "Vector2", + "name": "total_gravity", + "getter": "get_total_gravity" + }, + { + "type": "Vector2", + "name": "center_of_mass", + "getter": "get_center_of_mass" + }, + { + "type": "Vector2", + "name": "center_of_mass_local", + "getter": "get_center_of_mass_local" + }, + { + "type": "float", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "Vector2", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "bool", + "name": "sleeping", + "setter": "set_sleep_state", + "getter": "is_sleeping" + }, + { + "type": "Transform2D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + } + ] + }, + { + "name": "PhysicsDirectBodyState2DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectBodyState2D", + "api_type": "core", + "methods": [ + { + "name": "_get_total_gravity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_total_linear_damp", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_total_angular_damp", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_center_of_mass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_center_of_mass_local", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_inverse_mass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_inverse_inertia", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_set_linear_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "_get_linear_velocity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_set_angular_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_get_angular_velocity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_get_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "_get_velocity_at_local_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector2" + } + ] + }, + { + "name": "_apply_central_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector2" + } + ] + }, + { + "name": "_apply_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_apply_torque_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_apply_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_apply_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_apply_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_add_constant_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_add_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_add_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_set_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_get_constant_force", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_set_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_get_constant_torque", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_set_sleep_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_is_sleeping", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_contact_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_contact_local_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_local_normal", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_local_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_object", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_velocity_at_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_impulse", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_step", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_integrate_forces", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_space_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState2D" + } + } + ] + }, + { + "name": "PhysicsDirectBodyState3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_total_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_total_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_total_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_center_of_mass_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_principal_inertia_axes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2716978435, + "return_value": { + "type": "Basis" + } + }, + { + "name": "get_inverse_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_inverse_inertia", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_inverse_inertia_tensor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2716978435, + "return_value": { + "type": "Basis" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_velocity_at_local_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 192990374, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector3" + } + ] + }, + { + "name": "apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2007698547, + "arguments": [ + { + "name": "impulse", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2007698547, + "arguments": [ + { + "name": "force", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2007698547, + "arguments": [ + { + "name": "force", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_sleep_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_sleeping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_contact_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_contact_local_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_local_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_impulse", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_object", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_contact_collider_velocity_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "integrate_forces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_space_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2069328350, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + } + } + ], + "properties": [ + { + "type": "float", + "name": "step", + "getter": "get_step" + }, + { + "type": "float", + "name": "inverse_mass", + "getter": "get_inverse_mass" + }, + { + "type": "float", + "name": "total_angular_damp", + "getter": "get_total_angular_damp" + }, + { + "type": "float", + "name": "total_linear_damp", + "getter": "get_total_linear_damp" + }, + { + "type": "Vector3", + "name": "inverse_inertia", + "getter": "get_inverse_inertia" + }, + { + "type": "Basis", + "name": "inverse_inertia_tensor", + "getter": "get_inverse_inertia_tensor" + }, + { + "type": "Vector3", + "name": "total_gravity", + "getter": "get_total_gravity" + }, + { + "type": "Vector3", + "name": "center_of_mass", + "getter": "get_center_of_mass" + }, + { + "type": "Vector3", + "name": "center_of_mass_local", + "getter": "get_center_of_mass_local" + }, + { + "type": "Basis", + "name": "principal_inertia_axes", + "getter": "get_principal_inertia_axes" + }, + { + "type": "Vector3", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "Vector3", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "bool", + "name": "sleeping", + "setter": "set_sleep_state", + "getter": "is_sleeping" + }, + { + "type": "Transform3D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + } + ] + }, + { + "name": "PhysicsDirectBodyState3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectBodyState3D", + "api_type": "core", + "methods": [ + { + "name": "_get_total_gravity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_total_linear_damp", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_total_angular_damp", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_center_of_mass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_center_of_mass_local", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_principal_inertia_axes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Basis" + } + }, + { + "name": "_get_inverse_mass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_get_inverse_inertia", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_get_inverse_inertia_tensor", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Basis" + } + }, + { + "name": "_set_linear_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_get_linear_velocity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_angular_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_get_angular_velocity", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_get_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "_get_velocity_at_local_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_central_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_torque_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_apply_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_add_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_set_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_get_constant_force", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_get_constant_torque", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "_set_sleep_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_is_sleeping", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_contact_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_contact_local_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_local_normal", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_impulse", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_local_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_object", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_contact_collider_velocity_at_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "contact_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_step", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "_integrate_forces", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_space_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + } + } + ] + }, + { + "name": "PhysicsDirectSpaceState2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "intersect_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3278207904, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsPointQueryParameters2D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "intersect_ray", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1590275562, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsRayQueryParameters2D" + } + ] + }, + { + "name": "intersect_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3803848594, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters2D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "cast_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711275086, + "return_value": { + "type": "PackedFloat32Array" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters2D" + } + ] + }, + { + "name": "collide_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3803848594, + "return_value": { + "type": "typedarray::PackedVector2Array" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters2D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "get_rest_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2803666496, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters2D" + } + ] + } + ] + }, + { + "name": "PhysicsDirectSpaceState2DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectSpaceState2D", + "api_type": "core", + "methods": [ + { + "name": "_intersect_ray", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "hit_from_inside", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer2DExtensionRayResult*" + } + ] + }, + { + "name": "_intersect_point", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "canvas_instance_id", + "type": "int", + "meta": "uint64" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "PhysicsServer2DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_intersect_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer2DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_cast_motion", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "closest_safe", + "type": "float*" + }, + { + "name": "closest_unsafe", + "type": "float*" + } + ] + }, + { + "name": "_collide_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "void*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + }, + { + "name": "result_count", + "type": "int32_t*" + } + ] + }, + { + "name": "_rest_info", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "rest_info", + "type": "PhysicsServer2DExtensionShapeRestInfo*" + } + ] + }, + { + "name": "is_body_excluded_from_query", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + } + ] + }, + { + "name": "PhysicsDirectSpaceState3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "intersect_point", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 45993382, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsPointQueryParameters3D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "intersect_ray", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3957970750, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsRayQueryParameters3D" + } + ] + }, + { + "name": "intersect_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 550215980, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters3D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "cast_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1778757334, + "return_value": { + "type": "PackedFloat32Array" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters3D" + } + ] + }, + { + "name": "collide_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 550215980, + "return_value": { + "type": "typedarray::PackedVector3Array" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters3D" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32", + "default_value": "32" + } + ] + }, + { + "name": "get_rest_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1376751592, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "parameters", + "type": "PhysicsShapeQueryParameters3D" + } + ] + } + ] + }, + { + "name": "PhysicsDirectSpaceState3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsDirectSpaceState3D", + "api_type": "core", + "methods": [ + { + "name": "_intersect_ray", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "hit_from_inside", + "type": "bool" + }, + { + "name": "hit_back_faces", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer3DExtensionRayResult*" + } + ] + }, + { + "name": "_intersect_point", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector3" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "PhysicsServer3DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_intersect_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "result_count", + "type": "PhysicsServer3DExtensionShapeResult*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_cast_motion", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "closest_safe", + "type": "float*" + }, + { + "name": "closest_unsafe", + "type": "float*" + }, + { + "name": "info", + "type": "PhysicsServer3DExtensionShapeRestInfo*" + } + ] + }, + { + "name": "_collide_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "results", + "type": "void*" + }, + { + "name": "max_results", + "type": "int", + "meta": "int32" + }, + { + "name": "result_count", + "type": "int32_t*" + } + ] + }, + { + "name": "_rest_info", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + }, + { + "name": "collide_with_bodies", + "type": "bool" + }, + { + "name": "collide_with_areas", + "type": "bool" + }, + { + "name": "rest_info", + "type": "PhysicsServer3DExtensionShapeRestInfo*" + } + ] + }, + { + "name": "_get_closest_point_to_object_volume", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "object", + "type": "RID" + }, + { + "name": "point", + "type": "Vector3" + } + ] + }, + { + "name": "is_body_excluded_from_query", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + } + ] + }, + { + "name": "PhysicsMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_friction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "friction", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_friction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rough", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "rough", + "type": "bool" + } + ] + }, + { + "name": "is_rough", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bounce", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bounce", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bounce", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_absorbent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "absorbent", + "type": "bool" + } + ] + }, + { + "name": "is_absorbent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "friction", + "setter": "set_friction", + "getter": "get_friction" + }, + { + "type": "bool", + "name": "rough", + "setter": "set_rough", + "getter": "is_rough" + }, + { + "type": "float", + "name": "bounce", + "setter": "set_bounce", + "getter": "get_bounce" + }, + { + "type": "bool", + "name": "absorbent", + "setter": "set_absorbent", + "getter": "is_absorbent" + } + ] + }, + { + "name": "PhysicsPointQueryParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_canvas_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "canvas_instance_id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_canvas_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "int", + "name": "canvas_instance_id", + "setter": "set_canvas_instance_id", + "getter": "get_canvas_instance_id" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + } + ] + }, + { + "name": "PhysicsPointQueryParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + } + ] + }, + { + "name": "PhysicsRayQueryParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "create", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 1118143851, + "return_value": { + "type": "PhysicsRayQueryParameters2D" + }, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32", + "default_value": "4294967295" + }, + { + "name": "exclude", + "type": "typedarray::RID", + "default_value": "Array[RID]([])" + } + ] + }, + { + "name": "set_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "from", + "type": "Vector2" + } + ] + }, + { + "name": "get_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_to", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "get_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hit_from_inside", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_from_inside_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "from", + "setter": "set_from", + "getter": "get_from" + }, + { + "type": "Vector2", + "name": "to", + "setter": "set_to", + "getter": "get_to" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "hit_from_inside", + "setter": "set_hit_from_inside", + "getter": "is_hit_from_inside_enabled" + } + ] + }, + { + "name": "PhysicsRayQueryParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "create", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 680321959, + "return_value": { + "type": "PhysicsRayQueryParameters3D" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "collision_mask", + "type": "int", + "meta": "uint32", + "default_value": "4294967295" + }, + { + "name": "exclude", + "type": "typedarray::RID", + "default_value": "Array[RID]([])" + } + ] + }, + { + "name": "set_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "from", + "type": "Vector3" + } + ] + }, + { + "name": "get_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_to", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "to", + "type": "Vector3" + } + ] + }, + { + "name": "get_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hit_from_inside", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_from_inside_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hit_back_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_back_faces_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "from", + "setter": "set_from", + "getter": "get_from" + }, + { + "type": "Vector3", + "name": "to", + "setter": "set_to", + "getter": "get_to" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "hit_from_inside", + "setter": "set_hit_from_inside", + "getter": "is_hit_from_inside_enabled" + }, + { + "type": "bool", + "name": "hit_back_faces", + "setter": "set_hit_back_faces", + "getter": "is_hit_back_faces_enabled" + } + ] + }, + { + "name": "PhysicsServer2D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "SpaceParameter", + "is_bitfield": false, + "values": [ + { + "name": "SPACE_PARAM_CONTACT_RECYCLE_RADIUS", + "value": 0 + }, + { + "name": "SPACE_PARAM_CONTACT_MAX_SEPARATION", + "value": 1 + }, + { + "name": "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION", + "value": 2 + }, + { + "name": "SPACE_PARAM_CONTACT_DEFAULT_BIAS", + "value": 3 + }, + { + "name": "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", + "value": 4 + }, + { + "name": "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", + "value": 5 + }, + { + "name": "SPACE_PARAM_BODY_TIME_TO_SLEEP", + "value": 6 + }, + { + "name": "SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS", + "value": 7 + }, + { + "name": "SPACE_PARAM_SOLVER_ITERATIONS", + "value": 8 + } + ] + }, + { + "name": "ShapeType", + "is_bitfield": false, + "values": [ + { + "name": "SHAPE_WORLD_BOUNDARY", + "value": 0 + }, + { + "name": "SHAPE_SEPARATION_RAY", + "value": 1 + }, + { + "name": "SHAPE_SEGMENT", + "value": 2 + }, + { + "name": "SHAPE_CIRCLE", + "value": 3 + }, + { + "name": "SHAPE_RECTANGLE", + "value": 4 + }, + { + "name": "SHAPE_CAPSULE", + "value": 5 + }, + { + "name": "SHAPE_CONVEX_POLYGON", + "value": 6 + }, + { + "name": "SHAPE_CONCAVE_POLYGON", + "value": 7 + }, + { + "name": "SHAPE_CUSTOM", + "value": 8 + } + ] + }, + { + "name": "AreaParameter", + "is_bitfield": false, + "values": [ + { + "name": "AREA_PARAM_GRAVITY_OVERRIDE_MODE", + "value": 0 + }, + { + "name": "AREA_PARAM_GRAVITY", + "value": 1 + }, + { + "name": "AREA_PARAM_GRAVITY_VECTOR", + "value": 2 + }, + { + "name": "AREA_PARAM_GRAVITY_IS_POINT", + "value": 3 + }, + { + "name": "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE", + "value": 4 + }, + { + "name": "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE", + "value": 5 + }, + { + "name": "AREA_PARAM_LINEAR_DAMP", + "value": 6 + }, + { + "name": "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE", + "value": 7 + }, + { + "name": "AREA_PARAM_ANGULAR_DAMP", + "value": 8 + }, + { + "name": "AREA_PARAM_PRIORITY", + "value": 9 + } + ] + }, + { + "name": "AreaSpaceOverrideMode", + "is_bitfield": false, + "values": [ + { + "name": "AREA_SPACE_OVERRIDE_DISABLED", + "value": 0 + }, + { + "name": "AREA_SPACE_OVERRIDE_COMBINE", + "value": 1 + }, + { + "name": "AREA_SPACE_OVERRIDE_COMBINE_REPLACE", + "value": 2 + }, + { + "name": "AREA_SPACE_OVERRIDE_REPLACE", + "value": 3 + }, + { + "name": "AREA_SPACE_OVERRIDE_REPLACE_COMBINE", + "value": 4 + } + ] + }, + { + "name": "BodyMode", + "is_bitfield": false, + "values": [ + { + "name": "BODY_MODE_STATIC", + "value": 0 + }, + { + "name": "BODY_MODE_KINEMATIC", + "value": 1 + }, + { + "name": "BODY_MODE_RIGID", + "value": 2 + }, + { + "name": "BODY_MODE_RIGID_LINEAR", + "value": 3 + } + ] + }, + { + "name": "BodyParameter", + "is_bitfield": false, + "values": [ + { + "name": "BODY_PARAM_BOUNCE", + "value": 0 + }, + { + "name": "BODY_PARAM_FRICTION", + "value": 1 + }, + { + "name": "BODY_PARAM_MASS", + "value": 2 + }, + { + "name": "BODY_PARAM_INERTIA", + "value": 3 + }, + { + "name": "BODY_PARAM_CENTER_OF_MASS", + "value": 4 + }, + { + "name": "BODY_PARAM_GRAVITY_SCALE", + "value": 5 + }, + { + "name": "BODY_PARAM_LINEAR_DAMP_MODE", + "value": 6 + }, + { + "name": "BODY_PARAM_ANGULAR_DAMP_MODE", + "value": 7 + }, + { + "name": "BODY_PARAM_LINEAR_DAMP", + "value": 8 + }, + { + "name": "BODY_PARAM_ANGULAR_DAMP", + "value": 9 + }, + { + "name": "BODY_PARAM_MAX", + "value": 10 + } + ] + }, + { + "name": "BodyDampMode", + "is_bitfield": false, + "values": [ + { + "name": "BODY_DAMP_MODE_COMBINE", + "value": 0 + }, + { + "name": "BODY_DAMP_MODE_REPLACE", + "value": 1 + } + ] + }, + { + "name": "BodyState", + "is_bitfield": false, + "values": [ + { + "name": "BODY_STATE_TRANSFORM", + "value": 0 + }, + { + "name": "BODY_STATE_LINEAR_VELOCITY", + "value": 1 + }, + { + "name": "BODY_STATE_ANGULAR_VELOCITY", + "value": 2 + }, + { + "name": "BODY_STATE_SLEEPING", + "value": 3 + }, + { + "name": "BODY_STATE_CAN_SLEEP", + "value": 4 + } + ] + }, + { + "name": "JointType", + "is_bitfield": false, + "values": [ + { + "name": "JOINT_TYPE_PIN", + "value": 0 + }, + { + "name": "JOINT_TYPE_GROOVE", + "value": 1 + }, + { + "name": "JOINT_TYPE_DAMPED_SPRING", + "value": 2 + }, + { + "name": "JOINT_TYPE_MAX", + "value": 3 + } + ] + }, + { + "name": "JointParam", + "is_bitfield": false, + "values": [ + { + "name": "JOINT_PARAM_BIAS", + "value": 0 + }, + { + "name": "JOINT_PARAM_MAX_BIAS", + "value": 1 + }, + { + "name": "JOINT_PARAM_MAX_FORCE", + "value": 2 + } + ] + }, + { + "name": "PinJointParam", + "is_bitfield": false, + "values": [ + { + "name": "PIN_JOINT_SOFTNESS", + "value": 0 + } + ] + }, + { + "name": "DampedSpringParam", + "is_bitfield": false, + "values": [ + { + "name": "DAMPED_SPRING_REST_LENGTH", + "value": 0 + }, + { + "name": "DAMPED_SPRING_STIFFNESS", + "value": 1 + }, + { + "name": "DAMPED_SPRING_DAMPING", + "value": 2 + } + ] + }, + { + "name": "CCDMode", + "is_bitfield": false, + "values": [ + { + "name": "CCD_MODE_DISABLED", + "value": 0 + }, + { + "name": "CCD_MODE_CAST_RAY", + "value": 1 + }, + { + "name": "CCD_MODE_CAST_SHAPE", + "value": 2 + } + ] + }, + { + "name": "AreaBodyStatus", + "is_bitfield": false, + "values": [ + { + "name": "AREA_BODY_ADDED", + "value": 0 + }, + { + "name": "AREA_BODY_REMOVED", + "value": 1 + } + ] + }, + { + "name": "ProcessInfo", + "is_bitfield": false, + "values": [ + { + "name": "INFO_ACTIVE_OBJECTS", + "value": 0 + }, + { + "name": "INFO_COLLISION_PAIRS", + "value": 1 + }, + { + "name": "INFO_ISLAND_COUNT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "world_boundary_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "separation_ray_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "segment_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "circle_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "rectangle_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "capsule_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "convex_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "concave_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "shape_set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175752987, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "shape_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1240598777, + "return_value": { + "type": "enum::PhysicsServer2D.ShapeType" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "shape_get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4171304767, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "space_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "space_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "space_is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "space_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 949194586, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.SpaceParameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "space_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 874111783, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.SpaceParameter" + } + ] + }, + { + "name": "space_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160173886, + "return_value": { + "type": "PhysicsDirectSpaceState2D" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "area_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "area_set_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "area_get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 754862190, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D", + "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "area_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "area_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 736082694, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "area_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "area_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1324854622, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "area_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "area_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1257146028, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.AreaParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "area_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "area_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3047435120, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.AreaParameter" + } + ] + }, + { + "name": "area_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 213527486, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "area_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_attach_canvas_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "area_get_canvas_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "area_set_area_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "area_set_monitorable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "monitorable", + "type": "bool" + } + ] + }, + { + "name": "body_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "body_set_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "body_get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1658067650, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer2D.BodyMode" + } + ] + }, + { + "name": "body_get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3261702585, + "return_value": { + "type": "enum::PhysicsServer2D.BodyMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 754862190, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D", + "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "body_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "body_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 736082694, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "body_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1324854622, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "body_set_shape_as_one_way_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2556489974, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "body_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_attach_canvas_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "body_get_canvas_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_continuous_collision_detection_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1882257015, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer2D.CCDMode" + } + ] + }, + { + "name": "body_get_continuous_collision_detection_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2661282217, + "return_value": { + "type": "enum::PhysicsServer2D.CCDMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "body_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "body_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2715630609, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.BodyParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "body_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3208033526, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.BodyParameter" + } + ] + }, + { + "name": "body_reset_mass_properties", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706355209, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer2D.BodyState" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "body_get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4036367961, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer2D.BodyState" + } + ] + }, + { + "name": "body_apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector2" + } + ] + }, + { + "name": "body_apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 34330743, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "body_apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "body_apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 34330743, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "body_apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "body_add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 34330743, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "body_add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "body_get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_axis_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis_velocity", + "type": "Vector2" + } + ] + }, + { + "name": "body_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "body_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "body_set_max_contacts_reported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_get_max_contacts_reported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_omit_force_integration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "body_is_omitting_force_integration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_force_integration_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3059434249, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "userdata", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "body_test_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1699844009, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "parameters", + "type": "PhysicsTestMotionParameters2D" + }, + { + "name": "result", + "type": "PhysicsTestMotionResult2D", + "default_value": "null" + } + ] + }, + { + "name": "body_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1191931871, + "return_value": { + "type": "PhysicsDirectBodyState2D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "joint_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "joint_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3972556514, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.JointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4016448949, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.JointParam" + } + ] + }, + { + "name": "joint_disable_collisions_between_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "joint_is_disabled_collisions_between_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_make_pin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2288600450, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "anchor", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "joint_make_groove", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3573265764, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "groove1_a", + "type": "Vector2" + }, + { + "name": "groove2_a", + "type": "Vector2" + }, + { + "name": "anchor_b", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID", + "default_value": "" + }, + { + "name": "body_b", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "joint_make_damped_spring", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 206603952, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "anchor_a", + "type": "Vector2" + }, + { + "name": "anchor_b", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "pin_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 550574241, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.PinJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "pin_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 348281383, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.PinJointParam" + } + ] + }, + { + "name": "damped_spring_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 220564071, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.DampedSpringParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "damped_spring_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2075871277, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.DampedSpringParam" + } + ] + }, + { + "name": "joint_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4262502231, + "return_value": { + "type": "enum::PhysicsServer2D.JointType" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_process_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 576496006, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::PhysicsServer2D.ProcessInfo" + } + ] + } + ] + }, + { + "name": "PhysicsServer2DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsServer2D", + "api_type": "core", + "methods": [ + { + "name": "_world_boundary_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_separation_ray_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_segment_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_circle_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_rectangle_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_capsule_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_convex_polygon_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_concave_polygon_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_shape_set_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "_shape_set_custom_solver_bias", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_shape_get_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer2D.ShapeType" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_custom_solver_bias", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_collide", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shape_A", + "type": "RID" + }, + { + "name": "xform_A", + "type": "Transform2D" + }, + { + "name": "motion_A", + "type": "Vector2" + }, + { + "name": "shape_B", + "type": "RID" + }, + { + "name": "xform_B", + "type": "Transform2D" + }, + { + "name": "motion_B", + "type": "Vector2" + }, + { + "name": "results", + "type": "void*" + }, + { + "name": "result_max", + "type": "int", + "meta": "int32" + }, + { + "name": "result_count", + "type": "int32_t*" + } + ] + }, + { + "name": "_space_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_space_set_active", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_space_is_active", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.SpaceParameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_space_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.SpaceParameter" + } + ] + }, + { + "name": "_space_get_direct_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState2D" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_set_debug_contacts", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "max_contacts", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_space_get_contacts", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_get_contact_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_area_set_space", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_get_space", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_add_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_set_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_area_set_shape_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_area_set_shape_disabled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_get_shape_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_get_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_get_shape_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_remove_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_clear_shapes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_attach_object_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_area_get_object_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_attach_canvas_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_area_get_canvas_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.AreaParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_area_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_area_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.AreaParameter" + } + ] + }, + { + "name": "_area_get_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_collision_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_area_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_collision_mask", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_area_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_monitorable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "monitorable", + "type": "bool" + } + ] + }, + { + "name": "_area_set_pickable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "pickable", + "type": "bool" + } + ] + }, + { + "name": "_area_set_monitor_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_area_set_area_monitor_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_body_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_body_set_space", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_body_get_space", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_mode", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer2D.BodyMode" + } + ] + }, + { + "name": "_body_get_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer2D.BodyMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_add_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_set_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_body_set_shape_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_body_get_shape_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_get_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_get_shape_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_set_shape_disabled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_set_shape_as_one_way_collision", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_remove_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_clear_shapes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_attach_object_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_body_get_object_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_attach_canvas_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_body_get_canvas_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_continuous_collision_detection_mode", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer2D.CCDMode" + } + ] + }, + { + "name": "_body_get_continuous_collision_detection_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer2D.CCDMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_body_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_mask", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_body_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_priority", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_get_collision_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.BodyParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.BodyParameter" + } + ] + }, + { + "name": "_body_reset_mass_properties", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer2D.BodyState" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer2D.BodyState" + } + ] + }, + { + "name": "_body_apply_central_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector2" + } + ] + }, + { + "name": "_body_apply_torque_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_apply_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_body_apply_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_body_apply_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_body_apply_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_add_constant_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_body_add_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "_body_add_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_set_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "_body_get_constant_force", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_get_constant_torque", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_axis_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis_velocity", + "type": "Vector2" + } + ] + }, + { + "name": "_body_add_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_remove_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_get_collision_exceptions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_max_contacts_reported", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_get_max_contacts_reported", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_contacts_reported_depth_threshold", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_get_contacts_reported_depth_threshold", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_omit_force_integration", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_is_omitting_force_integration", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_state_sync_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "_body_set_force_integration_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "userdata", + "type": "Variant" + } + ] + }, + { + "name": "_body_collide_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "body_shape", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "shape_xform", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "results", + "type": "void*" + }, + { + "name": "result_max", + "type": "int", + "meta": "int32" + }, + { + "name": "result_count", + "type": "int32_t*" + } + ] + }, + { + "name": "_body_set_pickable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "pickable", + "type": "bool" + } + ] + }, + { + "name": "_body_get_direct_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectBodyState2D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_test_motion", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "from", + "type": "Transform2D" + }, + { + "name": "motion", + "type": "Vector2" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "collide_separation_ray", + "type": "bool" + }, + { + "name": "recovery_as_collision", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer2DExtensionMotionResult*" + } + ] + }, + { + "name": "_joint_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_joint_clear", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.JointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.JointParam" + } + ] + }, + { + "name": "_joint_disable_collisions_between_bodies", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "_joint_is_disabled_collisions_between_bodies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_pin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "anchor", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_groove", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "a_groove1", + "type": "Vector2" + }, + { + "name": "a_groove2", + "type": "Vector2" + }, + { + "name": "b_anchor", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_damped_spring", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "anchor_a", + "type": "Vector2" + }, + { + "name": "anchor_b", + "type": "Vector2" + }, + { + "name": "body_a", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "_pin_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.PinJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_pin_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.PinJointParam" + } + ] + }, + { + "name": "_damped_spring_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.DampedSpringParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_damped_spring_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer2D.DampedSpringParam" + } + ] + }, + { + "name": "_joint_get_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer2D.JointType" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_free_rid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "_set_active", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_init", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_step", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "step", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_sync", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_flush_queries", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_end_sync", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_finish", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_is_flushing_queries", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_process_info", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::PhysicsServer2D.ProcessInfo" + } + ] + }, + { + "name": "body_test_motion_is_excluding_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_test_motion_is_excluding_object", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "int", + "meta": "uint64" + } + ] + } + ] + }, + { + "name": "PhysicsServer2DManager", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "register_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2137474292, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "create_callback", + "type": "Callable" + } + ] + }, + { + "name": "set_default_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "PhysicsServer3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "JointType", + "is_bitfield": false, + "values": [ + { + "name": "JOINT_TYPE_PIN", + "value": 0 + }, + { + "name": "JOINT_TYPE_HINGE", + "value": 1 + }, + { + "name": "JOINT_TYPE_SLIDER", + "value": 2 + }, + { + "name": "JOINT_TYPE_CONE_TWIST", + "value": 3 + }, + { + "name": "JOINT_TYPE_6DOF", + "value": 4 + }, + { + "name": "JOINT_TYPE_MAX", + "value": 5 + } + ] + }, + { + "name": "PinJointParam", + "is_bitfield": false, + "values": [ + { + "name": "PIN_JOINT_BIAS", + "value": 0 + }, + { + "name": "PIN_JOINT_DAMPING", + "value": 1 + }, + { + "name": "PIN_JOINT_IMPULSE_CLAMP", + "value": 2 + } + ] + }, + { + "name": "HingeJointParam", + "is_bitfield": false, + "values": [ + { + "name": "HINGE_JOINT_BIAS", + "value": 0 + }, + { + "name": "HINGE_JOINT_LIMIT_UPPER", + "value": 1 + }, + { + "name": "HINGE_JOINT_LIMIT_LOWER", + "value": 2 + }, + { + "name": "HINGE_JOINT_LIMIT_BIAS", + "value": 3 + }, + { + "name": "HINGE_JOINT_LIMIT_SOFTNESS", + "value": 4 + }, + { + "name": "HINGE_JOINT_LIMIT_RELAXATION", + "value": 5 + }, + { + "name": "HINGE_JOINT_MOTOR_TARGET_VELOCITY", + "value": 6 + }, + { + "name": "HINGE_JOINT_MOTOR_MAX_IMPULSE", + "value": 7 + } + ] + }, + { + "name": "HingeJointFlag", + "is_bitfield": false, + "values": [ + { + "name": "HINGE_JOINT_FLAG_USE_LIMIT", + "value": 0 + }, + { + "name": "HINGE_JOINT_FLAG_ENABLE_MOTOR", + "value": 1 + } + ] + }, + { + "name": "SliderJointParam", + "is_bitfield": false, + "values": [ + { + "name": "SLIDER_JOINT_LINEAR_LIMIT_UPPER", + "value": 0 + }, + { + "name": "SLIDER_JOINT_LINEAR_LIMIT_LOWER", + "value": 1 + }, + { + "name": "SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS", + "value": 2 + }, + { + "name": "SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION", + "value": 3 + }, + { + "name": "SLIDER_JOINT_LINEAR_LIMIT_DAMPING", + "value": 4 + }, + { + "name": "SLIDER_JOINT_LINEAR_MOTION_SOFTNESS", + "value": 5 + }, + { + "name": "SLIDER_JOINT_LINEAR_MOTION_RESTITUTION", + "value": 6 + }, + { + "name": "SLIDER_JOINT_LINEAR_MOTION_DAMPING", + "value": 7 + }, + { + "name": "SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS", + "value": 8 + }, + { + "name": "SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION", + "value": 9 + }, + { + "name": "SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING", + "value": 10 + }, + { + "name": "SLIDER_JOINT_ANGULAR_LIMIT_UPPER", + "value": 11 + }, + { + "name": "SLIDER_JOINT_ANGULAR_LIMIT_LOWER", + "value": 12 + }, + { + "name": "SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS", + "value": 13 + }, + { + "name": "SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION", + "value": 14 + }, + { + "name": "SLIDER_JOINT_ANGULAR_LIMIT_DAMPING", + "value": 15 + }, + { + "name": "SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS", + "value": 16 + }, + { + "name": "SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION", + "value": 17 + }, + { + "name": "SLIDER_JOINT_ANGULAR_MOTION_DAMPING", + "value": 18 + }, + { + "name": "SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS", + "value": 19 + }, + { + "name": "SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION", + "value": 20 + }, + { + "name": "SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING", + "value": 21 + }, + { + "name": "SLIDER_JOINT_MAX", + "value": 22 + } + ] + }, + { + "name": "ConeTwistJointParam", + "is_bitfield": false, + "values": [ + { + "name": "CONE_TWIST_JOINT_SWING_SPAN", + "value": 0 + }, + { + "name": "CONE_TWIST_JOINT_TWIST_SPAN", + "value": 1 + }, + { + "name": "CONE_TWIST_JOINT_BIAS", + "value": 2 + }, + { + "name": "CONE_TWIST_JOINT_SOFTNESS", + "value": 3 + }, + { + "name": "CONE_TWIST_JOINT_RELAXATION", + "value": 4 + } + ] + }, + { + "name": "G6DOFJointAxisParam", + "is_bitfield": false, + "values": [ + { + "name": "G6DOF_JOINT_LINEAR_LOWER_LIMIT", + "value": 0 + }, + { + "name": "G6DOF_JOINT_LINEAR_UPPER_LIMIT", + "value": 1 + }, + { + "name": "G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS", + "value": 2 + }, + { + "name": "G6DOF_JOINT_LINEAR_RESTITUTION", + "value": 3 + }, + { + "name": "G6DOF_JOINT_LINEAR_DAMPING", + "value": 4 + }, + { + "name": "G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY", + "value": 5 + }, + { + "name": "G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT", + "value": 6 + }, + { + "name": "G6DOF_JOINT_ANGULAR_LOWER_LIMIT", + "value": 10 + }, + { + "name": "G6DOF_JOINT_ANGULAR_UPPER_LIMIT", + "value": 11 + }, + { + "name": "G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS", + "value": 12 + }, + { + "name": "G6DOF_JOINT_ANGULAR_DAMPING", + "value": 13 + }, + { + "name": "G6DOF_JOINT_ANGULAR_RESTITUTION", + "value": 14 + }, + { + "name": "G6DOF_JOINT_ANGULAR_FORCE_LIMIT", + "value": 15 + }, + { + "name": "G6DOF_JOINT_ANGULAR_ERP", + "value": 16 + }, + { + "name": "G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY", + "value": 17 + }, + { + "name": "G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT", + "value": 18 + } + ] + }, + { + "name": "G6DOFJointAxisFlag", + "is_bitfield": false, + "values": [ + { + "name": "G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT", + "value": 0 + }, + { + "name": "G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT", + "value": 1 + }, + { + "name": "G6DOF_JOINT_FLAG_ENABLE_MOTOR", + "value": 4 + }, + { + "name": "G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR", + "value": 5 + } + ] + }, + { + "name": "ShapeType", + "is_bitfield": false, + "values": [ + { + "name": "SHAPE_WORLD_BOUNDARY", + "value": 0 + }, + { + "name": "SHAPE_SEPARATION_RAY", + "value": 1 + }, + { + "name": "SHAPE_SPHERE", + "value": 2 + }, + { + "name": "SHAPE_BOX", + "value": 3 + }, + { + "name": "SHAPE_CAPSULE", + "value": 4 + }, + { + "name": "SHAPE_CYLINDER", + "value": 5 + }, + { + "name": "SHAPE_CONVEX_POLYGON", + "value": 6 + }, + { + "name": "SHAPE_CONCAVE_POLYGON", + "value": 7 + }, + { + "name": "SHAPE_HEIGHTMAP", + "value": 8 + }, + { + "name": "SHAPE_SOFT_BODY", + "value": 9 + }, + { + "name": "SHAPE_CUSTOM", + "value": 10 + } + ] + }, + { + "name": "AreaParameter", + "is_bitfield": false, + "values": [ + { + "name": "AREA_PARAM_GRAVITY_OVERRIDE_MODE", + "value": 0 + }, + { + "name": "AREA_PARAM_GRAVITY", + "value": 1 + }, + { + "name": "AREA_PARAM_GRAVITY_VECTOR", + "value": 2 + }, + { + "name": "AREA_PARAM_GRAVITY_IS_POINT", + "value": 3 + }, + { + "name": "AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE", + "value": 4 + }, + { + "name": "AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE", + "value": 5 + }, + { + "name": "AREA_PARAM_LINEAR_DAMP", + "value": 6 + }, + { + "name": "AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE", + "value": 7 + }, + { + "name": "AREA_PARAM_ANGULAR_DAMP", + "value": 8 + }, + { + "name": "AREA_PARAM_PRIORITY", + "value": 9 + }, + { + "name": "AREA_PARAM_WIND_FORCE_MAGNITUDE", + "value": 10 + }, + { + "name": "AREA_PARAM_WIND_SOURCE", + "value": 11 + }, + { + "name": "AREA_PARAM_WIND_DIRECTION", + "value": 12 + }, + { + "name": "AREA_PARAM_WIND_ATTENUATION_FACTOR", + "value": 13 + } + ] + }, + { + "name": "AreaSpaceOverrideMode", + "is_bitfield": false, + "values": [ + { + "name": "AREA_SPACE_OVERRIDE_DISABLED", + "value": 0 + }, + { + "name": "AREA_SPACE_OVERRIDE_COMBINE", + "value": 1 + }, + { + "name": "AREA_SPACE_OVERRIDE_COMBINE_REPLACE", + "value": 2 + }, + { + "name": "AREA_SPACE_OVERRIDE_REPLACE", + "value": 3 + }, + { + "name": "AREA_SPACE_OVERRIDE_REPLACE_COMBINE", + "value": 4 + } + ] + }, + { + "name": "BodyMode", + "is_bitfield": false, + "values": [ + { + "name": "BODY_MODE_STATIC", + "value": 0 + }, + { + "name": "BODY_MODE_KINEMATIC", + "value": 1 + }, + { + "name": "BODY_MODE_RIGID", + "value": 2 + }, + { + "name": "BODY_MODE_RIGID_LINEAR", + "value": 3 + } + ] + }, + { + "name": "BodyParameter", + "is_bitfield": false, + "values": [ + { + "name": "BODY_PARAM_BOUNCE", + "value": 0 + }, + { + "name": "BODY_PARAM_FRICTION", + "value": 1 + }, + { + "name": "BODY_PARAM_MASS", + "value": 2 + }, + { + "name": "BODY_PARAM_INERTIA", + "value": 3 + }, + { + "name": "BODY_PARAM_CENTER_OF_MASS", + "value": 4 + }, + { + "name": "BODY_PARAM_GRAVITY_SCALE", + "value": 5 + }, + { + "name": "BODY_PARAM_LINEAR_DAMP_MODE", + "value": 6 + }, + { + "name": "BODY_PARAM_ANGULAR_DAMP_MODE", + "value": 7 + }, + { + "name": "BODY_PARAM_LINEAR_DAMP", + "value": 8 + }, + { + "name": "BODY_PARAM_ANGULAR_DAMP", + "value": 9 + }, + { + "name": "BODY_PARAM_MAX", + "value": 10 + } + ] + }, + { + "name": "BodyDampMode", + "is_bitfield": false, + "values": [ + { + "name": "BODY_DAMP_MODE_COMBINE", + "value": 0 + }, + { + "name": "BODY_DAMP_MODE_REPLACE", + "value": 1 + } + ] + }, + { + "name": "BodyState", + "is_bitfield": false, + "values": [ + { + "name": "BODY_STATE_TRANSFORM", + "value": 0 + }, + { + "name": "BODY_STATE_LINEAR_VELOCITY", + "value": 1 + }, + { + "name": "BODY_STATE_ANGULAR_VELOCITY", + "value": 2 + }, + { + "name": "BODY_STATE_SLEEPING", + "value": 3 + }, + { + "name": "BODY_STATE_CAN_SLEEP", + "value": 4 + } + ] + }, + { + "name": "AreaBodyStatus", + "is_bitfield": false, + "values": [ + { + "name": "AREA_BODY_ADDED", + "value": 0 + }, + { + "name": "AREA_BODY_REMOVED", + "value": 1 + } + ] + }, + { + "name": "ProcessInfo", + "is_bitfield": false, + "values": [ + { + "name": "INFO_ACTIVE_OBJECTS", + "value": 0 + }, + { + "name": "INFO_COLLISION_PAIRS", + "value": 1 + }, + { + "name": "INFO_ISLAND_COUNT", + "value": 2 + } + ] + }, + { + "name": "SpaceParameter", + "is_bitfield": false, + "values": [ + { + "name": "SPACE_PARAM_CONTACT_RECYCLE_RADIUS", + "value": 0 + }, + { + "name": "SPACE_PARAM_CONTACT_MAX_SEPARATION", + "value": 1 + }, + { + "name": "SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION", + "value": 2 + }, + { + "name": "SPACE_PARAM_CONTACT_DEFAULT_BIAS", + "value": 3 + }, + { + "name": "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD", + "value": 4 + }, + { + "name": "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD", + "value": 5 + }, + { + "name": "SPACE_PARAM_BODY_TIME_TO_SLEEP", + "value": 6 + }, + { + "name": "SPACE_PARAM_SOLVER_ITERATIONS", + "value": 7 + } + ] + }, + { + "name": "BodyAxis", + "is_bitfield": false, + "values": [ + { + "name": "BODY_AXIS_LINEAR_X", + "value": 1 + }, + { + "name": "BODY_AXIS_LINEAR_Y", + "value": 2 + }, + { + "name": "BODY_AXIS_LINEAR_Z", + "value": 4 + }, + { + "name": "BODY_AXIS_ANGULAR_X", + "value": 8 + }, + { + "name": "BODY_AXIS_ANGULAR_Y", + "value": 16 + }, + { + "name": "BODY_AXIS_ANGULAR_Z", + "value": 32 + } + ] + } + ], + "methods": [ + { + "name": "world_boundary_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "separation_ray_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "sphere_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "box_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "capsule_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "cylinder_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "convex_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "concave_polygon_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "heightmap_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "custom_shape_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "shape_set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175752987, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "shape_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3418923367, + "return_value": { + "type": "enum::PhysicsServer3D.ShapeType" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "shape_get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4171304767, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "space_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "space_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "space_is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "space_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2406017470, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "space_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1523206731, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + } + ] + }, + { + "name": "space_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2048616813, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "area_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "area_set_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "area_get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040559639, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D", + "default_value": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "area_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "area_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675327471, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "area_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "area_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1050775521, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "area_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "area_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "area_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2980114638, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "area_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "area_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 890056067, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + } + ] + }, + { + "name": "area_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1128465797, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "area_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "area_set_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "area_set_area_monitor_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3379118538, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "area_set_monitorable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "monitorable", + "type": "bool" + } + ] + }, + { + "name": "area_set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "body_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "body_set_space", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "body_get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 606803466, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer3D.BodyMode" + } + ] + }, + { + "name": "body_get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2488819728, + "return_value": { + "type": "enum::PhysicsServer3D.BodyMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "body_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "body_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_collision_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "body_get_collision_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_add_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040559639, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D", + "default_value": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "body_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "body_set_shape_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675327471, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "body_set_shape_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2658558584, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "body_get_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_get_shape_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1050775521, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_remove_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_clear_shapes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "body_get_object_instance_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_enable_continuous_collision_detection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "body_is_continuous_collision_detection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 910941953, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "body_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385027841, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + } + ] + }, + { + "name": "body_reset_mass_properties", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 599977762, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "body_get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1850449534, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + } + ] + }, + { + "name": "body_apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "body_apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 110375048, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "body_apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "body_apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "body_apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 110375048, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "body_apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "body_add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "body_add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 110375048, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "body_add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "body_set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "body_get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "body_get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_axis_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "body_set_axis_lock", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2020836892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + }, + { + "name": "lock", + "type": "bool" + } + ] + }, + { + "name": "body_is_axis_locked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 587853580, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + } + ] + }, + { + "name": "body_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "body_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "body_set_max_contacts_reported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "body_get_max_contacts_reported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_omit_force_integration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "body_is_omitting_force_integration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_set_force_integration_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3059434249, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "userdata", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "body_set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "body_test_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1944921792, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "parameters", + "type": "PhysicsTestMotionParameters3D" + }, + { + "name": "result", + "type": "PhysicsTestMotionResult3D", + "default_value": "null" + } + ] + }, + { + "name": "body_get_direct_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3029727957, + "return_value": { + "type": "PhysicsDirectBodyState3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "soft_body_get_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 974181306, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "joint_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "joint_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_make_pin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4280171926, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "pin_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 810685294, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "pin_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817972347, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + } + ] + }, + { + "name": "pin_joint_set_local_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + } + ] + }, + { + "name": "pin_joint_get_local_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "pin_joint_set_local_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "pin_joint_get_local_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 531438156, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_make_hinge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1684107643, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "hinge_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "hinge_B", + "type": "Transform3D" + } + ] + }, + { + "name": "hinge_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3165502333, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "hinge_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2129207581, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + } + ] + }, + { + "name": "hinge_joint_set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1601626188, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "hinge_joint_get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4165147865, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + } + ] + }, + { + "name": "joint_make_slider", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1684107643, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "slider_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2264833593, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "slider_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3498644957, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + } + ] + }, + { + "name": "joint_make_cone_twist", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1684107643, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "cone_twist_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 808587618, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "cone_twist_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1134789658, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + } + ] + }, + { + "name": "joint_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290791900, + "return_value": { + "type": "enum::PhysicsServer3D.JointType" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_set_solver_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "joint_get_solver_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_disable_collisions_between_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "joint_is_disabled_collisions_between_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "joint_make_generic_6dof", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1684107643, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "generic_6dof_joint_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2600081391, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "generic_6dof_joint_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 467122058, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + } + ] + }, + { + "name": "generic_6dof_joint_set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3570926903, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "generic_6dof_joint_get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4158090196, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_process_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1332958745, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::PhysicsServer3D.ProcessInfo" + } + ] + } + ] + }, + { + "name": "PhysicsServer3DExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsServer3D", + "api_type": "core", + "methods": [ + { + "name": "_world_boundary_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_separation_ray_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_sphere_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_box_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_capsule_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_cylinder_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_convex_polygon_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_concave_polygon_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_heightmap_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_custom_shape_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_shape_set_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "_shape_set_custom_solver_bias", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_shape_set_margin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shape", + "type": "RID" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_shape_get_margin", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.ShapeType" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_shape_get_custom_solver_bias", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_space_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_space_set_active", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_space_is_active", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_space_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SpaceParameter" + } + ] + }, + { + "name": "_space_get_direct_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_set_debug_contacts", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "space", + "type": "RID" + }, + { + "name": "max_contacts", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_space_get_contacts", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_space_get_contact_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_area_set_space", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_area_get_space", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_add_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_set_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_area_set_shape_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_area_set_shape_disabled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_area_get_shape_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_get_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_get_shape_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_remove_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_area_clear_shapes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_attach_object_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_area_get_object_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_area_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_area_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.AreaParameter" + } + ] + }, + { + "name": "_area_get_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_collision_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_area_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_collision_mask", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_area_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, + { + "name": "_area_set_monitorable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "monitorable", + "type": "bool" + } + ] + }, + { + "name": "_area_set_ray_pickable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_area_set_monitor_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_area_set_area_monitor_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "area", + "type": "RID" + }, + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "_body_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_body_set_space", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_body_get_space", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_mode", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::PhysicsServer3D.BodyMode" + } + ] + }, + { + "name": "_body_get_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.BodyMode" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_add_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_set_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "_body_set_shape_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_body_set_shape_disabled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "_body_get_shape_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_get_shape", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_get_shape_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_remove_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "shape_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_clear_shapes", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_attach_object_instance_id", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "_body_get_object_instance_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_enable_continuous_collision_detection", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_is_continuous_collision_detection_enabled", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_body_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_mask", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_body_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_collision_priority", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "priority", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_get_collision_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_user_flags", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_body_get_user_flags", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.BodyParameter" + } + ] + }, + { + "name": "_body_reset_mass_properties", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_body_get_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + } + ] + }, + { + "name": "_body_apply_central_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_torque_impulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_apply_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_central_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "_body_add_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_set_constant_force", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "_body_get_constant_force", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_constant_torque", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "_body_get_constant_torque", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_axis_velocity", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "_body_set_axis_lock", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + }, + { + "name": "lock", + "type": "bool" + } + ] + }, + { + "name": "_body_is_axis_locked", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::PhysicsServer3D.BodyAxis" + } + ] + }, + { + "name": "_body_add_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_remove_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "excepted_body", + "type": "RID" + } + ] + }, + { + "name": "_body_get_collision_exceptions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_max_contacts_reported", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_body_get_max_contacts_reported", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_contacts_reported_depth_threshold", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_body_get_contacts_reported_depth_threshold", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_omit_force_integration", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_is_omitting_force_integration", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_body_set_state_sync_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "_body_set_force_integration_callback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "callable", + "type": "Callable" + }, + { + "name": "userdata", + "type": "Variant" + } + ] + }, + { + "name": "_body_set_ray_pickable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_body_test_motion", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "from", + "type": "Transform3D" + }, + { + "name": "motion", + "type": "Vector3" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + }, + { + "name": "max_collisions", + "type": "int", + "meta": "int32" + }, + { + "name": "collide_separation_ray", + "type": "bool" + }, + { + "name": "result", + "type": "PhysicsServer3DExtensionMotionResult*" + } + ] + }, + { + "name": "_body_get_direct_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PhysicsDirectBodyState3D" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_soft_body_update_rendering_server", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "rendering_server_handler", + "type": "PhysicsServer3DRenderingServerHandler" + } + ] + }, + { + "name": "_soft_body_set_space", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "space", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_get_space", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_ray_pickable", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_soft_body_set_collision_layer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_soft_body_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_collision_mask", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_soft_body_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_add_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_remove_collision_exception", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "body_b", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_get_collision_exceptions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::RID" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_state", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + }, + { + "name": "variant", + "type": "Variant" + } + ] + }, + { + "name": "_soft_body_get_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "state", + "type": "enum::PhysicsServer3D.BodyState" + } + ] + }, + { + "name": "_soft_body_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_soft_body_set_simulation_precision", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "simulation_precision", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_soft_body_get_simulation_precision", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_total_mass", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "total_mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_soft_body_get_total_mass", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_linear_stiffness", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "linear_stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_soft_body_get_linear_stiffness", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_pressure_coefficient", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "pressure_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_soft_body_get_pressure_coefficient", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_damping_coefficient", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "damping_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_soft_body_get_damping_coefficient", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_drag_coefficient", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "drag_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_soft_body_get_drag_coefficient", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_set_mesh", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_get_bounds", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_move_point", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + }, + { + "name": "global_position", + "type": "Vector3" + } + ] + }, + { + "name": "_soft_body_get_point_global_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_soft_body_remove_all_pinned_points", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "_soft_body_pin_point", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + }, + { + "name": "pin", + "type": "bool" + } + ] + }, + { + "name": "_soft_body_is_point_pinned", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + }, + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_joint_create", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_joint_clear", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_pin", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_pin_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.PinJointParam" + } + ] + }, + { + "name": "_pin_joint_set_local_a", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_A", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_get_local_a", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_pin_joint_set_local_b", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "local_B", + "type": "Vector3" + } + ] + }, + { + "name": "_pin_joint_get_local_b", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_make_hinge", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "hinge_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "hinge_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_joint_make_hinge_simple", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "pivot_A", + "type": "Vector3" + }, + { + "name": "axis_A", + "type": "Vector3" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "pivot_B", + "type": "Vector3" + }, + { + "name": "axis_B", + "type": "Vector3" + } + ] + }, + { + "name": "_hinge_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_hinge_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.HingeJointParam" + } + ] + }, + { + "name": "_hinge_joint_set_flag", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_hinge_joint_get_flag", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.HingeJointFlag" + } + ] + }, + { + "name": "_joint_make_slider", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_slider_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_slider_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.SliderJointParam" + } + ] + }, + { + "name": "_joint_make_cone_twist", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_cone_twist_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_cone_twist_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.ConeTwistJointParam" + } + ] + }, + { + "name": "_joint_make_generic_6dof", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "body_A", + "type": "RID" + }, + { + "name": "local_ref_A", + "type": "Transform3D" + }, + { + "name": "body_B", + "type": "RID" + }, + { + "name": "local_ref_B", + "type": "Transform3D" + } + ] + }, + { + "name": "_generic_6dof_joint_set_param", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_generic_6dof_joint_get_param", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "param", + "type": "enum::PhysicsServer3D.G6DOFJointAxisParam" + } + ] + }, + { + "name": "_generic_6dof_joint_set_flag", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "_generic_6dof_joint_get_flag", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "axis", + "type": "enum::Vector3.Axis" + }, + { + "name": "flag", + "type": "enum::PhysicsServer3D.G6DOFJointAxisFlag" + } + ] + }, + { + "name": "_joint_get_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::PhysicsServer3D.JointType" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_set_solver_priority", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_joint_get_solver_priority", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_joint_disable_collisions_between_bodies", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "joint", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "_joint_is_disabled_collisions_between_bodies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint", + "type": "RID" + } + ] + }, + { + "name": "_free_rid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "_set_active", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "_init", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_step", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "step", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "_sync", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_flush_queries", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_end_sync", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_finish", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_is_flushing_queries", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_process_info", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "process_info", + "type": "enum::PhysicsServer3D.ProcessInfo" + } + ] + }, + { + "name": "body_test_motion_is_excluding_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "body_test_motion_is_excluding_object", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "int", + "meta": "uint64" + } + ] + } + ] + }, + { + "name": "PhysicsServer3DManager", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "register_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2137474292, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "create_callback", + "type": "Callable" + } + ] + }, + { + "name": "set_default_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "PhysicsServer3DRenderingServerHandler", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "_set_vertex", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "vertex_id", + "type": "int", + "meta": "int32" + }, + { + "name": "vertices", + "type": "const void*" + } + ] + }, + { + "name": "_set_normal", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "vertex_id", + "type": "int", + "meta": "int32" + }, + { + "name": "normals", + "type": "const void*" + } + ] + }, + { + "name": "_set_aabb", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + } + ] + }, + { + "name": "PhysicsShapeQueryParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "shape", + "type": "Resource" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + }, + { + "name": "set_shape_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "get_shape_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "motion", + "type": "Vector2" + } + ] + }, + { + "name": "get_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "Vector2", + "name": "motion", + "setter": "set_motion", + "getter": "get_motion" + }, + { + "type": "Shape2D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "RID", + "name": "shape_rid", + "setter": "set_shape_rid", + "getter": "get_shape_rid" + }, + { + "type": "Transform2D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + } + ] + }, + { + "name": "PhysicsShapeQueryParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "shape", + "type": "Resource" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + }, + { + "name": "set_shape_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "shape", + "type": "RID" + } + ] + }, + { + "name": "get_shape_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "motion", + "type": "Vector3" + } + ] + }, + { + "name": "get_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_exclude", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "typedarray::RID", + "name": "exclude", + "setter": "set_exclude", + "getter": "get_exclude" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "Vector2", + "name": "motion", + "setter": "set_motion", + "getter": "get_motion" + }, + { + "type": "Shape3D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "RID", + "name": "shape_rid", + "setter": "set_shape_rid", + "getter": "get_shape_rid" + }, + { + "type": "Transform3D", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + } + ] + }, + { + "name": "PhysicsTestMotionParameters2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "from", + "type": "Transform2D" + } + ] + }, + { + "name": "get_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "motion", + "type": "Vector2" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "is_collide_separation_ray_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_separation_ray_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_exclude_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude_list", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude_objects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::int" + } + }, + { + "name": "set_exclude_objects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude_list", + "type": "typedarray::int" + } + ] + }, + { + "name": "is_recovery_as_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_recovery_as_collision_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "Transform2D", + "name": "from", + "setter": "set_from", + "getter": "get_from" + }, + { + "type": "Vector2", + "name": "motion", + "setter": "set_motion", + "getter": "get_motion" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "bool", + "name": "collide_separation_ray", + "setter": "set_collide_separation_ray_enabled", + "getter": "is_collide_separation_ray_enabled" + }, + { + "type": "typedarray::RID", + "name": "exclude_bodies", + "setter": "set_exclude_bodies", + "getter": "get_exclude_bodies" + }, + { + "type": "Array", + "name": "exclude_objects", + "setter": "set_exclude_objects", + "getter": "get_exclude_objects" + }, + { + "type": "bool", + "name": "recovery_as_collision", + "setter": "set_recovery_as_collision_enabled", + "getter": "is_recovery_as_collision_enabled" + } + ] + }, + { + "name": "PhysicsTestMotionParameters3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "from", + "type": "Transform3D" + } + ] + }, + { + "name": "get_motion", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "motion", + "type": "Vector3" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_collisions", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_collisions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_collisions", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_collide_separation_ray_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_separation_ray_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + }, + { + "name": "set_exclude_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude_list", + "type": "typedarray::RID" + } + ] + }, + { + "name": "get_exclude_objects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::int" + } + }, + { + "name": "set_exclude_objects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "exclude_list", + "type": "typedarray::int" + } + ] + }, + { + "name": "is_recovery_as_collision_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_recovery_as_collision_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "Transform3D", + "name": "from", + "setter": "set_from", + "getter": "get_from" + }, + { + "type": "Vector3", + "name": "motion", + "setter": "set_motion", + "getter": "get_motion" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "int", + "name": "max_collisions", + "setter": "set_max_collisions", + "getter": "get_max_collisions" + }, + { + "type": "bool", + "name": "collide_separation_ray", + "setter": "set_collide_separation_ray_enabled", + "getter": "is_collide_separation_ray_enabled" + }, + { + "type": "typedarray::RID", + "name": "exclude_bodies", + "setter": "set_exclude_bodies", + "getter": "get_exclude_bodies" + }, + { + "type": "Array", + "name": "exclude_objects", + "setter": "set_exclude_objects", + "getter": "get_exclude_objects" + }, + { + "type": "bool", + "name": "recovery_as_collision", + "setter": "set_recovery_as_collision_enabled", + "getter": "is_recovery_as_collision_enabled" + } + ] + }, + { + "name": "PhysicsTestMotionResult2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_travel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_remainder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_collider_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collision_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collision_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_collision_safe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_collision_unsafe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ] + }, + { + "name": "PhysicsTestMotionResult3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_travel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_remainder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_collision_safe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_collision_unsafe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1914908202, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1231817359, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2639523548, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collision_local_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_collision_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 218038398, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "collision_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + } + ] + }, + { + "name": "PinJoint2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint2D", + "api_type": "core", + "methods": [ + { + "name": "set_softness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "softness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_softness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "softness", + "setter": "set_softness", + "getter": "get_softness" + } + ] + }, + { + "name": "PinJoint3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_BIAS", + "value": 0 + }, + { + "name": "PARAM_DAMPING", + "value": 1 + }, + { + "name": "PARAM_IMPULSE_CLAMP", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2059913726, + "arguments": [ + { + "name": "param", + "type": "enum::PinJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1758438771, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::PinJoint3D.Param" + } + ] + } + ] + }, + { + "name": "PlaceholderCubemap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PlaceholderTextureLayered", + "api_type": "core" + }, + { + "name": "PlaceholderCubemapArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PlaceholderTextureLayered", + "api_type": "core" + }, + { + "name": "PlaceholderMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core" + }, + { + "name": "PlaceholderMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Mesh", + "api_type": "core", + "methods": [ + { + "name": "set_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + } + ], + "properties": [ + { + "type": "AABB", + "name": "aabb", + "setter": "set_aabb", + "getter": "get_aabb" + } + ] + }, + { + "name": "PlaceholderTexture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "PlaceholderTexture2DArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PlaceholderTextureLayered", + "api_type": "core" + }, + { + "name": "PlaceholderTexture3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 560364750, + "arguments": [ + { + "name": "size", + "type": "Vector3i" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2785653706, + "return_value": { + "type": "Vector3i" + } + } + ], + "properties": [ + { + "type": "Vector3i", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "PlaceholderTextureLayered", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "TextureLayered", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layers", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "Vector2i", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "layers", + "setter": "set_layers", + "getter": "get_layers" + } + ] + }, + { + "name": "PlaneMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "enums": [ + { + "name": "Orientation", + "is_bitfield": false, + "values": [ + { + "name": "FACE_X", + "value": 0 + }, + { + "name": "FACE_Y", + "value": 1 + }, + { + "name": "FACE_Z", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_subdivide_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "subdivide", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_subdivide_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "subdivide", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_center_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_center_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2751399687, + "arguments": [ + { + "name": "orientation", + "type": "enum::PlaneMesh.Orientation" + } + ] + }, + { + "name": "get_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227599250, + "return_value": { + "type": "enum::PlaneMesh.Orientation" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "subdivide_width", + "setter": "set_subdivide_width", + "getter": "get_subdivide_width" + }, + { + "type": "int", + "name": "subdivide_depth", + "setter": "set_subdivide_depth", + "getter": "get_subdivide_depth" + }, + { + "type": "Vector3", + "name": "center_offset", + "setter": "set_center_offset", + "getter": "get_center_offset" + }, + { + "type": "int", + "name": "orientation", + "setter": "set_orientation", + "getter": "get_orientation" + } + ] + }, + { + "name": "PointLight2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Light2D", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "texture_offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_texture_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_texture_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texture_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_texture_offset", + "getter": "get_texture_offset" + }, + { + "type": "float", + "name": "texture_scale", + "setter": "set_texture_scale", + "getter": "get_texture_scale" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + } + ] + }, + { + "name": "PointMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core" + }, + { + "name": "Polygon2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_uv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "uv", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_uv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_polygons", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "polygons", + "type": "Array" + } + ] + }, + { + "name": "get_polygons", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_vertex_colors", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3546319833, + "arguments": [ + { + "name": "vertex_colors", + "type": "PackedColorArray" + } + ] + }, + { + "name": "get_vertex_colors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392750486, + "return_value": { + "type": "PackedColorArray" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "texture_offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_texture_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_texture_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texture_rotation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "texture_scale", + "type": "Vector2" + } + ] + }, + { + "name": "get_texture_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_invert_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "get_invert_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_antialiased", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "antialiased", + "type": "bool" + } + ] + }, + { + "name": "get_antialiased", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_invert_border", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "invert_border", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_invert_border", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "add_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 703042815, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "get_bone_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_bone_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_weights", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1542882410, + "return_value": { + "type": "PackedFloat32Array" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "erase_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_bone_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "set_bone_weights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1345852415, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "set_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "skeleton", + "type": "NodePath" + } + ] + }, + { + "name": "get_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_internal_vertex_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "internal_vertex_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_internal_vertex_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "bool", + "name": "antialiased", + "setter": "set_antialiased", + "getter": "get_antialiased" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "Vector2", + "name": "texture_offset", + "setter": "set_texture_offset", + "getter": "get_texture_offset" + }, + { + "type": "Vector2", + "name": "texture_scale", + "setter": "set_texture_scale", + "getter": "get_texture_scale" + }, + { + "type": "float", + "name": "texture_rotation", + "setter": "set_texture_rotation", + "getter": "get_texture_rotation" + }, + { + "type": "NodePath", + "name": "skeleton", + "setter": "set_skeleton", + "getter": "get_skeleton" + }, + { + "type": "bool", + "name": "invert_enabled", + "setter": "set_invert_enabled", + "getter": "get_invert_enabled" + }, + { + "type": "float", + "name": "invert_border", + "setter": "set_invert_border", + "getter": "get_invert_border" + }, + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + }, + { + "type": "PackedVector2Array", + "name": "uv", + "setter": "set_uv", + "getter": "get_uv" + }, + { + "type": "PackedColorArray", + "name": "vertex_colors", + "setter": "set_vertex_colors", + "getter": "get_vertex_colors" + }, + { + "type": "Array", + "name": "polygons", + "setter": "set_polygons", + "getter": "get_polygons" + }, + { + "type": "Array", + "name": "bones", + "setter": "_set_bones", + "getter": "_get_bones" + }, + { + "type": "int", + "name": "internal_vertex_count", + "setter": "set_internal_vertex_count", + "getter": "get_internal_vertex_count" + } + ] + }, + { + "name": "PolygonOccluder3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Occluder3D", + "api_type": "core", + "methods": [ + { + "name": "set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + } + ], + "properties": [ + { + "type": "PackedVector2Array", + "name": "polygon", + "setter": "set_polygon", + "getter": "get_polygon" + } + ] + }, + { + "name": "PolygonPathFinder", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3251786936, + "arguments": [ + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "connections", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "find_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1562168077, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "get_intersections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3932192302, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + } + ] + }, + { + "name": "get_closest_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2656412154, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "is_point_inside", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 556197845, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "set_point_penalty", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "penalty", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_point_penalty", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + } + ], + "properties": [ + { + "type": "Dictionary", + "name": "data", + "setter": "_set_data", + "getter": "_get_data" + } + ] + }, + { + "name": "Popup", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Window", + "api_type": "core", + "signals": [ + { + "name": "popup_hide" + } + ] + }, + { + "name": "PopupMenu", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Popup", + "api_type": "core", + "methods": [ + { + "name": "add_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3224536192, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_icon_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1200674553, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3224536192, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_icon_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1200674553, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3224536192, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_icon_radio_check_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1200674553, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "label", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_multistate_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1585218420, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "max_states", + "type": "int", + "meta": "int32" + }, + { + "name": "default_state", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "accel", + "type": "enum::Key", + "default_value": "0" + } + ] + }, + { + "name": "add_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168272394, + "arguments": [ + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_icon_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 68101841, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_check_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168272394, + "arguments": [ + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_icon_check_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 68101841, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_radio_check_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2168272394, + "arguments": [ + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_icon_radio_check_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 68101841, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "add_submenu_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3728518296, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "submenu", + "type": "String" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_item_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "set_item_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1707680378, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "set_item_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "set_item_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "set_item_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "set_item_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_accelerator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2992817551, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "accel", + "type": "enum::Key" + } + ] + }, + { + "name": "set_item_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "metadata", + "type": "Variant" + } + ] + }, + { + "name": "set_item_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_item_submenu", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "submenu", + "type": "String" + } + ] + }, + { + "name": "set_item_as_separator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_item_as_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_item_as_radio_checkable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "set_item_tooltip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "set_item_shortcut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 825127832, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "shortcut", + "type": "Shortcut" + }, + { + "name": "global", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_item_indent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "indent", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_multistate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "state", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_item_shortcut_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "toggle_item_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "toggle_item_multistate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4235602388, + "return_value": { + "type": "enum::Control.TextDirection" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_checked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_accelerator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 253789942, + "return_value": { + "type": "enum::Key" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_submenu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_separator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_radio_checkable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_item_shortcut_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_tooltip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_shortcut", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1449483325, + "return_value": { + "type": "Shortcut" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_indent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_focused_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_focused_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_item_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_item_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "scroll_to_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_separator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2266703459, + "arguments": [ + { + "name": "label", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_hide_on_item_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hide_on_item_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hide_on_checkable_item_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hide_on_checkable_item_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hide_on_state_item_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hide_on_state_item_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_submenu_popup_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "seconds", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_submenu_popup_delay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_allow_search", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "get_allow_search", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "id_pressed", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "id_focused", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "index_pressed", + "arguments": [ + { + "name": "index", + "type": "int" + } + ] + }, + { + "name": "menu_changed" + } + ], + "properties": [ + { + "type": "bool", + "name": "hide_on_item_selection", + "setter": "set_hide_on_item_selection", + "getter": "is_hide_on_item_selection" + }, + { + "type": "bool", + "name": "hide_on_checkable_item_selection", + "setter": "set_hide_on_checkable_item_selection", + "getter": "is_hide_on_checkable_item_selection" + }, + { + "type": "bool", + "name": "hide_on_state_item_selection", + "setter": "set_hide_on_state_item_selection", + "getter": "is_hide_on_state_item_selection" + }, + { + "type": "float", + "name": "submenu_popup_delay", + "setter": "set_submenu_popup_delay", + "getter": "get_submenu_popup_delay" + }, + { + "type": "bool", + "name": "allow_search", + "setter": "set_allow_search", + "getter": "get_allow_search" + }, + { + "type": "int", + "name": "item_count", + "setter": "set_item_count", + "getter": "get_item_count" + } + ] + }, + { + "name": "PopupPanel", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Popup", + "api_type": "core" + }, + { + "name": "PortableCompressedTexture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "enums": [ + { + "name": "CompressionMode", + "is_bitfield": false, + "values": [ + { + "name": "COMPRESSION_MODE_LOSSLESS", + "value": 0 + }, + { + "name": "COMPRESSION_MODE_LOSSY", + "value": 1 + }, + { + "name": "COMPRESSION_MODE_BASIS_UNIVERSAL", + "value": 2 + }, + { + "name": "COMPRESSION_MODE_S3TC", + "value": 3 + }, + { + "name": "COMPRESSION_MODE_ETC2", + "value": 4 + }, + { + "name": "COMPRESSION_MODE_BPTC", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "create_from_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 97251393, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "compression_mode", + "type": "enum::PortableCompressedTexture2D.CompressionMode" + }, + { + "name": "normal_map", + "type": "bool", + "default_value": "false" + }, + { + "name": "lossy_quality", + "type": "float", + "meta": "float", + "default_value": "0.8" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3847873762, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "get_compression_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3265612739, + "return_value": { + "type": "enum::PortableCompressedTexture2D.CompressionMode" + } + }, + { + "name": "set_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_size_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_keep_compressed_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "keep", + "type": "bool" + } + ] + }, + { + "name": "is_keeping_compressed_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_keep_all_compressed_buffers", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "keep", + "type": "bool" + } + ] + }, + { + "name": "is_keeping_all_compressed_buffers", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size_override", + "setter": "set_size_override", + "getter": "get_size_override" + }, + { + "type": "bool", + "name": "keep_compressed_buffer", + "setter": "set_keep_compressed_buffer", + "getter": "is_keeping_compressed_buffer" + } + ] + }, + { + "name": "PrimitiveMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Mesh", + "api_type": "core", + "methods": [ + { + "name": "_create_mesh_array", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "get_mesh_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_flip_faces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_faces", + "type": "bool" + } + ] + }, + { + "name": "get_flip_faces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_add_uv2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "add_uv2", + "type": "bool" + } + ] + }, + { + "name": "get_add_uv2", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_uv2_padding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "uv2_padding", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_uv2_padding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "BaseMaterial3D,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + }, + { + "type": "AABB", + "name": "custom_aabb", + "setter": "set_custom_aabb", + "getter": "get_custom_aabb" + }, + { + "type": "bool", + "name": "flip_faces", + "setter": "set_flip_faces", + "getter": "get_flip_faces" + }, + { + "type": "bool", + "name": "add_uv2", + "setter": "set_add_uv2", + "getter": "get_add_uv2" + }, + { + "type": "float", + "name": "uv2_padding", + "setter": "set_uv2_padding", + "getter": "get_uv2_padding" + } + ] + }, + { + "name": "PrismMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_left_to_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "left_to_right", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_left_to_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_subdivide_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_subdivide_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_subdivide_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_subdivide_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "float", + "name": "left_to_right", + "setter": "set_left_to_right", + "getter": "get_left_to_right" + }, + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "subdivide_width", + "setter": "set_subdivide_width", + "getter": "get_subdivide_width" + }, + { + "type": "int", + "name": "subdivide_height", + "setter": "set_subdivide_height", + "getter": "get_subdivide_height" + }, + { + "type": "int", + "name": "subdivide_depth", + "setter": "set_subdivide_depth", + "getter": "get_subdivide_depth" + } + ] + }, + { + "name": "ProceduralSkyMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "methods": [ + { + "name": "set_sky_top_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_sky_top_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_sky_horizon_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_sky_horizon_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_sky_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sky_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sky_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "multiplier", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sky_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sky_cover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "sky_cover", + "type": "Texture2D" + } + ] + }, + { + "name": "get_sky_cover", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_sky_cover_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_sky_cover_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_ground_bottom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_ground_bottom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_ground_horizon_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_ground_horizon_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_ground_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ground_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ground_energy_multiplier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ground_energy_multiplier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sun_angle_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "degrees", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sun_angle_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sun_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sun_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_debanding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_debanding", + "type": "bool" + } + ] + }, + { + "name": "get_use_debanding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "sky_top_color", + "setter": "set_sky_top_color", + "getter": "get_sky_top_color" + }, + { + "type": "Color", + "name": "sky_horizon_color", + "setter": "set_sky_horizon_color", + "getter": "get_sky_horizon_color" + }, + { + "type": "float", + "name": "sky_curve", + "setter": "set_sky_curve", + "getter": "get_sky_curve" + }, + { + "type": "float", + "name": "sky_energy_multiplier", + "setter": "set_sky_energy_multiplier", + "getter": "get_sky_energy_multiplier" + }, + { + "type": "Texture2D", + "name": "sky_cover", + "setter": "set_sky_cover", + "getter": "get_sky_cover" + }, + { + "type": "Color", + "name": "sky_cover_modulate", + "setter": "set_sky_cover_modulate", + "getter": "get_sky_cover_modulate" + }, + { + "type": "Color", + "name": "ground_bottom_color", + "setter": "set_ground_bottom_color", + "getter": "get_ground_bottom_color" + }, + { + "type": "Color", + "name": "ground_horizon_color", + "setter": "set_ground_horizon_color", + "getter": "get_ground_horizon_color" + }, + { + "type": "float", + "name": "ground_curve", + "setter": "set_ground_curve", + "getter": "get_ground_curve" + }, + { + "type": "float", + "name": "ground_energy_multiplier", + "setter": "set_ground_energy_multiplier", + "getter": "get_ground_energy_multiplier" + }, + { + "type": "float", + "name": "sun_angle_max", + "setter": "set_sun_angle_max", + "getter": "get_sun_angle_max" + }, + { + "type": "float", + "name": "sun_curve", + "setter": "set_sun_curve", + "getter": "get_sun_curve" + }, + { + "type": "bool", + "name": "use_debanding", + "setter": "set_use_debanding", + "getter": "get_use_debanding" + } + ] + }, + { + "name": "ProgressBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Range", + "api_type": "core", + "enums": [ + { + "name": "FillMode", + "is_bitfield": false, + "values": [ + { + "name": "FILL_BEGIN_TO_END", + "value": 0 + }, + { + "name": "FILL_END_TO_BEGIN", + "value": 1 + }, + { + "name": "FILL_TOP_TO_BOTTOM", + "value": 2 + }, + { + "name": "FILL_BOTTOM_TO_TOP", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_fill_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fill_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_show_percentage", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_percentage_shown", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "fill_mode", + "setter": "set_fill_mode", + "getter": "get_fill_mode" + }, + { + "type": "bool", + "name": "show_percentage", + "setter": "set_show_percentage", + "getter": "is_percentage_shown" + } + ] + }, + { + "name": "ProjectSettings", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "has_setting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_setting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 402577236, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_setting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 223050753, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "default_value", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "get_setting_with_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_global_class_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "set_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956805083, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_order", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_initial_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 402577236, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_property_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155329257, + "arguments": [ + { + "name": "hint", + "type": "Dictionary" + } + ] + }, + { + "name": "set_restart_if_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678287736, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "restart", + "type": "bool" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "localize_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "globalize_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "save", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "load_resource_pack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3001721055, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "pack", + "type": "String" + }, + { + "name": "replace_files", + "type": "bool", + "default_value": "true" + }, + { + "name": "offset", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "save_custom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + } + ] + }, + { + "name": "PropertyTweener", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Tweener", + "api_type": "core", + "methods": [ + { + "name": "from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4190193059, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "from_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4279177709, + "return_value": { + "type": "PropertyTweener" + } + }, + { + "name": "as_relative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4279177709, + "return_value": { + "type": "PropertyTweener" + } + }, + { + "name": "set_trans", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1899107404, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "trans", + "type": "enum::Tween.TransitionType" + } + ] + }, + { + "name": "set_ease", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1080455622, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "ease", + "type": "enum::Tween.EaseType" + } + ] + }, + { + "name": "set_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2171559331, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "delay", + "type": "float", + "meta": "double" + } + ] + } + ] + }, + { + "name": "QuadMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PlaneMesh", + "api_type": "core" + }, + { + "name": "QuadOccluder3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Occluder3D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "RDAttachmentFormat", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.DataFormat" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2235804183, + "return_value": { + "type": "enum::RenderingDevice.DataFormat" + } + }, + { + "name": "set_samples", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3774171498, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSamples" + } + ] + }, + { + "name": "get_samples", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 407791724, + "return_value": { + "type": "enum::RenderingDevice.TextureSamples" + } + }, + { + "name": "set_usage_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_usage_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "format", + "setter": "set_format", + "getter": "get_format" + }, + { + "type": "int", + "name": "samples", + "setter": "set_samples", + "getter": "get_samples" + }, + { + "type": "int", + "name": "usage_flags", + "setter": "set_usage_flags", + "getter": "get_usage_flags" + } + ] + }, + { + "name": "RDFramebufferPass", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "constants": [ + { + "name": "ATTACHMENT_UNUSED", + "value": -1 + } + ], + "methods": [ + { + "name": "set_color_attachments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "p_member", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_color_attachments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_input_attachments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "p_member", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_input_attachments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_resolve_attachments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "p_member", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_resolve_attachments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_preserve_attachments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "p_member", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_preserve_attachments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_depth_attachment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_depth_attachment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "PackedInt32Array", + "name": "color_attachments", + "setter": "set_color_attachments", + "getter": "get_color_attachments" + }, + { + "type": "PackedInt32Array", + "name": "input_attachments", + "setter": "set_input_attachments", + "getter": "get_input_attachments" + }, + { + "type": "PackedInt32Array", + "name": "resolve_attachments", + "setter": "set_resolve_attachments", + "getter": "get_resolve_attachments" + }, + { + "type": "PackedInt32Array", + "name": "preserve_attachments", + "setter": "set_preserve_attachments", + "getter": "get_preserve_attachments" + }, + { + "type": "int", + "name": "depth_attachment", + "setter": "set_depth_attachment", + "getter": "get_depth_attachment" + } + ] + }, + { + "name": "RDPipelineColorBlendState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_enable_logic_op", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_logic_op", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_logic_op", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3610841058, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.LogicOperation" + } + ] + }, + { + "name": "get_logic_op", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 988254690, + "return_value": { + "type": "enum::RenderingDevice.LogicOperation" + } + }, + { + "name": "set_blend_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "p_member", + "type": "Color" + } + ] + }, + { + "name": "get_blend_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_attachments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "attachments", + "type": "typedarray::RDPipelineColorBlendStateAttachment" + } + ] + }, + { + "name": "get_attachments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RDPipelineColorBlendStateAttachment" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enable_logic_op", + "setter": "set_enable_logic_op", + "getter": "get_enable_logic_op" + }, + { + "type": "int", + "name": "logic_op", + "setter": "set_logic_op", + "getter": "get_logic_op" + }, + { + "type": "Color", + "name": "blend_constant", + "setter": "set_blend_constant", + "getter": "get_blend_constant" + }, + { + "type": "typedarray::RDPipelineColorBlendStateAttachment", + "name": "attachments", + "setter": "set_attachments", + "getter": "get_attachments" + } + ] + }, + { + "name": "RDPipelineColorBlendStateAttachment", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_as_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_enable_blend", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_blend", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_src_color_blend_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2251019273, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendFactor" + } + ] + }, + { + "name": "get_src_color_blend_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3691288359, + "return_value": { + "type": "enum::RenderingDevice.BlendFactor" + } + }, + { + "name": "set_dst_color_blend_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2251019273, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendFactor" + } + ] + }, + { + "name": "get_dst_color_blend_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3691288359, + "return_value": { + "type": "enum::RenderingDevice.BlendFactor" + } + }, + { + "name": "set_color_blend_op", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3073022720, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendOperation" + } + ] + }, + { + "name": "get_color_blend_op", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1385093561, + "return_value": { + "type": "enum::RenderingDevice.BlendOperation" + } + }, + { + "name": "set_src_alpha_blend_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2251019273, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendFactor" + } + ] + }, + { + "name": "get_src_alpha_blend_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3691288359, + "return_value": { + "type": "enum::RenderingDevice.BlendFactor" + } + }, + { + "name": "set_dst_alpha_blend_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2251019273, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendFactor" + } + ] + }, + { + "name": "get_dst_alpha_blend_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3691288359, + "return_value": { + "type": "enum::RenderingDevice.BlendFactor" + } + }, + { + "name": "set_alpha_blend_op", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3073022720, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.BlendOperation" + } + ] + }, + { + "name": "get_alpha_blend_op", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1385093561, + "return_value": { + "type": "enum::RenderingDevice.BlendOperation" + } + }, + { + "name": "set_write_r", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_write_r", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_write_g", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_write_g", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_write_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_write_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_write_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_write_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enable_blend", + "setter": "set_enable_blend", + "getter": "get_enable_blend" + }, + { + "type": "int", + "name": "src_color_blend_factor", + "setter": "set_src_color_blend_factor", + "getter": "get_src_color_blend_factor" + }, + { + "type": "int", + "name": "dst_color_blend_factor", + "setter": "set_dst_color_blend_factor", + "getter": "get_dst_color_blend_factor" + }, + { + "type": "int", + "name": "color_blend_op", + "setter": "set_color_blend_op", + "getter": "get_color_blend_op" + }, + { + "type": "int", + "name": "src_alpha_blend_factor", + "setter": "set_src_alpha_blend_factor", + "getter": "get_src_alpha_blend_factor" + }, + { + "type": "int", + "name": "dst_alpha_blend_factor", + "setter": "set_dst_alpha_blend_factor", + "getter": "get_dst_alpha_blend_factor" + }, + { + "type": "int", + "name": "alpha_blend_op", + "setter": "set_alpha_blend_op", + "getter": "get_alpha_blend_op" + }, + { + "type": "bool", + "name": "write_r", + "setter": "set_write_r", + "getter": "get_write_r" + }, + { + "type": "bool", + "name": "write_g", + "setter": "set_write_g", + "getter": "get_write_g" + }, + { + "type": "bool", + "name": "write_b", + "setter": "set_write_b", + "getter": "get_write_b" + }, + { + "type": "bool", + "name": "write_a", + "setter": "set_write_a", + "getter": "get_write_a" + } + ] + }, + { + "name": "RDPipelineDepthStencilState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_enable_depth_test", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_depth_test", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enable_depth_write", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_depth_write", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_depth_compare_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2573711505, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.CompareOperator" + } + ] + }, + { + "name": "get_depth_compare_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 269730778, + "return_value": { + "type": "enum::RenderingDevice.CompareOperator" + } + }, + { + "name": "set_enable_depth_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_depth_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_depth_range_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_range_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth_range_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_range_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_enable_stencil", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_stencil", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_front_op_fail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_front_op_fail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_front_op_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_front_op_pass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_front_op_depth_fail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_front_op_depth_fail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_front_op_compare", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2573711505, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.CompareOperator" + } + ] + }, + { + "name": "get_front_op_compare", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 269730778, + "return_value": { + "type": "enum::RenderingDevice.CompareOperator" + } + }, + { + "name": "set_front_op_compare_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_front_op_compare_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_front_op_write_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_front_op_write_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_front_op_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_front_op_reference", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_back_op_fail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_back_op_fail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_back_op_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_back_op_pass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_back_op_depth_fail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2092799566, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.StencilOperation" + } + ] + }, + { + "name": "get_back_op_depth_fail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1714732389, + "return_value": { + "type": "enum::RenderingDevice.StencilOperation" + } + }, + { + "name": "set_back_op_compare", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2573711505, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.CompareOperator" + } + ] + }, + { + "name": "get_back_op_compare", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 269730778, + "return_value": { + "type": "enum::RenderingDevice.CompareOperator" + } + }, + { + "name": "set_back_op_compare_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_back_op_compare_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_back_op_write_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_back_op_write_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_back_op_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_back_op_reference", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enable_depth_test", + "setter": "set_enable_depth_test", + "getter": "get_enable_depth_test" + }, + { + "type": "bool", + "name": "enable_depth_write", + "setter": "set_enable_depth_write", + "getter": "get_enable_depth_write" + }, + { + "type": "int", + "name": "depth_compare_operator", + "setter": "set_depth_compare_operator", + "getter": "get_depth_compare_operator" + }, + { + "type": "bool", + "name": "enable_depth_range", + "setter": "set_enable_depth_range", + "getter": "get_enable_depth_range" + }, + { + "type": "float", + "name": "depth_range_min", + "setter": "set_depth_range_min", + "getter": "get_depth_range_min" + }, + { + "type": "float", + "name": "depth_range_max", + "setter": "set_depth_range_max", + "getter": "get_depth_range_max" + }, + { + "type": "bool", + "name": "enable_stencil", + "setter": "set_enable_stencil", + "getter": "get_enable_stencil" + }, + { + "type": "int", + "name": "front_op_fail", + "setter": "set_front_op_fail", + "getter": "get_front_op_fail" + }, + { + "type": "int", + "name": "front_op_pass", + "setter": "set_front_op_pass", + "getter": "get_front_op_pass" + }, + { + "type": "int", + "name": "front_op_depth_fail", + "setter": "set_front_op_depth_fail", + "getter": "get_front_op_depth_fail" + }, + { + "type": "int", + "name": "front_op_compare", + "setter": "set_front_op_compare", + "getter": "get_front_op_compare" + }, + { + "type": "int", + "name": "front_op_compare_mask", + "setter": "set_front_op_compare_mask", + "getter": "get_front_op_compare_mask" + }, + { + "type": "int", + "name": "front_op_write_mask", + "setter": "set_front_op_write_mask", + "getter": "get_front_op_write_mask" + }, + { + "type": "int", + "name": "front_op_reference", + "setter": "set_front_op_reference", + "getter": "get_front_op_reference" + }, + { + "type": "int", + "name": "back_op_fail", + "setter": "set_back_op_fail", + "getter": "get_back_op_fail" + }, + { + "type": "int", + "name": "back_op_pass", + "setter": "set_back_op_pass", + "getter": "get_back_op_pass" + }, + { + "type": "int", + "name": "back_op_depth_fail", + "setter": "set_back_op_depth_fail", + "getter": "get_back_op_depth_fail" + }, + { + "type": "int", + "name": "back_op_compare", + "setter": "set_back_op_compare", + "getter": "get_back_op_compare" + }, + { + "type": "int", + "name": "back_op_compare_mask", + "setter": "set_back_op_compare_mask", + "getter": "get_back_op_compare_mask" + }, + { + "type": "int", + "name": "back_op_write_mask", + "setter": "set_back_op_write_mask", + "getter": "get_back_op_write_mask" + }, + { + "type": "int", + "name": "back_op_reference", + "setter": "set_back_op_reference", + "getter": "get_back_op_reference" + } + ] + }, + { + "name": "RDPipelineMultisampleState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_sample_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3774171498, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSamples" + } + ] + }, + { + "name": "get_sample_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 407791724, + "return_value": { + "type": "enum::RenderingDevice.TextureSamples" + } + }, + { + "name": "set_enable_sample_shading", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_sample_shading", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_min_sample_shading", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_min_sample_shading", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_enable_alpha_to_coverage", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_alpha_to_coverage", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enable_alpha_to_one", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_alpha_to_one", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_sample_masks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "masks", + "type": "typedarray::int" + } + ] + }, + { + "name": "get_sample_masks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::int" + } + } + ], + "properties": [ + { + "type": "int", + "name": "sample_count", + "setter": "set_sample_count", + "getter": "get_sample_count" + }, + { + "type": "bool", + "name": "enable_sample_shading", + "setter": "set_enable_sample_shading", + "getter": "get_enable_sample_shading" + }, + { + "type": "float", + "name": "min_sample_shading", + "setter": "set_min_sample_shading", + "getter": "get_min_sample_shading" + }, + { + "type": "bool", + "name": "enable_alpha_to_coverage", + "setter": "set_enable_alpha_to_coverage", + "getter": "get_enable_alpha_to_coverage" + }, + { + "type": "bool", + "name": "enable_alpha_to_one", + "setter": "set_enable_alpha_to_one", + "getter": "get_enable_alpha_to_one" + }, + { + "type": "typedarray::int", + "name": "sample_masks", + "setter": "set_sample_masks", + "getter": "get_sample_masks" + } + ] + }, + { + "name": "RDPipelineRasterizationState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_enable_depth_clamp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_depth_clamp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_discard_primitives", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_discard_primitives", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_wireframe", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_wireframe", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cull_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2662586502, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.PolygonCullMode" + } + ] + }, + { + "name": "get_cull_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2192484313, + "return_value": { + "type": "enum::RenderingDevice.PolygonCullMode" + } + }, + { + "name": "set_front_face", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2637251213, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.PolygonFrontFace" + } + ] + }, + { + "name": "get_front_face", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 708793786, + "return_value": { + "type": "enum::RenderingDevice.PolygonFrontFace" + } + }, + { + "name": "set_depth_bias_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_depth_bias_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_depth_bias_constant_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_bias_constant_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth_bias_clamp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_bias_clamp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_depth_bias_slope_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth_bias_slope_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_line_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_line_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_patch_control_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_patch_control_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enable_depth_clamp", + "setter": "set_enable_depth_clamp", + "getter": "get_enable_depth_clamp" + }, + { + "type": "bool", + "name": "discard_primitives", + "setter": "set_discard_primitives", + "getter": "get_discard_primitives" + }, + { + "type": "bool", + "name": "wireframe", + "setter": "set_wireframe", + "getter": "get_wireframe" + }, + { + "type": "int", + "name": "cull_mode", + "setter": "set_cull_mode", + "getter": "get_cull_mode" + }, + { + "type": "int", + "name": "front_face", + "setter": "set_front_face", + "getter": "get_front_face" + }, + { + "type": "bool", + "name": "depth_bias_enabled", + "setter": "set_depth_bias_enabled", + "getter": "get_depth_bias_enabled" + }, + { + "type": "float", + "name": "depth_bias_constant_factor", + "setter": "set_depth_bias_constant_factor", + "getter": "get_depth_bias_constant_factor" + }, + { + "type": "float", + "name": "depth_bias_clamp", + "setter": "set_depth_bias_clamp", + "getter": "get_depth_bias_clamp" + }, + { + "type": "float", + "name": "depth_bias_slope_factor", + "setter": "set_depth_bias_slope_factor", + "getter": "get_depth_bias_slope_factor" + }, + { + "type": "float", + "name": "line_width", + "setter": "set_line_width", + "getter": "get_line_width" + }, + { + "type": "int", + "name": "patch_control_points", + "setter": "set_patch_control_points", + "getter": "get_patch_control_points" + } + ] + }, + { + "name": "RDPipelineSpecializationConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + }, + { + "name": "set_constant_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "constant_id", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_constant_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + } + ], + "properties": [ + { + "type": "Variant", + "name": "value", + "setter": "set_value", + "getter": "get_value" + }, + { + "type": "int", + "name": "constant_id", + "setter": "set_constant_id", + "getter": "get_constant_id" + } + ] + }, + { + "name": "RDSamplerState", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_mag_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1493420382, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerFilter" + } + ] + }, + { + "name": "get_mag_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2209202801, + "return_value": { + "type": "enum::RenderingDevice.SamplerFilter" + } + }, + { + "name": "set_min_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1493420382, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerFilter" + } + ] + }, + { + "name": "get_min_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2209202801, + "return_value": { + "type": "enum::RenderingDevice.SamplerFilter" + } + }, + { + "name": "set_mip_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1493420382, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerFilter" + } + ] + }, + { + "name": "get_mip_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2209202801, + "return_value": { + "type": "enum::RenderingDevice.SamplerFilter" + } + }, + { + "name": "set_repeat_u", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 246127626, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + ] + }, + { + "name": "get_repeat_u", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227895872, + "return_value": { + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + }, + { + "name": "set_repeat_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 246127626, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + ] + }, + { + "name": "get_repeat_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227895872, + "return_value": { + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + }, + { + "name": "set_repeat_w", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 246127626, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + ] + }, + { + "name": "get_repeat_w", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227895872, + "return_value": { + "type": "enum::RenderingDevice.SamplerRepeatMode" + } + }, + { + "name": "set_lod_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_lod_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_anisotropy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_use_anisotropy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_anisotropy_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_anisotropy_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_enable_compare", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_enable_compare", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_compare_op", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2573711505, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.CompareOperator" + } + ] + }, + { + "name": "get_compare_op", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 269730778, + "return_value": { + "type": "enum::RenderingDevice.CompareOperator" + } + }, + { + "name": "set_min_lod", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_min_lod", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_lod", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "p_member", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_lod", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_border_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1115869595, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.SamplerBorderColor" + } + ] + }, + { + "name": "get_border_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3514246478, + "return_value": { + "type": "enum::RenderingDevice.SamplerBorderColor" + } + }, + { + "name": "set_unnormalized_uvw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "p_member", + "type": "bool" + } + ] + }, + { + "name": "get_unnormalized_uvw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "mag_filter", + "setter": "set_mag_filter", + "getter": "get_mag_filter" + }, + { + "type": "int", + "name": "min_filter", + "setter": "set_min_filter", + "getter": "get_min_filter" + }, + { + "type": "int", + "name": "mip_filter", + "setter": "set_mip_filter", + "getter": "get_mip_filter" + }, + { + "type": "int", + "name": "repeat_u", + "setter": "set_repeat_u", + "getter": "get_repeat_u" + }, + { + "type": "int", + "name": "repeat_v", + "setter": "set_repeat_v", + "getter": "get_repeat_v" + }, + { + "type": "int", + "name": "repeat_w", + "setter": "set_repeat_w", + "getter": "get_repeat_w" + }, + { + "type": "float", + "name": "lod_bias", + "setter": "set_lod_bias", + "getter": "get_lod_bias" + }, + { + "type": "bool", + "name": "use_anisotropy", + "setter": "set_use_anisotropy", + "getter": "get_use_anisotropy" + }, + { + "type": "float", + "name": "anisotropy_max", + "setter": "set_anisotropy_max", + "getter": "get_anisotropy_max" + }, + { + "type": "bool", + "name": "enable_compare", + "setter": "set_enable_compare", + "getter": "get_enable_compare" + }, + { + "type": "int", + "name": "compare_op", + "setter": "set_compare_op", + "getter": "get_compare_op" + }, + { + "type": "float", + "name": "min_lod", + "setter": "set_min_lod", + "getter": "get_min_lod" + }, + { + "type": "float", + "name": "max_lod", + "setter": "set_max_lod", + "getter": "get_max_lod" + }, + { + "type": "int", + "name": "border_color", + "setter": "set_border_color", + "getter": "get_border_color" + }, + { + "type": "bool", + "name": "unnormalized_uvw", + "setter": "set_unnormalized_uvw", + "getter": "get_unnormalized_uvw" + } + ] + }, + { + "name": "RDShaderFile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_bytecode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1558064255, + "arguments": [ + { + "name": "bytecode", + "type": "RDShaderSPIRV" + }, + { + "name": "version", + "type": "StringName", + "default_value": "&\"\"" + } + ] + }, + { + "name": "get_spirv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3340165340, + "return_value": { + "type": "RDShaderSPIRV" + }, + "arguments": [ + { + "name": "version", + "type": "StringName", + "default_value": "&\"\"" + } + ] + }, + { + "name": "get_version_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_base_error", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "error", + "type": "String" + } + ] + }, + { + "name": "get_base_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "base_error", + "setter": "set_base_error", + "getter": "get_base_error" + } + ] + }, + { + "name": "RDShaderSPIRV", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_stage_bytecode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3514097977, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + }, + { + "name": "bytecode", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_stage_bytecode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3816765404, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + } + ] + }, + { + "name": "set_stage_compile_error", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 620821314, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + }, + { + "name": "compile_error", + "type": "String" + } + ] + }, + { + "name": "get_stage_compile_error", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3354920045, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + } + ] + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "bytecode_vertex", + "setter": "set_stage_bytecode", + "getter": "get_stage_bytecode", + "index": 0 + }, + { + "type": "PackedByteArray", + "name": "bytecode_fragment", + "setter": "set_stage_bytecode", + "getter": "get_stage_bytecode", + "index": 1 + }, + { + "type": "PackedByteArray", + "name": "bytecode_tesselation_control", + "setter": "set_stage_bytecode", + "getter": "get_stage_bytecode", + "index": 2 + }, + { + "type": "PackedByteArray", + "name": "bytecode_tesselation_evaluation", + "setter": "set_stage_bytecode", + "getter": "get_stage_bytecode", + "index": 3 + }, + { + "type": "PackedByteArray", + "name": "bytecode_compute", + "setter": "set_stage_bytecode", + "getter": "get_stage_bytecode", + "index": 4 + }, + { + "type": "String", + "name": "compile_error_vertex", + "setter": "set_stage_compile_error", + "getter": "get_stage_compile_error", + "index": 0 + }, + { + "type": "String", + "name": "compile_error_fragment", + "setter": "set_stage_compile_error", + "getter": "get_stage_compile_error", + "index": 1 + }, + { + "type": "String", + "name": "compile_error_tesselation_control", + "setter": "set_stage_compile_error", + "getter": "get_stage_compile_error", + "index": 2 + }, + { + "type": "String", + "name": "compile_error_tesselation_evaluation", + "setter": "set_stage_compile_error", + "getter": "get_stage_compile_error", + "index": 3 + }, + { + "type": "String", + "name": "compile_error_compute", + "setter": "set_stage_compile_error", + "getter": "get_stage_compile_error", + "index": 4 + } + ] + }, + { + "name": "RDShaderSource", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_stage_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 620821314, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + }, + { + "name": "source", + "type": "String" + } + ] + }, + { + "name": "get_stage_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3354920045, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "stage", + "type": "enum::RenderingDevice.ShaderStage" + } + ] + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3422186742, + "arguments": [ + { + "name": "language", + "type": "enum::RenderingDevice.ShaderLanguage" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1063538261, + "return_value": { + "type": "enum::RenderingDevice.ShaderLanguage" + } + } + ], + "properties": [ + { + "type": "String", + "name": "source_vertex", + "setter": "set_stage_source", + "getter": "get_stage_source", + "index": 0 + }, + { + "type": "String", + "name": "source_fragment", + "setter": "set_stage_source", + "getter": "get_stage_source", + "index": 1 + }, + { + "type": "String", + "name": "source_tesselation_control", + "setter": "set_stage_source", + "getter": "get_stage_source", + "index": 2 + }, + { + "type": "String", + "name": "source_tesselation_evaluation", + "setter": "set_stage_source", + "getter": "get_stage_source", + "index": 3 + }, + { + "type": "String", + "name": "source_compute", + "setter": "set_stage_source", + "getter": "get_stage_source", + "index": 4 + }, + { + "type": "int", + "name": "language", + "setter": "set_language", + "getter": "get_language" + } + ] + }, + { + "name": "RDTextureFormat", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.DataFormat" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2235804183, + "return_value": { + "type": "enum::RenderingDevice.DataFormat" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_array_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_array_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_texture_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 652343381, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureType" + } + ] + }, + { + "name": "get_texture_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4036357416, + "return_value": { + "type": "enum::RenderingDevice.TextureType" + } + }, + { + "name": "set_samples", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3774171498, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSamples" + } + ] + }, + { + "name": "get_samples", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 407791724, + "return_value": { + "type": "enum::RenderingDevice.TextureSamples" + } + }, + { + "name": "set_usage_bits", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 245642367, + "arguments": [ + { + "name": "p_member", + "type": "bitfield::RenderingDevice.TextureUsageBits" + } + ] + }, + { + "name": "get_usage_bits", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1313398998, + "return_value": { + "type": "bitfield::RenderingDevice.TextureUsageBits" + } + }, + { + "name": "add_shareable_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "format", + "type": "enum::RenderingDevice.DataFormat" + } + ] + }, + { + "name": "remove_shareable_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "format", + "type": "enum::RenderingDevice.DataFormat" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "format", + "setter": "set_format", + "getter": "get_format" + }, + { + "type": "int", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "int", + "name": "depth", + "setter": "set_depth", + "getter": "get_depth" + }, + { + "type": "int", + "name": "array_layers", + "setter": "set_array_layers", + "getter": "get_array_layers" + }, + { + "type": "int", + "name": "mipmaps", + "setter": "set_mipmaps", + "getter": "get_mipmaps" + }, + { + "type": "int", + "name": "texture_type", + "setter": "set_texture_type", + "getter": "get_texture_type" + }, + { + "type": "int", + "name": "samples", + "setter": "set_samples", + "getter": "get_samples" + }, + { + "type": "int", + "name": "usage_bits", + "setter": "set_usage_bits", + "getter": "get_usage_bits" + } + ] + }, + { + "name": "RDTextureView", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_format_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.DataFormat" + } + ] + }, + { + "name": "get_format_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2235804183, + "return_value": { + "type": "enum::RenderingDevice.DataFormat" + } + }, + { + "name": "set_swizzle_r", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3833362581, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSwizzle" + } + ] + }, + { + "name": "get_swizzle_r", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4150792614, + "return_value": { + "type": "enum::RenderingDevice.TextureSwizzle" + } + }, + { + "name": "set_swizzle_g", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3833362581, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSwizzle" + } + ] + }, + { + "name": "get_swizzle_g", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4150792614, + "return_value": { + "type": "enum::RenderingDevice.TextureSwizzle" + } + }, + { + "name": "set_swizzle_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3833362581, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSwizzle" + } + ] + }, + { + "name": "get_swizzle_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4150792614, + "return_value": { + "type": "enum::RenderingDevice.TextureSwizzle" + } + }, + { + "name": "set_swizzle_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3833362581, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.TextureSwizzle" + } + ] + }, + { + "name": "get_swizzle_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4150792614, + "return_value": { + "type": "enum::RenderingDevice.TextureSwizzle" + } + } + ], + "properties": [ + { + "type": "int", + "name": "format_override", + "setter": "set_format_override", + "getter": "get_format_override" + }, + { + "type": "int", + "name": "swizzle_r", + "setter": "set_swizzle_r", + "getter": "get_swizzle_r" + }, + { + "type": "int", + "name": "swizzle_g", + "setter": "set_swizzle_g", + "getter": "get_swizzle_g" + }, + { + "type": "int", + "name": "swizzle_b", + "setter": "set_swizzle_b", + "getter": "get_swizzle_b" + }, + { + "type": "int", + "name": "swizzle_a", + "setter": "set_swizzle_a", + "getter": "get_swizzle_a" + } + ] + }, + { + "name": "RDUniform", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_uniform_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1664894931, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.UniformType" + } + ] + }, + { + "name": "get_uniform_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 475470040, + "return_value": { + "type": "enum::RenderingDevice.UniformType" + } + }, + { + "name": "set_binding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_binding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "id", + "type": "RID" + } + ] + }, + { + "name": "clear_ids", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_ids", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::RID" + } + } + ], + "properties": [ + { + "type": "int", + "name": "uniform_type", + "setter": "set_uniform_type", + "getter": "get_uniform_type" + }, + { + "type": "int", + "name": "binding", + "setter": "set_binding", + "getter": "get_binding" + } + ] + }, + { + "name": "RDVertexAttribute", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_location", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_location", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 565531219, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.DataFormat" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2235804183, + "return_value": { + "type": "enum::RenderingDevice.DataFormat" + } + }, + { + "name": "set_stride", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "p_member", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_stride", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_frequency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 522141836, + "arguments": [ + { + "name": "p_member", + "type": "enum::RenderingDevice.VertexFrequency" + } + ] + }, + { + "name": "get_frequency", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4154106413, + "return_value": { + "type": "enum::RenderingDevice.VertexFrequency" + } + } + ], + "properties": [ + { + "type": "int", + "name": "location", + "setter": "set_location", + "getter": "get_location" + }, + { + "type": "int", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "int", + "name": "format", + "setter": "set_format", + "getter": "get_format" + }, + { + "type": "int", + "name": "stride", + "setter": "set_stride", + "getter": "get_stride" + }, + { + "type": "int", + "name": "frequency", + "setter": "set_frequency", + "getter": "get_frequency" + } + ] + }, + { + "name": "RandomNumberGenerator", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_seed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "seed", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_seed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "set_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "state", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "get_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "randi", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "randf", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "randfn", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2207676613, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "mean", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "deviation", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "randf_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4269894367, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "from", + "type": "float", + "meta": "float" + }, + { + "name": "to", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "randi_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 50157827, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "from", + "type": "int", + "meta": "int32" + }, + { + "name": "to", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "randomize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "int", + "name": "seed", + "setter": "set_seed", + "getter": "get_seed" + }, + { + "type": "int", + "name": "state", + "setter": "set_state", + "getter": "get_state" + } + ] + }, + { + "name": "Range", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "_value_changed", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "new_value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_page", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_as_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_value_no_signal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "minimum", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "maximum", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "step", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_page", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pagesize", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_as_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "set_use_rounded_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_using_rounded_values", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_exp_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_ratio_exp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_greater", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "is_greater_allowed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_lesser", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "is_lesser_allowed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "share", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "with", + "type": "Node" + } + ] + }, + { + "name": "unshare", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "value_changed", + "arguments": [ + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "changed" + } + ], + "properties": [ + { + "type": "float", + "name": "min_value", + "setter": "set_min", + "getter": "get_min" + }, + { + "type": "float", + "name": "max_value", + "setter": "set_max", + "getter": "get_max" + }, + { + "type": "float", + "name": "step", + "setter": "set_step", + "getter": "get_step" + }, + { + "type": "float", + "name": "page", + "setter": "set_page", + "getter": "get_page" + }, + { + "type": "float", + "name": "value", + "setter": "set_value", + "getter": "get_value" + }, + { + "type": "float", + "name": "ratio", + "setter": "set_as_ratio", + "getter": "get_as_ratio" + }, + { + "type": "bool", + "name": "exp_edit", + "setter": "set_exp_ratio", + "getter": "is_ratio_exp" + }, + { + "type": "bool", + "name": "rounded", + "setter": "set_use_rounded_values", + "getter": "is_using_rounded_values" + }, + { + "type": "bool", + "name": "allow_greater", + "setter": "set_allow_greater", + "getter": "is_greater_allowed" + }, + { + "type": "bool", + "name": "allow_lesser", + "setter": "set_allow_lesser", + "getter": "is_lesser_allowed" + } + ] + }, + { + "name": "RayCast2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "local_point", + "type": "Vector2" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "is_colliding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "force_raycast_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "add_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "add_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3090941106, + "arguments": [ + { + "name": "node", + "type": "CollisionObject2D" + } + ] + }, + { + "name": "remove_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "remove_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3090941106, + "arguments": [ + { + "name": "node", + "type": "CollisionObject2D" + } + ] + }, + { + "name": "clear_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_exclude_parent_body", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "mask", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_parent_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hit_from_inside", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_from_inside_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "bool", + "name": "exclude_parent", + "setter": "set_exclude_parent_body", + "getter": "get_exclude_parent_body" + }, + { + "type": "Vector2", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "bool", + "name": "hit_from_inside", + "setter": "set_hit_from_inside", + "getter": "is_hit_from_inside_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + } + ] + }, + { + "name": "RayCast3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "local_point", + "type": "Vector3" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "is_colliding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "force_raycast_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1981248198, + "return_value": { + "type": "Object" + } + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "add_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "add_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1976431078, + "arguments": [ + { + "name": "node", + "type": "CollisionObject3D" + } + ] + }, + { + "name": "remove_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "remove_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1976431078, + "arguments": [ + { + "name": "node", + "type": "CollisionObject3D" + } + ] + }, + { + "name": "clear_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_exclude_parent_body", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "mask", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_parent_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hit_from_inside", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hit_from_inside_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_shape_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "debug_shape_custom_color", + "type": "Color" + } + ] + }, + { + "name": "get_debug_shape_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_debug_shape_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "debug_shape_thickness", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_debug_shape_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "bool", + "name": "exclude_parent", + "setter": "set_exclude_parent_body", + "getter": "get_exclude_parent_body" + }, + { + "type": "Vector3", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "bool", + "name": "hit_from_inside", + "setter": "set_hit_from_inside", + "getter": "is_hit_from_inside_enabled" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "Color", + "name": "debug_shape_custom_color", + "setter": "set_debug_shape_custom_color", + "getter": "get_debug_shape_custom_color" + }, + { + "type": "int", + "name": "debug_shape_thickness", + "setter": "set_debug_shape_thickness", + "getter": "get_debug_shape_thickness" + } + ] + }, + { + "name": "RectangleShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "RefCounted", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "init_ref", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "unreference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_reference_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "ReferenceRect", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "get_border_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_border_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_border_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_border_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_editor_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_editor_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "Color", + "name": "border_color", + "setter": "set_border_color", + "getter": "get_border_color" + }, + { + "type": "float", + "name": "border_width", + "setter": "set_border_width", + "getter": "get_border_width" + }, + { + "type": "bool", + "name": "editor_only", + "setter": "set_editor_only", + "getter": "get_editor_only" + } + ] + }, + { + "name": "ReflectionProbe", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "UpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "UPDATE_ONCE", + "value": 0 + }, + { + "name": "UPDATE_ALWAYS", + "value": 1 + } + ] + }, + { + "name": "AmbientMode", + "is_bitfield": false, + "values": [ + { + "name": "AMBIENT_DISABLED", + "value": 0 + }, + { + "name": "AMBIENT_ENVIRONMENT", + "value": 1 + }, + { + "name": "AMBIENT_COLOR", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_intensity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_ambient_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1748981278, + "arguments": [ + { + "name": "ambient", + "type": "enum::ReflectionProbe.AmbientMode" + } + ] + }, + { + "name": "get_ambient_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1014607621, + "return_value": { + "type": "enum::ReflectionProbe.AmbientMode" + } + }, + { + "name": "set_ambient_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "ambient", + "type": "Color" + } + ] + }, + { + "name": "get_ambient_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_ambient_color_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ambient_energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ambient_color_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "max_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_mesh_lod_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mesh_lod_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_origin_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "origin_offset", + "type": "Vector3" + } + ] + }, + { + "name": "get_origin_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_as_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_set_as_interior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enable_box_projection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_box_projection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enable_shadows", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "are_shadows_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4090221187, + "arguments": [ + { + "name": "mode", + "type": "enum::ReflectionProbe.UpdateMode" + } + ] + }, + { + "name": "get_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2367550552, + "return_value": { + "type": "enum::ReflectionProbe.UpdateMode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "update_mode", + "setter": "set_update_mode", + "getter": "get_update_mode" + }, + { + "type": "float", + "name": "intensity", + "setter": "set_intensity", + "getter": "get_intensity" + }, + { + "type": "float", + "name": "max_distance", + "setter": "set_max_distance", + "getter": "get_max_distance" + }, + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Vector3", + "name": "origin_offset", + "setter": "set_origin_offset", + "getter": "get_origin_offset" + }, + { + "type": "bool", + "name": "box_projection", + "setter": "set_enable_box_projection", + "getter": "is_box_projection_enabled" + }, + { + "type": "bool", + "name": "interior", + "setter": "set_as_interior", + "getter": "is_set_as_interior" + }, + { + "type": "bool", + "name": "enable_shadows", + "setter": "set_enable_shadows", + "getter": "are_shadows_enabled" + }, + { + "type": "int", + "name": "cull_mask", + "setter": "set_cull_mask", + "getter": "get_cull_mask" + }, + { + "type": "float", + "name": "mesh_lod_threshold", + "setter": "set_mesh_lod_threshold", + "getter": "get_mesh_lod_threshold" + }, + { + "type": "int", + "name": "ambient_mode", + "setter": "set_ambient_mode", + "getter": "get_ambient_mode" + }, + { + "type": "Color", + "name": "ambient_color", + "setter": "set_ambient_color", + "getter": "get_ambient_color" + }, + { + "type": "float", + "name": "ambient_color_energy", + "setter": "set_ambient_color_energy", + "getter": "get_ambient_color_energy" + } + ] + }, + { + "name": "RegEx", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "create_from_string", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2150300909, + "return_value": { + "type": "RegEx" + }, + "arguments": [ + { + "name": "pattern", + "type": "String" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "compile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "pattern", + "type": "String" + } + ] + }, + { + "name": "search", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4087180739, + "return_value": { + "type": "RegExMatch" + }, + "arguments": [ + { + "name": "subject", + "type": "String" + }, + { + "name": "offset", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "end", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "search_all", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3354100289, + "return_value": { + "type": "typedarray::RegExMatch" + }, + "arguments": [ + { + "name": "subject", + "type": "String" + }, + { + "name": "offset", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "end", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "sub", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 758293621, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "subject", + "type": "String" + }, + { + "name": "replacement", + "type": "String" + }, + { + "name": "all", + "type": "bool", + "default_value": "false" + }, + { + "name": "offset", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "end", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "is_valid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pattern", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_group_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_names", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ] + }, + { + "name": "RegExMatch", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_subject", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_group_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_names", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_strings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 687115856, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "name", + "type": "Variant", + "default_value": "0" + } + ] + }, + { + "name": "get_start", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 490464691, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "Variant", + "default_value": "0" + } + ] + }, + { + "name": "get_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 490464691, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "Variant", + "default_value": "0" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "subject", + "getter": "get_subject" + }, + { + "type": "Dictionary", + "name": "names", + "getter": "get_names" + }, + { + "type": "Array", + "name": "strings", + "getter": "get_strings" + } + ] + }, + { + "name": "RemoteTransform2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_remote_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_remote_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "force_update_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_use_global_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_global_coordinates", + "type": "bool" + } + ] + }, + { + "name": "get_use_global_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_position", + "type": "bool" + } + ] + }, + { + "name": "get_update_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_rotation", + "type": "bool" + } + ] + }, + { + "name": "get_update_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_scale", + "type": "bool" + } + ] + }, + { + "name": "get_update_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "remote_path", + "setter": "set_remote_node", + "getter": "get_remote_node" + }, + { + "type": "bool", + "name": "use_global_coordinates", + "setter": "set_use_global_coordinates", + "getter": "get_use_global_coordinates" + }, + { + "type": "bool", + "name": "update_position", + "setter": "set_update_position", + "getter": "get_update_position" + }, + { + "type": "bool", + "name": "update_rotation", + "setter": "set_update_rotation", + "getter": "get_update_rotation" + }, + { + "type": "bool", + "name": "update_scale", + "setter": "set_update_scale", + "getter": "get_update_scale" + } + ] + }, + { + "name": "RemoteTransform3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_remote_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_remote_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "force_update_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_use_global_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_global_coordinates", + "type": "bool" + } + ] + }, + { + "name": "get_use_global_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_position", + "type": "bool" + } + ] + }, + { + "name": "get_update_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_rotation", + "type": "bool" + } + ] + }, + { + "name": "get_update_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "update_remote_scale", + "type": "bool" + } + ] + }, + { + "name": "get_update_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "remote_path", + "setter": "set_remote_node", + "getter": "get_remote_node" + }, + { + "type": "bool", + "name": "use_global_coordinates", + "setter": "set_use_global_coordinates", + "getter": "get_use_global_coordinates" + }, + { + "type": "bool", + "name": "update_position", + "setter": "set_update_position", + "getter": "get_update_position" + }, + { + "type": "bool", + "name": "update_rotation", + "setter": "set_update_rotation", + "getter": "get_update_rotation" + }, + { + "type": "bool", + "name": "update_scale", + "setter": "set_update_scale", + "getter": "get_update_scale" + } + ] + }, + { + "name": "RenderingDevice", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "INVALID_ID", + "value": -1 + }, + { + "name": "INVALID_FORMAT_ID", + "value": -1 + } + ], + "enums": [ + { + "name": "DeviceType", + "is_bitfield": false, + "values": [ + { + "name": "DEVICE_TYPE_OTHER", + "value": 0 + }, + { + "name": "DEVICE_TYPE_INTEGRATED_GPU", + "value": 1 + }, + { + "name": "DEVICE_TYPE_DISCRETE_GPU", + "value": 2 + }, + { + "name": "DEVICE_TYPE_VIRTUAL_GPU", + "value": 3 + }, + { + "name": "DEVICE_TYPE_CPU", + "value": 4 + }, + { + "name": "DEVICE_TYPE_MAX", + "value": 5 + } + ] + }, + { + "name": "DriverResource", + "is_bitfield": false, + "values": [ + { + "name": "DRIVER_RESOURCE_VULKAN_DEVICE", + "value": 0 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE", + "value": 1 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_INSTANCE", + "value": 2 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_QUEUE", + "value": 3 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_QUEUE_FAMILY_INDEX", + "value": 4 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_IMAGE", + "value": 5 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_IMAGE_VIEW", + "value": 6 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_IMAGE_NATIVE_TEXTURE_FORMAT", + "value": 7 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_SAMPLER", + "value": 8 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_DESCRIPTOR_SET", + "value": 9 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_BUFFER", + "value": 10 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_COMPUTE_PIPELINE", + "value": 11 + }, + { + "name": "DRIVER_RESOURCE_VULKAN_RENDER_PIPELINE", + "value": 12 + } + ] + }, + { + "name": "DataFormat", + "is_bitfield": false, + "values": [ + { + "name": "DATA_FORMAT_R4G4_UNORM_PACK8", + "value": 0 + }, + { + "name": "DATA_FORMAT_R4G4B4A4_UNORM_PACK16", + "value": 1 + }, + { + "name": "DATA_FORMAT_B4G4R4A4_UNORM_PACK16", + "value": 2 + }, + { + "name": "DATA_FORMAT_R5G6B5_UNORM_PACK16", + "value": 3 + }, + { + "name": "DATA_FORMAT_B5G6R5_UNORM_PACK16", + "value": 4 + }, + { + "name": "DATA_FORMAT_R5G5B5A1_UNORM_PACK16", + "value": 5 + }, + { + "name": "DATA_FORMAT_B5G5R5A1_UNORM_PACK16", + "value": 6 + }, + { + "name": "DATA_FORMAT_A1R5G5B5_UNORM_PACK16", + "value": 7 + }, + { + "name": "DATA_FORMAT_R8_UNORM", + "value": 8 + }, + { + "name": "DATA_FORMAT_R8_SNORM", + "value": 9 + }, + { + "name": "DATA_FORMAT_R8_USCALED", + "value": 10 + }, + { + "name": "DATA_FORMAT_R8_SSCALED", + "value": 11 + }, + { + "name": "DATA_FORMAT_R8_UINT", + "value": 12 + }, + { + "name": "DATA_FORMAT_R8_SINT", + "value": 13 + }, + { + "name": "DATA_FORMAT_R8_SRGB", + "value": 14 + }, + { + "name": "DATA_FORMAT_R8G8_UNORM", + "value": 15 + }, + { + "name": "DATA_FORMAT_R8G8_SNORM", + "value": 16 + }, + { + "name": "DATA_FORMAT_R8G8_USCALED", + "value": 17 + }, + { + "name": "DATA_FORMAT_R8G8_SSCALED", + "value": 18 + }, + { + "name": "DATA_FORMAT_R8G8_UINT", + "value": 19 + }, + { + "name": "DATA_FORMAT_R8G8_SINT", + "value": 20 + }, + { + "name": "DATA_FORMAT_R8G8_SRGB", + "value": 21 + }, + { + "name": "DATA_FORMAT_R8G8B8_UNORM", + "value": 22 + }, + { + "name": "DATA_FORMAT_R8G8B8_SNORM", + "value": 23 + }, + { + "name": "DATA_FORMAT_R8G8B8_USCALED", + "value": 24 + }, + { + "name": "DATA_FORMAT_R8G8B8_SSCALED", + "value": 25 + }, + { + "name": "DATA_FORMAT_R8G8B8_UINT", + "value": 26 + }, + { + "name": "DATA_FORMAT_R8G8B8_SINT", + "value": 27 + }, + { + "name": "DATA_FORMAT_R8G8B8_SRGB", + "value": 28 + }, + { + "name": "DATA_FORMAT_B8G8R8_UNORM", + "value": 29 + }, + { + "name": "DATA_FORMAT_B8G8R8_SNORM", + "value": 30 + }, + { + "name": "DATA_FORMAT_B8G8R8_USCALED", + "value": 31 + }, + { + "name": "DATA_FORMAT_B8G8R8_SSCALED", + "value": 32 + }, + { + "name": "DATA_FORMAT_B8G8R8_UINT", + "value": 33 + }, + { + "name": "DATA_FORMAT_B8G8R8_SINT", + "value": 34 + }, + { + "name": "DATA_FORMAT_B8G8R8_SRGB", + "value": 35 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_UNORM", + "value": 36 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_SNORM", + "value": 37 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_USCALED", + "value": 38 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_SSCALED", + "value": 39 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_UINT", + "value": 40 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_SINT", + "value": 41 + }, + { + "name": "DATA_FORMAT_R8G8B8A8_SRGB", + "value": 42 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_UNORM", + "value": 43 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_SNORM", + "value": 44 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_USCALED", + "value": 45 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_SSCALED", + "value": 46 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_UINT", + "value": 47 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_SINT", + "value": 48 + }, + { + "name": "DATA_FORMAT_B8G8R8A8_SRGB", + "value": 49 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_UNORM_PACK32", + "value": 50 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_SNORM_PACK32", + "value": 51 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_USCALED_PACK32", + "value": 52 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_SSCALED_PACK32", + "value": 53 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_UINT_PACK32", + "value": 54 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_SINT_PACK32", + "value": 55 + }, + { + "name": "DATA_FORMAT_A8B8G8R8_SRGB_PACK32", + "value": 56 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_UNORM_PACK32", + "value": 57 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_SNORM_PACK32", + "value": 58 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_USCALED_PACK32", + "value": 59 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_SSCALED_PACK32", + "value": 60 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_UINT_PACK32", + "value": 61 + }, + { + "name": "DATA_FORMAT_A2R10G10B10_SINT_PACK32", + "value": 62 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_UNORM_PACK32", + "value": 63 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_SNORM_PACK32", + "value": 64 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_USCALED_PACK32", + "value": 65 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_SSCALED_PACK32", + "value": 66 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_UINT_PACK32", + "value": 67 + }, + { + "name": "DATA_FORMAT_A2B10G10R10_SINT_PACK32", + "value": 68 + }, + { + "name": "DATA_FORMAT_R16_UNORM", + "value": 69 + }, + { + "name": "DATA_FORMAT_R16_SNORM", + "value": 70 + }, + { + "name": "DATA_FORMAT_R16_USCALED", + "value": 71 + }, + { + "name": "DATA_FORMAT_R16_SSCALED", + "value": 72 + }, + { + "name": "DATA_FORMAT_R16_UINT", + "value": 73 + }, + { + "name": "DATA_FORMAT_R16_SINT", + "value": 74 + }, + { + "name": "DATA_FORMAT_R16_SFLOAT", + "value": 75 + }, + { + "name": "DATA_FORMAT_R16G16_UNORM", + "value": 76 + }, + { + "name": "DATA_FORMAT_R16G16_SNORM", + "value": 77 + }, + { + "name": "DATA_FORMAT_R16G16_USCALED", + "value": 78 + }, + { + "name": "DATA_FORMAT_R16G16_SSCALED", + "value": 79 + }, + { + "name": "DATA_FORMAT_R16G16_UINT", + "value": 80 + }, + { + "name": "DATA_FORMAT_R16G16_SINT", + "value": 81 + }, + { + "name": "DATA_FORMAT_R16G16_SFLOAT", + "value": 82 + }, + { + "name": "DATA_FORMAT_R16G16B16_UNORM", + "value": 83 + }, + { + "name": "DATA_FORMAT_R16G16B16_SNORM", + "value": 84 + }, + { + "name": "DATA_FORMAT_R16G16B16_USCALED", + "value": 85 + }, + { + "name": "DATA_FORMAT_R16G16B16_SSCALED", + "value": 86 + }, + { + "name": "DATA_FORMAT_R16G16B16_UINT", + "value": 87 + }, + { + "name": "DATA_FORMAT_R16G16B16_SINT", + "value": 88 + }, + { + "name": "DATA_FORMAT_R16G16B16_SFLOAT", + "value": 89 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_UNORM", + "value": 90 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_SNORM", + "value": 91 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_USCALED", + "value": 92 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_SSCALED", + "value": 93 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_UINT", + "value": 94 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_SINT", + "value": 95 + }, + { + "name": "DATA_FORMAT_R16G16B16A16_SFLOAT", + "value": 96 + }, + { + "name": "DATA_FORMAT_R32_UINT", + "value": 97 + }, + { + "name": "DATA_FORMAT_R32_SINT", + "value": 98 + }, + { + "name": "DATA_FORMAT_R32_SFLOAT", + "value": 99 + }, + { + "name": "DATA_FORMAT_R32G32_UINT", + "value": 100 + }, + { + "name": "DATA_FORMAT_R32G32_SINT", + "value": 101 + }, + { + "name": "DATA_FORMAT_R32G32_SFLOAT", + "value": 102 + }, + { + "name": "DATA_FORMAT_R32G32B32_UINT", + "value": 103 + }, + { + "name": "DATA_FORMAT_R32G32B32_SINT", + "value": 104 + }, + { + "name": "DATA_FORMAT_R32G32B32_SFLOAT", + "value": 105 + }, + { + "name": "DATA_FORMAT_R32G32B32A32_UINT", + "value": 106 + }, + { + "name": "DATA_FORMAT_R32G32B32A32_SINT", + "value": 107 + }, + { + "name": "DATA_FORMAT_R32G32B32A32_SFLOAT", + "value": 108 + }, + { + "name": "DATA_FORMAT_R64_UINT", + "value": 109 + }, + { + "name": "DATA_FORMAT_R64_SINT", + "value": 110 + }, + { + "name": "DATA_FORMAT_R64_SFLOAT", + "value": 111 + }, + { + "name": "DATA_FORMAT_R64G64_UINT", + "value": 112 + }, + { + "name": "DATA_FORMAT_R64G64_SINT", + "value": 113 + }, + { + "name": "DATA_FORMAT_R64G64_SFLOAT", + "value": 114 + }, + { + "name": "DATA_FORMAT_R64G64B64_UINT", + "value": 115 + }, + { + "name": "DATA_FORMAT_R64G64B64_SINT", + "value": 116 + }, + { + "name": "DATA_FORMAT_R64G64B64_SFLOAT", + "value": 117 + }, + { + "name": "DATA_FORMAT_R64G64B64A64_UINT", + "value": 118 + }, + { + "name": "DATA_FORMAT_R64G64B64A64_SINT", + "value": 119 + }, + { + "name": "DATA_FORMAT_R64G64B64A64_SFLOAT", + "value": 120 + }, + { + "name": "DATA_FORMAT_B10G11R11_UFLOAT_PACK32", + "value": 121 + }, + { + "name": "DATA_FORMAT_E5B9G9R9_UFLOAT_PACK32", + "value": 122 + }, + { + "name": "DATA_FORMAT_D16_UNORM", + "value": 123 + }, + { + "name": "DATA_FORMAT_X8_D24_UNORM_PACK32", + "value": 124 + }, + { + "name": "DATA_FORMAT_D32_SFLOAT", + "value": 125 + }, + { + "name": "DATA_FORMAT_S8_UINT", + "value": 126 + }, + { + "name": "DATA_FORMAT_D16_UNORM_S8_UINT", + "value": 127 + }, + { + "name": "DATA_FORMAT_D24_UNORM_S8_UINT", + "value": 128 + }, + { + "name": "DATA_FORMAT_D32_SFLOAT_S8_UINT", + "value": 129 + }, + { + "name": "DATA_FORMAT_BC1_RGB_UNORM_BLOCK", + "value": 130 + }, + { + "name": "DATA_FORMAT_BC1_RGB_SRGB_BLOCK", + "value": 131 + }, + { + "name": "DATA_FORMAT_BC1_RGBA_UNORM_BLOCK", + "value": 132 + }, + { + "name": "DATA_FORMAT_BC1_RGBA_SRGB_BLOCK", + "value": 133 + }, + { + "name": "DATA_FORMAT_BC2_UNORM_BLOCK", + "value": 134 + }, + { + "name": "DATA_FORMAT_BC2_SRGB_BLOCK", + "value": 135 + }, + { + "name": "DATA_FORMAT_BC3_UNORM_BLOCK", + "value": 136 + }, + { + "name": "DATA_FORMAT_BC3_SRGB_BLOCK", + "value": 137 + }, + { + "name": "DATA_FORMAT_BC4_UNORM_BLOCK", + "value": 138 + }, + { + "name": "DATA_FORMAT_BC4_SNORM_BLOCK", + "value": 139 + }, + { + "name": "DATA_FORMAT_BC5_UNORM_BLOCK", + "value": 140 + }, + { + "name": "DATA_FORMAT_BC5_SNORM_BLOCK", + "value": 141 + }, + { + "name": "DATA_FORMAT_BC6H_UFLOAT_BLOCK", + "value": 142 + }, + { + "name": "DATA_FORMAT_BC6H_SFLOAT_BLOCK", + "value": 143 + }, + { + "name": "DATA_FORMAT_BC7_UNORM_BLOCK", + "value": 144 + }, + { + "name": "DATA_FORMAT_BC7_SRGB_BLOCK", + "value": 145 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8_UNORM_BLOCK", + "value": 146 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8_SRGB_BLOCK", + "value": 147 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK", + "value": 148 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK", + "value": 149 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK", + "value": 150 + }, + { + "name": "DATA_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK", + "value": 151 + }, + { + "name": "DATA_FORMAT_EAC_R11_UNORM_BLOCK", + "value": 152 + }, + { + "name": "DATA_FORMAT_EAC_R11_SNORM_BLOCK", + "value": 153 + }, + { + "name": "DATA_FORMAT_EAC_R11G11_UNORM_BLOCK", + "value": 154 + }, + { + "name": "DATA_FORMAT_EAC_R11G11_SNORM_BLOCK", + "value": 155 + }, + { + "name": "DATA_FORMAT_ASTC_4x4_UNORM_BLOCK", + "value": 156 + }, + { + "name": "DATA_FORMAT_ASTC_4x4_SRGB_BLOCK", + "value": 157 + }, + { + "name": "DATA_FORMAT_ASTC_5x4_UNORM_BLOCK", + "value": 158 + }, + { + "name": "DATA_FORMAT_ASTC_5x4_SRGB_BLOCK", + "value": 159 + }, + { + "name": "DATA_FORMAT_ASTC_5x5_UNORM_BLOCK", + "value": 160 + }, + { + "name": "DATA_FORMAT_ASTC_5x5_SRGB_BLOCK", + "value": 161 + }, + { + "name": "DATA_FORMAT_ASTC_6x5_UNORM_BLOCK", + "value": 162 + }, + { + "name": "DATA_FORMAT_ASTC_6x5_SRGB_BLOCK", + "value": 163 + }, + { + "name": "DATA_FORMAT_ASTC_6x6_UNORM_BLOCK", + "value": 164 + }, + { + "name": "DATA_FORMAT_ASTC_6x6_SRGB_BLOCK", + "value": 165 + }, + { + "name": "DATA_FORMAT_ASTC_8x5_UNORM_BLOCK", + "value": 166 + }, + { + "name": "DATA_FORMAT_ASTC_8x5_SRGB_BLOCK", + "value": 167 + }, + { + "name": "DATA_FORMAT_ASTC_8x6_UNORM_BLOCK", + "value": 168 + }, + { + "name": "DATA_FORMAT_ASTC_8x6_SRGB_BLOCK", + "value": 169 + }, + { + "name": "DATA_FORMAT_ASTC_8x8_UNORM_BLOCK", + "value": 170 + }, + { + "name": "DATA_FORMAT_ASTC_8x8_SRGB_BLOCK", + "value": 171 + }, + { + "name": "DATA_FORMAT_ASTC_10x5_UNORM_BLOCK", + "value": 172 + }, + { + "name": "DATA_FORMAT_ASTC_10x5_SRGB_BLOCK", + "value": 173 + }, + { + "name": "DATA_FORMAT_ASTC_10x6_UNORM_BLOCK", + "value": 174 + }, + { + "name": "DATA_FORMAT_ASTC_10x6_SRGB_BLOCK", + "value": 175 + }, + { + "name": "DATA_FORMAT_ASTC_10x8_UNORM_BLOCK", + "value": 176 + }, + { + "name": "DATA_FORMAT_ASTC_10x8_SRGB_BLOCK", + "value": 177 + }, + { + "name": "DATA_FORMAT_ASTC_10x10_UNORM_BLOCK", + "value": 178 + }, + { + "name": "DATA_FORMAT_ASTC_10x10_SRGB_BLOCK", + "value": 179 + }, + { + "name": "DATA_FORMAT_ASTC_12x10_UNORM_BLOCK", + "value": 180 + }, + { + "name": "DATA_FORMAT_ASTC_12x10_SRGB_BLOCK", + "value": 181 + }, + { + "name": "DATA_FORMAT_ASTC_12x12_UNORM_BLOCK", + "value": 182 + }, + { + "name": "DATA_FORMAT_ASTC_12x12_SRGB_BLOCK", + "value": 183 + }, + { + "name": "DATA_FORMAT_G8B8G8R8_422_UNORM", + "value": 184 + }, + { + "name": "DATA_FORMAT_B8G8R8G8_422_UNORM", + "value": 185 + }, + { + "name": "DATA_FORMAT_G8_B8_R8_3PLANE_420_UNORM", + "value": 186 + }, + { + "name": "DATA_FORMAT_G8_B8R8_2PLANE_420_UNORM", + "value": 187 + }, + { + "name": "DATA_FORMAT_G8_B8_R8_3PLANE_422_UNORM", + "value": 188 + }, + { + "name": "DATA_FORMAT_G8_B8R8_2PLANE_422_UNORM", + "value": 189 + }, + { + "name": "DATA_FORMAT_G8_B8_R8_3PLANE_444_UNORM", + "value": 190 + }, + { + "name": "DATA_FORMAT_R10X6_UNORM_PACK16", + "value": 191 + }, + { + "name": "DATA_FORMAT_R10X6G10X6_UNORM_2PACK16", + "value": 192 + }, + { + "name": "DATA_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16", + "value": 193 + }, + { + "name": "DATA_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16", + "value": 194 + }, + { + "name": "DATA_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16", + "value": 195 + }, + { + "name": "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16", + "value": 196 + }, + { + "name": "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16", + "value": 197 + }, + { + "name": "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16", + "value": 198 + }, + { + "name": "DATA_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16", + "value": 199 + }, + { + "name": "DATA_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16", + "value": 200 + }, + { + "name": "DATA_FORMAT_R12X4_UNORM_PACK16", + "value": 201 + }, + { + "name": "DATA_FORMAT_R12X4G12X4_UNORM_2PACK16", + "value": 202 + }, + { + "name": "DATA_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16", + "value": 203 + }, + { + "name": "DATA_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16", + "value": 204 + }, + { + "name": "DATA_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16", + "value": 205 + }, + { + "name": "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16", + "value": 206 + }, + { + "name": "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16", + "value": 207 + }, + { + "name": "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16", + "value": 208 + }, + { + "name": "DATA_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16", + "value": 209 + }, + { + "name": "DATA_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16", + "value": 210 + }, + { + "name": "DATA_FORMAT_G16B16G16R16_422_UNORM", + "value": 211 + }, + { + "name": "DATA_FORMAT_B16G16R16G16_422_UNORM", + "value": 212 + }, + { + "name": "DATA_FORMAT_G16_B16_R16_3PLANE_420_UNORM", + "value": 213 + }, + { + "name": "DATA_FORMAT_G16_B16R16_2PLANE_420_UNORM", + "value": 214 + }, + { + "name": "DATA_FORMAT_G16_B16_R16_3PLANE_422_UNORM", + "value": 215 + }, + { + "name": "DATA_FORMAT_G16_B16R16_2PLANE_422_UNORM", + "value": 216 + }, + { + "name": "DATA_FORMAT_G16_B16_R16_3PLANE_444_UNORM", + "value": 217 + }, + { + "name": "DATA_FORMAT_MAX", + "value": 218 + } + ] + }, + { + "name": "BarrierMask", + "is_bitfield": true, + "values": [ + { + "name": "BARRIER_MASK_RASTER", + "value": 1 + }, + { + "name": "BARRIER_MASK_COMPUTE", + "value": 2 + }, + { + "name": "BARRIER_MASK_TRANSFER", + "value": 4 + }, + { + "name": "BARRIER_MASK_ALL_BARRIERS", + "value": 7 + }, + { + "name": "BARRIER_MASK_NO_BARRIER", + "value": 8 + } + ] + }, + { + "name": "TextureType", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_TYPE_1D", + "value": 0 + }, + { + "name": "TEXTURE_TYPE_2D", + "value": 1 + }, + { + "name": "TEXTURE_TYPE_3D", + "value": 2 + }, + { + "name": "TEXTURE_TYPE_CUBE", + "value": 3 + }, + { + "name": "TEXTURE_TYPE_1D_ARRAY", + "value": 4 + }, + { + "name": "TEXTURE_TYPE_2D_ARRAY", + "value": 5 + }, + { + "name": "TEXTURE_TYPE_CUBE_ARRAY", + "value": 6 + }, + { + "name": "TEXTURE_TYPE_MAX", + "value": 7 + } + ] + }, + { + "name": "TextureSamples", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_SAMPLES_1", + "value": 0 + }, + { + "name": "TEXTURE_SAMPLES_2", + "value": 1 + }, + { + "name": "TEXTURE_SAMPLES_4", + "value": 2 + }, + { + "name": "TEXTURE_SAMPLES_8", + "value": 3 + }, + { + "name": "TEXTURE_SAMPLES_16", + "value": 4 + }, + { + "name": "TEXTURE_SAMPLES_32", + "value": 5 + }, + { + "name": "TEXTURE_SAMPLES_64", + "value": 6 + }, + { + "name": "TEXTURE_SAMPLES_MAX", + "value": 7 + } + ] + }, + { + "name": "TextureUsageBits", + "is_bitfield": true, + "values": [ + { + "name": "TEXTURE_USAGE_SAMPLING_BIT", + "value": 1 + }, + { + "name": "TEXTURE_USAGE_COLOR_ATTACHMENT_BIT", + "value": 2 + }, + { + "name": "TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT", + "value": 4 + }, + { + "name": "TEXTURE_USAGE_STORAGE_BIT", + "value": 8 + }, + { + "name": "TEXTURE_USAGE_STORAGE_ATOMIC_BIT", + "value": 16 + }, + { + "name": "TEXTURE_USAGE_CPU_READ_BIT", + "value": 32 + }, + { + "name": "TEXTURE_USAGE_CAN_UPDATE_BIT", + "value": 64 + }, + { + "name": "TEXTURE_USAGE_CAN_COPY_FROM_BIT", + "value": 128 + }, + { + "name": "TEXTURE_USAGE_CAN_COPY_TO_BIT", + "value": 256 + }, + { + "name": "TEXTURE_USAGE_INPUT_ATTACHMENT_BIT", + "value": 512 + } + ] + }, + { + "name": "TextureSwizzle", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_SWIZZLE_IDENTITY", + "value": 0 + }, + { + "name": "TEXTURE_SWIZZLE_ZERO", + "value": 1 + }, + { + "name": "TEXTURE_SWIZZLE_ONE", + "value": 2 + }, + { + "name": "TEXTURE_SWIZZLE_R", + "value": 3 + }, + { + "name": "TEXTURE_SWIZZLE_G", + "value": 4 + }, + { + "name": "TEXTURE_SWIZZLE_B", + "value": 5 + }, + { + "name": "TEXTURE_SWIZZLE_A", + "value": 6 + }, + { + "name": "TEXTURE_SWIZZLE_MAX", + "value": 7 + } + ] + }, + { + "name": "TextureSliceType", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_SLICE_2D", + "value": 0 + }, + { + "name": "TEXTURE_SLICE_CUBEMAP", + "value": 1 + }, + { + "name": "TEXTURE_SLICE_3D", + "value": 2 + } + ] + }, + { + "name": "SamplerFilter", + "is_bitfield": false, + "values": [ + { + "name": "SAMPLER_FILTER_NEAREST", + "value": 0 + }, + { + "name": "SAMPLER_FILTER_LINEAR", + "value": 1 + } + ] + }, + { + "name": "SamplerRepeatMode", + "is_bitfield": false, + "values": [ + { + "name": "SAMPLER_REPEAT_MODE_REPEAT", + "value": 0 + }, + { + "name": "SAMPLER_REPEAT_MODE_MIRRORED_REPEAT", + "value": 1 + }, + { + "name": "SAMPLER_REPEAT_MODE_CLAMP_TO_EDGE", + "value": 2 + }, + { + "name": "SAMPLER_REPEAT_MODE_CLAMP_TO_BORDER", + "value": 3 + }, + { + "name": "SAMPLER_REPEAT_MODE_MIRROR_CLAMP_TO_EDGE", + "value": 4 + }, + { + "name": "SAMPLER_REPEAT_MODE_MAX", + "value": 5 + } + ] + }, + { + "name": "SamplerBorderColor", + "is_bitfield": false, + "values": [ + { + "name": "SAMPLER_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK", + "value": 0 + }, + { + "name": "SAMPLER_BORDER_COLOR_INT_TRANSPARENT_BLACK", + "value": 1 + }, + { + "name": "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_BLACK", + "value": 2 + }, + { + "name": "SAMPLER_BORDER_COLOR_INT_OPAQUE_BLACK", + "value": 3 + }, + { + "name": "SAMPLER_BORDER_COLOR_FLOAT_OPAQUE_WHITE", + "value": 4 + }, + { + "name": "SAMPLER_BORDER_COLOR_INT_OPAQUE_WHITE", + "value": 5 + }, + { + "name": "SAMPLER_BORDER_COLOR_MAX", + "value": 6 + } + ] + }, + { + "name": "VertexFrequency", + "is_bitfield": false, + "values": [ + { + "name": "VERTEX_FREQUENCY_VERTEX", + "value": 0 + }, + { + "name": "VERTEX_FREQUENCY_INSTANCE", + "value": 1 + } + ] + }, + { + "name": "IndexBufferFormat", + "is_bitfield": false, + "values": [ + { + "name": "INDEX_BUFFER_FORMAT_UINT16", + "value": 0 + }, + { + "name": "INDEX_BUFFER_FORMAT_UINT32", + "value": 1 + } + ] + }, + { + "name": "StorageBufferUsage", + "is_bitfield": true, + "values": [ + { + "name": "STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT", + "value": 1 + } + ] + }, + { + "name": "UniformType", + "is_bitfield": false, + "values": [ + { + "name": "UNIFORM_TYPE_SAMPLER", + "value": 0 + }, + { + "name": "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE", + "value": 1 + }, + { + "name": "UNIFORM_TYPE_TEXTURE", + "value": 2 + }, + { + "name": "UNIFORM_TYPE_IMAGE", + "value": 3 + }, + { + "name": "UNIFORM_TYPE_TEXTURE_BUFFER", + "value": 4 + }, + { + "name": "UNIFORM_TYPE_SAMPLER_WITH_TEXTURE_BUFFER", + "value": 5 + }, + { + "name": "UNIFORM_TYPE_IMAGE_BUFFER", + "value": 6 + }, + { + "name": "UNIFORM_TYPE_UNIFORM_BUFFER", + "value": 7 + }, + { + "name": "UNIFORM_TYPE_STORAGE_BUFFER", + "value": 8 + }, + { + "name": "UNIFORM_TYPE_INPUT_ATTACHMENT", + "value": 9 + }, + { + "name": "UNIFORM_TYPE_MAX", + "value": 10 + } + ] + }, + { + "name": "RenderPrimitive", + "is_bitfield": false, + "values": [ + { + "name": "RENDER_PRIMITIVE_POINTS", + "value": 0 + }, + { + "name": "RENDER_PRIMITIVE_LINES", + "value": 1 + }, + { + "name": "RENDER_PRIMITIVE_LINES_WITH_ADJACENCY", + "value": 2 + }, + { + "name": "RENDER_PRIMITIVE_LINESTRIPS", + "value": 3 + }, + { + "name": "RENDER_PRIMITIVE_LINESTRIPS_WITH_ADJACENCY", + "value": 4 + }, + { + "name": "RENDER_PRIMITIVE_TRIANGLES", + "value": 5 + }, + { + "name": "RENDER_PRIMITIVE_TRIANGLES_WITH_ADJACENCY", + "value": 6 + }, + { + "name": "RENDER_PRIMITIVE_TRIANGLE_STRIPS", + "value": 7 + }, + { + "name": "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_AJACENCY", + "value": 8 + }, + { + "name": "RENDER_PRIMITIVE_TRIANGLE_STRIPS_WITH_RESTART_INDEX", + "value": 9 + }, + { + "name": "RENDER_PRIMITIVE_TESSELATION_PATCH", + "value": 10 + }, + { + "name": "RENDER_PRIMITIVE_MAX", + "value": 11 + } + ] + }, + { + "name": "PolygonCullMode", + "is_bitfield": false, + "values": [ + { + "name": "POLYGON_CULL_DISABLED", + "value": 0 + }, + { + "name": "POLYGON_CULL_FRONT", + "value": 1 + }, + { + "name": "POLYGON_CULL_BACK", + "value": 2 + } + ] + }, + { + "name": "PolygonFrontFace", + "is_bitfield": false, + "values": [ + { + "name": "POLYGON_FRONT_FACE_CLOCKWISE", + "value": 0 + }, + { + "name": "POLYGON_FRONT_FACE_COUNTER_CLOCKWISE", + "value": 1 + } + ] + }, + { + "name": "StencilOperation", + "is_bitfield": false, + "values": [ + { + "name": "STENCIL_OP_KEEP", + "value": 0 + }, + { + "name": "STENCIL_OP_ZERO", + "value": 1 + }, + { + "name": "STENCIL_OP_REPLACE", + "value": 2 + }, + { + "name": "STENCIL_OP_INCREMENT_AND_CLAMP", + "value": 3 + }, + { + "name": "STENCIL_OP_DECREMENT_AND_CLAMP", + "value": 4 + }, + { + "name": "STENCIL_OP_INVERT", + "value": 5 + }, + { + "name": "STENCIL_OP_INCREMENT_AND_WRAP", + "value": 6 + }, + { + "name": "STENCIL_OP_DECREMENT_AND_WRAP", + "value": 7 + }, + { + "name": "STENCIL_OP_MAX", + "value": 8 + } + ] + }, + { + "name": "CompareOperator", + "is_bitfield": false, + "values": [ + { + "name": "COMPARE_OP_NEVER", + "value": 0 + }, + { + "name": "COMPARE_OP_LESS", + "value": 1 + }, + { + "name": "COMPARE_OP_EQUAL", + "value": 2 + }, + { + "name": "COMPARE_OP_LESS_OR_EQUAL", + "value": 3 + }, + { + "name": "COMPARE_OP_GREATER", + "value": 4 + }, + { + "name": "COMPARE_OP_NOT_EQUAL", + "value": 5 + }, + { + "name": "COMPARE_OP_GREATER_OR_EQUAL", + "value": 6 + }, + { + "name": "COMPARE_OP_ALWAYS", + "value": 7 + }, + { + "name": "COMPARE_OP_MAX", + "value": 8 + } + ] + }, + { + "name": "LogicOperation", + "is_bitfield": false, + "values": [ + { + "name": "LOGIC_OP_CLEAR", + "value": 0 + }, + { + "name": "LOGIC_OP_AND", + "value": 1 + }, + { + "name": "LOGIC_OP_AND_REVERSE", + "value": 2 + }, + { + "name": "LOGIC_OP_COPY", + "value": 3 + }, + { + "name": "LOGIC_OP_AND_INVERTED", + "value": 4 + }, + { + "name": "LOGIC_OP_NO_OP", + "value": 5 + }, + { + "name": "LOGIC_OP_XOR", + "value": 6 + }, + { + "name": "LOGIC_OP_OR", + "value": 7 + }, + { + "name": "LOGIC_OP_NOR", + "value": 8 + }, + { + "name": "LOGIC_OP_EQUIVALENT", + "value": 9 + }, + { + "name": "LOGIC_OP_INVERT", + "value": 10 + }, + { + "name": "LOGIC_OP_OR_REVERSE", + "value": 11 + }, + { + "name": "LOGIC_OP_COPY_INVERTED", + "value": 12 + }, + { + "name": "LOGIC_OP_OR_INVERTED", + "value": 13 + }, + { + "name": "LOGIC_OP_NAND", + "value": 14 + }, + { + "name": "LOGIC_OP_SET", + "value": 15 + }, + { + "name": "LOGIC_OP_MAX", + "value": 16 + } + ] + }, + { + "name": "BlendFactor", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_FACTOR_ZERO", + "value": 0 + }, + { + "name": "BLEND_FACTOR_ONE", + "value": 1 + }, + { + "name": "BLEND_FACTOR_SRC_COLOR", + "value": 2 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_SRC_COLOR", + "value": 3 + }, + { + "name": "BLEND_FACTOR_DST_COLOR", + "value": 4 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_DST_COLOR", + "value": 5 + }, + { + "name": "BLEND_FACTOR_SRC_ALPHA", + "value": 6 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_SRC_ALPHA", + "value": 7 + }, + { + "name": "BLEND_FACTOR_DST_ALPHA", + "value": 8 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_DST_ALPHA", + "value": 9 + }, + { + "name": "BLEND_FACTOR_CONSTANT_COLOR", + "value": 10 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR", + "value": 11 + }, + { + "name": "BLEND_FACTOR_CONSTANT_ALPHA", + "value": 12 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA", + "value": 13 + }, + { + "name": "BLEND_FACTOR_SRC_ALPHA_SATURATE", + "value": 14 + }, + { + "name": "BLEND_FACTOR_SRC1_COLOR", + "value": 15 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_SRC1_COLOR", + "value": 16 + }, + { + "name": "BLEND_FACTOR_SRC1_ALPHA", + "value": 17 + }, + { + "name": "BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA", + "value": 18 + }, + { + "name": "BLEND_FACTOR_MAX", + "value": 19 + } + ] + }, + { + "name": "BlendOperation", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_OP_ADD", + "value": 0 + }, + { + "name": "BLEND_OP_SUBTRACT", + "value": 1 + }, + { + "name": "BLEND_OP_REVERSE_SUBTRACT", + "value": 2 + }, + { + "name": "BLEND_OP_MINIMUM", + "value": 3 + }, + { + "name": "BLEND_OP_MAXIMUM", + "value": 4 + }, + { + "name": "BLEND_OP_MAX", + "value": 5 + } + ] + }, + { + "name": "PipelineDynamicStateFlags", + "is_bitfield": true, + "values": [ + { + "name": "DYNAMIC_STATE_LINE_WIDTH", + "value": 1 + }, + { + "name": "DYNAMIC_STATE_DEPTH_BIAS", + "value": 2 + }, + { + "name": "DYNAMIC_STATE_BLEND_CONSTANTS", + "value": 4 + }, + { + "name": "DYNAMIC_STATE_DEPTH_BOUNDS", + "value": 8 + }, + { + "name": "DYNAMIC_STATE_STENCIL_COMPARE_MASK", + "value": 16 + }, + { + "name": "DYNAMIC_STATE_STENCIL_WRITE_MASK", + "value": 32 + }, + { + "name": "DYNAMIC_STATE_STENCIL_REFERENCE", + "value": 64 + } + ] + }, + { + "name": "InitialAction", + "is_bitfield": false, + "values": [ + { + "name": "INITIAL_ACTION_CLEAR", + "value": 0 + }, + { + "name": "INITIAL_ACTION_CLEAR_REGION", + "value": 1 + }, + { + "name": "INITIAL_ACTION_CLEAR_REGION_CONTINUE", + "value": 2 + }, + { + "name": "INITIAL_ACTION_KEEP", + "value": 3 + }, + { + "name": "INITIAL_ACTION_DROP", + "value": 4 + }, + { + "name": "INITIAL_ACTION_CONTINUE", + "value": 5 + }, + { + "name": "INITIAL_ACTION_MAX", + "value": 6 + } + ] + }, + { + "name": "FinalAction", + "is_bitfield": false, + "values": [ + { + "name": "FINAL_ACTION_READ", + "value": 0 + }, + { + "name": "FINAL_ACTION_DISCARD", + "value": 1 + }, + { + "name": "FINAL_ACTION_CONTINUE", + "value": 2 + }, + { + "name": "FINAL_ACTION_MAX", + "value": 3 + } + ] + }, + { + "name": "ShaderStage", + "is_bitfield": false, + "values": [ + { + "name": "SHADER_STAGE_VERTEX", + "value": 0 + }, + { + "name": "SHADER_STAGE_FRAGMENT", + "value": 1 + }, + { + "name": "SHADER_STAGE_TESSELATION_CONTROL", + "value": 2 + }, + { + "name": "SHADER_STAGE_TESSELATION_EVALUATION", + "value": 3 + }, + { + "name": "SHADER_STAGE_COMPUTE", + "value": 4 + }, + { + "name": "SHADER_STAGE_MAX", + "value": 5 + }, + { + "name": "SHADER_STAGE_VERTEX_BIT", + "value": 1 + }, + { + "name": "SHADER_STAGE_FRAGMENT_BIT", + "value": 2 + }, + { + "name": "SHADER_STAGE_TESSELATION_CONTROL_BIT", + "value": 4 + }, + { + "name": "SHADER_STAGE_TESSELATION_EVALUATION_BIT", + "value": 8 + }, + { + "name": "SHADER_STAGE_COMPUTE_BIT", + "value": 16 + } + ] + }, + { + "name": "ShaderLanguage", + "is_bitfield": false, + "values": [ + { + "name": "SHADER_LANGUAGE_GLSL", + "value": 0 + }, + { + "name": "SHADER_LANGUAGE_HLSL", + "value": 1 + } + ] + }, + { + "name": "PipelineSpecializationConstantType", + "is_bitfield": false, + "values": [ + { + "name": "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_BOOL", + "value": 0 + }, + { + "name": "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_INT", + "value": 1 + }, + { + "name": "PIPELINE_SPECIALIZATION_CONSTANT_TYPE_FLOAT", + "value": 2 + } + ] + }, + { + "name": "Limit", + "is_bitfield": false, + "values": [ + { + "name": "LIMIT_MAX_BOUND_UNIFORM_SETS", + "value": 0 + }, + { + "name": "LIMIT_MAX_FRAMEBUFFER_COLOR_ATTACHMENTS", + "value": 1 + }, + { + "name": "LIMIT_MAX_TEXTURES_PER_UNIFORM_SET", + "value": 2 + }, + { + "name": "LIMIT_MAX_SAMPLERS_PER_UNIFORM_SET", + "value": 3 + }, + { + "name": "LIMIT_MAX_STORAGE_BUFFERS_PER_UNIFORM_SET", + "value": 4 + }, + { + "name": "LIMIT_MAX_STORAGE_IMAGES_PER_UNIFORM_SET", + "value": 5 + }, + { + "name": "LIMIT_MAX_UNIFORM_BUFFERS_PER_UNIFORM_SET", + "value": 6 + }, + { + "name": "LIMIT_MAX_DRAW_INDEXED_INDEX", + "value": 7 + }, + { + "name": "LIMIT_MAX_FRAMEBUFFER_HEIGHT", + "value": 8 + }, + { + "name": "LIMIT_MAX_FRAMEBUFFER_WIDTH", + "value": 9 + }, + { + "name": "LIMIT_MAX_TEXTURE_ARRAY_LAYERS", + "value": 10 + }, + { + "name": "LIMIT_MAX_TEXTURE_SIZE_1D", + "value": 11 + }, + { + "name": "LIMIT_MAX_TEXTURE_SIZE_2D", + "value": 12 + }, + { + "name": "LIMIT_MAX_TEXTURE_SIZE_3D", + "value": 13 + }, + { + "name": "LIMIT_MAX_TEXTURE_SIZE_CUBE", + "value": 14 + }, + { + "name": "LIMIT_MAX_TEXTURES_PER_SHADER_STAGE", + "value": 15 + }, + { + "name": "LIMIT_MAX_SAMPLERS_PER_SHADER_STAGE", + "value": 16 + }, + { + "name": "LIMIT_MAX_STORAGE_BUFFERS_PER_SHADER_STAGE", + "value": 17 + }, + { + "name": "LIMIT_MAX_STORAGE_IMAGES_PER_SHADER_STAGE", + "value": 18 + }, + { + "name": "LIMIT_MAX_UNIFORM_BUFFERS_PER_SHADER_STAGE", + "value": 19 + }, + { + "name": "LIMIT_MAX_PUSH_CONSTANT_SIZE", + "value": 20 + }, + { + "name": "LIMIT_MAX_UNIFORM_BUFFER_SIZE", + "value": 21 + }, + { + "name": "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTE_OFFSET", + "value": 22 + }, + { + "name": "LIMIT_MAX_VERTEX_INPUT_ATTRIBUTES", + "value": 23 + }, + { + "name": "LIMIT_MAX_VERTEX_INPUT_BINDINGS", + "value": 24 + }, + { + "name": "LIMIT_MAX_VERTEX_INPUT_BINDING_STRIDE", + "value": 25 + }, + { + "name": "LIMIT_MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT", + "value": 26 + }, + { + "name": "LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE", + "value": 27 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_X", + "value": 28 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Y", + "value": 29 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_COUNT_Z", + "value": 30 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_INVOCATIONS", + "value": 31 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_X", + "value": 32 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Y", + "value": 33 + }, + { + "name": "LIMIT_MAX_COMPUTE_WORKGROUP_SIZE_Z", + "value": 34 + }, + { + "name": "LIMIT_MAX_VIEWPORT_DIMENSIONS_X", + "value": 35 + }, + { + "name": "LIMIT_MAX_VIEWPORT_DIMENSIONS_Y", + "value": 36 + } + ] + }, + { + "name": "MemoryType", + "is_bitfield": false, + "values": [ + { + "name": "MEMORY_TEXTURES", + "value": 0 + }, + { + "name": "MEMORY_BUFFERS", + "value": 1 + }, + { + "name": "MEMORY_TOTAL", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "texture_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3011278298, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "format", + "type": "RDTextureFormat" + }, + { + "name": "view", + "type": "RDTextureView" + }, + { + "name": "data", + "type": "typedarray::PackedByteArray", + "default_value": "[]" + } + ] + }, + { + "name": "texture_create_shared", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3178156134, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "view", + "type": "RDTextureView" + }, + { + "name": "with_texture", + "type": "RID" + } + ] + }, + { + "name": "texture_create_shared_from_slice", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 864132525, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "view", + "type": "RDTextureView" + }, + { + "name": "with_texture", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmaps", + "type": "int", + "meta": "uint32", + "default_value": "1" + }, + { + "name": "slice_type", + "type": "enum::RenderingDevice.TextureSliceType", + "default_value": "0" + } + ] + }, + { + "name": "texture_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2736912341, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "data", + "type": "PackedByteArray" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "texture_get_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1859412099, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "texture_is_format_supported_for_usage", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2592520478, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "format", + "type": "enum::RenderingDevice.DataFormat" + }, + { + "name": "usage_flags", + "type": "bitfield::RenderingDevice.TextureUsageBits" + } + ] + }, + { + "name": "texture_is_shared", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "texture_is_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "texture_copy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3741367532, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from_texture", + "type": "RID" + }, + { + "name": "to_texture", + "type": "RID" + }, + { + "name": "from_pos", + "type": "Vector3" + }, + { + "name": "to_pos", + "type": "Vector3" + }, + { + "name": "size", + "type": "Vector3" + }, + { + "name": "src_mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "dst_mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "src_layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "dst_layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "texture_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3423681478, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "base_mipmap", + "type": "int", + "meta": "uint32" + }, + { + "name": "mipmap_count", + "type": "int", + "meta": "uint32" + }, + { + "name": "base_layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "layer_count", + "type": "int", + "meta": "uint32" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "texture_resolve_multisample", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2126834943, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "from_texture", + "type": "RID" + }, + { + "name": "to_texture", + "type": "RID" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "framebuffer_format_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2635475316, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "attachments", + "type": "typedarray::RDAttachmentFormat" + }, + { + "name": "view_count", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "framebuffer_format_create_multipass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1992489524, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "attachments", + "type": "typedarray::RDAttachmentFormat" + }, + { + "name": "passes", + "type": "typedarray::RDFramebufferPass" + }, + { + "name": "view_count", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "framebuffer_format_create_empty", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 555930169, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "samples", + "type": "enum::RenderingDevice.TextureSamples", + "default_value": "0" + } + ] + }, + { + "name": "framebuffer_format_get_texture_samples", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1036806638, + "return_value": { + "type": "enum::RenderingDevice.TextureSamples" + }, + "arguments": [ + { + "name": "format", + "type": "int", + "meta": "int64" + }, + { + "name": "render_pass", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "framebuffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1884747791, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "textures", + "type": "typedarray::RID" + }, + { + "name": "validate_with_format", + "type": "int", + "meta": "int64", + "default_value": "-1" + }, + { + "name": "view_count", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "framebuffer_create_multipass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 452534725, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "textures", + "type": "typedarray::RID" + }, + { + "name": "passes", + "type": "typedarray::RDFramebufferPass" + }, + { + "name": "validate_with_format", + "type": "int", + "meta": "int64", + "default_value": "-1" + }, + { + "name": "view_count", + "type": "int", + "meta": "uint32", + "default_value": "1" + } + ] + }, + { + "name": "framebuffer_create_empty", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 382373098, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "samples", + "type": "enum::RenderingDevice.TextureSamples", + "default_value": "0" + }, + { + "name": "validate_with_format", + "type": "int", + "meta": "int64", + "default_value": "-1" + } + ] + }, + { + "name": "framebuffer_get_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3917799429, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "framebuffer", + "type": "RID" + } + ] + }, + { + "name": "framebuffer_is_valid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "framebuffer", + "type": "RID" + } + ] + }, + { + "name": "sampler_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2327892535, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "state", + "type": "RDSamplerState" + } + ] + }, + { + "name": "vertex_buffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3491282828, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "data", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + }, + { + "name": "use_as_storage", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "vertex_format_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1242678479, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "vertex_descriptions", + "type": "typedarray::RDVertexAttribute" + } + ] + }, + { + "name": "vertex_array_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3137892244, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "vertex_count", + "type": "int", + "meta": "uint32" + }, + { + "name": "vertex_format", + "type": "int", + "meta": "int64" + }, + { + "name": "src_buffers", + "type": "typedarray::RID" + }, + { + "name": "offsets", + "type": "PackedInt64Array", + "default_value": "PackedInt64Array()" + } + ] + }, + { + "name": "index_buffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 975915977, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size_indices", + "type": "int", + "meta": "uint32" + }, + { + "name": "format", + "type": "enum::RenderingDevice.IndexBufferFormat" + }, + { + "name": "data", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + }, + { + "name": "use_restart_indices", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "index_array_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2256026069, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "index_buffer", + "type": "RID" + }, + { + "name": "index_offset", + "type": "int", + "meta": "uint32" + }, + { + "name": "index_count", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "shader_compile_spirv_from_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3459523685, + "return_value": { + "type": "RDShaderSPIRV" + }, + "arguments": [ + { + "name": "shader_source", + "type": "RDShaderSource" + }, + { + "name": "allow_cache", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "shader_compile_binary_from_spirv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1395027180, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "spirv_data", + "type": "RDShaderSPIRV" + }, + { + "name": "name", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "shader_create_from_spirv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3297482566, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "spirv_data", + "type": "RDShaderSPIRV" + }, + { + "name": "name", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "shader_create_from_bytecode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3049171473, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "binary_data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "shader_get_vertex_input_attribute_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3917799429, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + } + ] + }, + { + "name": "uniform_buffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1453158401, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "data", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + } + ] + }, + { + "name": "storage_buffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1173156076, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "data", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + }, + { + "name": "usage", + "type": "bitfield::RenderingDevice.StorageBufferUsage", + "default_value": "0" + } + ] + }, + { + "name": "texture_buffer_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2344087557, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "format", + "type": "enum::RenderingDevice.DataFormat" + }, + { + "name": "data", + "type": "PackedByteArray", + "default_value": "PackedByteArray()" + } + ] + }, + { + "name": "uniform_set_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2280795797, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "uniforms", + "type": "typedarray::RDUniform" + }, + { + "name": "shader", + "type": "RID" + }, + { + "name": "shader_set", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "uniform_set_is_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "uniform_set", + "type": "RID" + } + ] + }, + { + "name": "buffer_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 652628289, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "RID" + }, + { + "name": "offset", + "type": "int", + "meta": "uint32" + }, + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "data", + "type": "PackedByteArray" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "buffer_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1645170096, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "RID" + }, + { + "name": "offset", + "type": "int", + "meta": "uint32" + }, + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + }, + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "buffer_get_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 125363422, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "buffer", + "type": "RID" + }, + { + "name": "offset_bytes", + "type": "int", + "meta": "uint32", + "default_value": "0" + }, + { + "name": "size_bytes", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "render_pipeline_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2911419500, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "framebuffer_format", + "type": "int", + "meta": "int64" + }, + { + "name": "vertex_format", + "type": "int", + "meta": "int64" + }, + { + "name": "primitive", + "type": "enum::RenderingDevice.RenderPrimitive" + }, + { + "name": "rasterization_state", + "type": "RDPipelineRasterizationState" + }, + { + "name": "multisample_state", + "type": "RDPipelineMultisampleState" + }, + { + "name": "stencil_state", + "type": "RDPipelineDepthStencilState" + }, + { + "name": "color_blend_state", + "type": "RDPipelineColorBlendState" + }, + { + "name": "dynamic_state_flags", + "type": "bitfield::RenderingDevice.PipelineDynamicStateFlags", + "default_value": "0" + }, + { + "name": "for_render_pass", + "type": "int", + "meta": "uint32", + "default_value": "0" + }, + { + "name": "specialization_constants", + "type": "typedarray::RDPipelineSpecializationConstant", + "default_value": "Array[RDPipelineSpecializationConstant]([])" + } + ] + }, + { + "name": "render_pipeline_is_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "render_pipeline", + "type": "RID" + } + ] + }, + { + "name": "compute_pipeline_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 403593840, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "specialization_constants", + "type": "typedarray::RDPipelineSpecializationConstant", + "default_value": "Array[RDPipelineSpecializationConstant]([])" + } + ] + }, + { + "name": "compute_pipeline_is_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "compute_pieline", + "type": "RID" + } + ] + }, + { + "name": "screen_get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "screen_get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "screen_get_framebuffer_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "draw_list_begin_for_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3988079995, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "clear_color", + "type": "Color", + "default_value": "Color(0, 0, 0, 1)" + } + ] + }, + { + "name": "draw_list_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4252992020, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "framebuffer", + "type": "RID" + }, + { + "name": "initial_color_action", + "type": "enum::RenderingDevice.InitialAction" + }, + { + "name": "final_color_action", + "type": "enum::RenderingDevice.FinalAction" + }, + { + "name": "initial_depth_action", + "type": "enum::RenderingDevice.InitialAction" + }, + { + "name": "final_depth_action", + "type": "enum::RenderingDevice.FinalAction" + }, + { + "name": "clear_color_values", + "type": "PackedColorArray", + "default_value": "PackedColorArray()" + }, + { + "name": "clear_depth", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "clear_stencil", + "type": "int", + "meta": "uint32", + "default_value": "0" + }, + { + "name": "region", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "storage_textures", + "type": "Array", + "default_value": "Array[RID]([])" + } + ] + }, + { + "name": "draw_list_begin_split", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 832527510, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "framebuffer", + "type": "RID" + }, + { + "name": "splits", + "type": "int", + "meta": "uint32" + }, + { + "name": "initial_color_action", + "type": "enum::RenderingDevice.InitialAction" + }, + { + "name": "final_color_action", + "type": "enum::RenderingDevice.FinalAction" + }, + { + "name": "initial_depth_action", + "type": "enum::RenderingDevice.InitialAction" + }, + { + "name": "final_depth_action", + "type": "enum::RenderingDevice.FinalAction" + }, + { + "name": "clear_color_values", + "type": "PackedColorArray", + "default_value": "PackedColorArray()" + }, + { + "name": "clear_depth", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "clear_stencil", + "type": "int", + "meta": "uint32", + "default_value": "0" + }, + { + "name": "region", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "storage_textures", + "type": "typedarray::RID", + "default_value": "Array[RID]([])" + } + ] + }, + { + "name": "draw_list_set_blend_constants", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "draw_list_bind_render_pipeline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "render_pipeline", + "type": "RID" + } + ] + }, + { + "name": "draw_list_bind_uniform_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 749655778, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "uniform_set", + "type": "RID" + }, + { + "name": "set_index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "draw_list_bind_vertex_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "vertex_array", + "type": "RID" + } + ] + }, + { + "name": "draw_list_bind_index_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "index_array", + "type": "RID" + } + ] + }, + { + "name": "draw_list_set_push_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2772371345, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "buffer", + "type": "PackedByteArray" + }, + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "draw_list_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3710874499, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "use_indices", + "type": "bool" + }, + { + "name": "instances", + "type": "int", + "meta": "uint32" + }, + { + "name": "procedural_vertex_count", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "draw_list_enable_scissor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 338791288, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + }, + { + "name": "rect", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + } + ] + }, + { + "name": "draw_list_disable_scissor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "draw_list", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "draw_list_switch_to_next_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "draw_list_switch_to_next_pass_split", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2865087369, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "splits", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "draw_list_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 422991495, + "arguments": [ + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "compute_list_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968564752, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "allow_draw_overlap", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "compute_list_bind_compute_pipeline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + }, + { + "name": "compute_pipeline", + "type": "RID" + } + ] + }, + { + "name": "compute_list_set_push_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2772371345, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + }, + { + "name": "buffer", + "type": "PackedByteArray" + }, + { + "name": "size_bytes", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "compute_list_bind_uniform_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 749655778, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + }, + { + "name": "uniform_set", + "type": "RID" + }, + { + "name": "set_index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "compute_list_dispatch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4275841770, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + }, + { + "name": "x_groups", + "type": "int", + "meta": "uint32" + }, + { + "name": "y_groups", + "type": "int", + "meta": "uint32" + }, + { + "name": "z_groups", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "compute_list_add_barrier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "compute_list", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "compute_list_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 422991495, + "arguments": [ + { + "name": "post_barrier", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "capture_timestamp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_captured_timestamps_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_captured_timestamps_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_captured_timestamp_gpu_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_captured_timestamp_cpu_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_captured_timestamp_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "limit_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1559202131, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "limit", + "type": "enum::RenderingDevice.Limit" + } + ] + }, + { + "name": "get_frame_delay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "submit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "barrier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 266666049, + "arguments": [ + { + "name": "from", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + }, + { + "name": "to", + "type": "bitfield::RenderingDevice.BarrierMask", + "default_value": "7" + } + ] + }, + { + "name": "full_barrier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_local_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2846302423, + "return_value": { + "type": "RenderingDevice" + } + }, + { + "name": "set_resource_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "id", + "type": "RID" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "draw_command_begin_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1636512886, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "draw_command_insert_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1636512886, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "draw_command_end_label", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_device_vendor_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_device_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_device_pipeline_cache_uuid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_memory_usage", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 251690689, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "type", + "type": "enum::RenderingDevice.MemoryType" + } + ] + }, + { + "name": "get_driver_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501815484, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "resource", + "type": "enum::RenderingDevice.DriverResource" + }, + { + "name": "rid", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "uint64" + } + ] + } + ] + }, + { + "name": "RenderingServer", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "NO_INDEX_ARRAY", + "value": -1 + }, + { + "name": "ARRAY_WEIGHTS_SIZE", + "value": 4 + }, + { + "name": "CANVAS_ITEM_Z_MIN", + "value": -4096 + }, + { + "name": "CANVAS_ITEM_Z_MAX", + "value": 4096 + }, + { + "name": "MAX_GLOW_LEVELS", + "value": 7 + }, + { + "name": "MAX_CURSORS", + "value": 8 + }, + { + "name": "MAX_2D_DIRECTIONAL_LIGHTS", + "value": 8 + }, + { + "name": "MATERIAL_RENDER_PRIORITY_MIN", + "value": -128 + }, + { + "name": "MATERIAL_RENDER_PRIORITY_MAX", + "value": 127 + }, + { + "name": "ARRAY_CUSTOM_COUNT", + "value": 4 + }, + { + "name": "PARTICLES_EMIT_FLAG_POSITION", + "value": 1 + }, + { + "name": "PARTICLES_EMIT_FLAG_ROTATION_SCALE", + "value": 2 + }, + { + "name": "PARTICLES_EMIT_FLAG_VELOCITY", + "value": 4 + }, + { + "name": "PARTICLES_EMIT_FLAG_COLOR", + "value": 8 + }, + { + "name": "PARTICLES_EMIT_FLAG_CUSTOM", + "value": 16 + } + ], + "enums": [ + { + "name": "TextureLayeredType", + "is_bitfield": false, + "values": [ + { + "name": "TEXTURE_LAYERED_2D_ARRAY", + "value": 0 + }, + { + "name": "TEXTURE_LAYERED_CUBEMAP", + "value": 1 + }, + { + "name": "TEXTURE_LAYERED_CUBEMAP_ARRAY", + "value": 2 + } + ] + }, + { + "name": "CubeMapLayer", + "is_bitfield": false, + "values": [ + { + "name": "CUBEMAP_LAYER_LEFT", + "value": 0 + }, + { + "name": "CUBEMAP_LAYER_RIGHT", + "value": 1 + }, + { + "name": "CUBEMAP_LAYER_BOTTOM", + "value": 2 + }, + { + "name": "CUBEMAP_LAYER_TOP", + "value": 3 + }, + { + "name": "CUBEMAP_LAYER_FRONT", + "value": 4 + }, + { + "name": "CUBEMAP_LAYER_BACK", + "value": 5 + } + ] + }, + { + "name": "ShaderMode", + "is_bitfield": false, + "values": [ + { + "name": "SHADER_SPATIAL", + "value": 0 + }, + { + "name": "SHADER_CANVAS_ITEM", + "value": 1 + }, + { + "name": "SHADER_PARTICLES", + "value": 2 + }, + { + "name": "SHADER_SKY", + "value": 3 + }, + { + "name": "SHADER_FOG", + "value": 4 + }, + { + "name": "SHADER_MAX", + "value": 5 + } + ] + }, + { + "name": "ArrayType", + "is_bitfield": false, + "values": [ + { + "name": "ARRAY_VERTEX", + "value": 0 + }, + { + "name": "ARRAY_NORMAL", + "value": 1 + }, + { + "name": "ARRAY_TANGENT", + "value": 2 + }, + { + "name": "ARRAY_COLOR", + "value": 3 + }, + { + "name": "ARRAY_TEX_UV", + "value": 4 + }, + { + "name": "ARRAY_TEX_UV2", + "value": 5 + }, + { + "name": "ARRAY_CUSTOM0", + "value": 6 + }, + { + "name": "ARRAY_CUSTOM1", + "value": 7 + }, + { + "name": "ARRAY_CUSTOM2", + "value": 8 + }, + { + "name": "ARRAY_CUSTOM3", + "value": 9 + }, + { + "name": "ARRAY_BONES", + "value": 10 + }, + { + "name": "ARRAY_WEIGHTS", + "value": 11 + }, + { + "name": "ARRAY_INDEX", + "value": 12 + }, + { + "name": "ARRAY_MAX", + "value": 13 + } + ] + }, + { + "name": "ArrayCustomFormat", + "is_bitfield": false, + "values": [ + { + "name": "ARRAY_CUSTOM_RGBA8_UNORM", + "value": 0 + }, + { + "name": "ARRAY_CUSTOM_RGBA8_SNORM", + "value": 1 + }, + { + "name": "ARRAY_CUSTOM_RG_HALF", + "value": 2 + }, + { + "name": "ARRAY_CUSTOM_RGBA_HALF", + "value": 3 + }, + { + "name": "ARRAY_CUSTOM_R_FLOAT", + "value": 4 + }, + { + "name": "ARRAY_CUSTOM_RG_FLOAT", + "value": 5 + }, + { + "name": "ARRAY_CUSTOM_RGB_FLOAT", + "value": 6 + }, + { + "name": "ARRAY_CUSTOM_RGBA_FLOAT", + "value": 7 + }, + { + "name": "ARRAY_CUSTOM_MAX", + "value": 8 + } + ] + }, + { + "name": "ArrayFormat", + "is_bitfield": true, + "values": [ + { + "name": "ARRAY_FORMAT_VERTEX", + "value": 1 + }, + { + "name": "ARRAY_FORMAT_NORMAL", + "value": 2 + }, + { + "name": "ARRAY_FORMAT_TANGENT", + "value": 4 + }, + { + "name": "ARRAY_FORMAT_COLOR", + "value": 8 + }, + { + "name": "ARRAY_FORMAT_TEX_UV", + "value": 16 + }, + { + "name": "ARRAY_FORMAT_TEX_UV2", + "value": 32 + }, + { + "name": "ARRAY_FORMAT_CUSTOM0", + "value": 64 + }, + { + "name": "ARRAY_FORMAT_CUSTOM1", + "value": 128 + }, + { + "name": "ARRAY_FORMAT_CUSTOM2", + "value": 256 + }, + { + "name": "ARRAY_FORMAT_CUSTOM3", + "value": 512 + }, + { + "name": "ARRAY_FORMAT_BONES", + "value": 1024 + }, + { + "name": "ARRAY_FORMAT_WEIGHTS", + "value": 2048 + }, + { + "name": "ARRAY_FORMAT_INDEX", + "value": 4096 + }, + { + "name": "ARRAY_FORMAT_BLEND_SHAPE_MASK", + "value": 7 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_BASE", + "value": 13 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_BITS", + "value": 3 + }, + { + "name": "ARRAY_FORMAT_CUSTOM0_SHIFT", + "value": 13 + }, + { + "name": "ARRAY_FORMAT_CUSTOM1_SHIFT", + "value": 16 + }, + { + "name": "ARRAY_FORMAT_CUSTOM2_SHIFT", + "value": 19 + }, + { + "name": "ARRAY_FORMAT_CUSTOM3_SHIFT", + "value": 22 + }, + { + "name": "ARRAY_FORMAT_CUSTOM_MASK", + "value": 7 + }, + { + "name": "ARRAY_COMPRESS_FLAGS_BASE", + "value": 25 + }, + { + "name": "ARRAY_FLAG_USE_2D_VERTICES", + "value": 33554432 + }, + { + "name": "ARRAY_FLAG_USE_DYNAMIC_UPDATE", + "value": 67108864 + }, + { + "name": "ARRAY_FLAG_USE_8_BONE_WEIGHTS", + "value": 134217728 + }, + { + "name": "ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY", + "value": 268435456 + } + ] + }, + { + "name": "PrimitiveType", + "is_bitfield": false, + "values": [ + { + "name": "PRIMITIVE_POINTS", + "value": 0 + }, + { + "name": "PRIMITIVE_LINES", + "value": 1 + }, + { + "name": "PRIMITIVE_LINE_STRIP", + "value": 2 + }, + { + "name": "PRIMITIVE_TRIANGLES", + "value": 3 + }, + { + "name": "PRIMITIVE_TRIANGLE_STRIP", + "value": 4 + }, + { + "name": "PRIMITIVE_MAX", + "value": 5 + } + ] + }, + { + "name": "BlendShapeMode", + "is_bitfield": false, + "values": [ + { + "name": "BLEND_SHAPE_MODE_NORMALIZED", + "value": 0 + }, + { + "name": "BLEND_SHAPE_MODE_RELATIVE", + "value": 1 + } + ] + }, + { + "name": "MultimeshTransformFormat", + "is_bitfield": false, + "values": [ + { + "name": "MULTIMESH_TRANSFORM_2D", + "value": 0 + }, + { + "name": "MULTIMESH_TRANSFORM_3D", + "value": 1 + } + ] + }, + { + "name": "LightProjectorFilter", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_PROJECTOR_FILTER_NEAREST", + "value": 0 + }, + { + "name": "LIGHT_PROJECTOR_FILTER_LINEAR", + "value": 1 + }, + { + "name": "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS", + "value": 2 + }, + { + "name": "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS", + "value": 3 + }, + { + "name": "LIGHT_PROJECTOR_FILTER_NEAREST_MIPMAPS_ANISOTROPIC", + "value": 4 + }, + { + "name": "LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS_ANISOTROPIC", + "value": 5 + } + ] + }, + { + "name": "LightType", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_DIRECTIONAL", + "value": 0 + }, + { + "name": "LIGHT_OMNI", + "value": 1 + }, + { + "name": "LIGHT_SPOT", + "value": 2 + } + ] + }, + { + "name": "LightParam", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_PARAM_ENERGY", + "value": 0 + }, + { + "name": "LIGHT_PARAM_INDIRECT_ENERGY", + "value": 1 + }, + { + "name": "LIGHT_PARAM_VOLUMETRIC_FOG_ENERGY", + "value": 2 + }, + { + "name": "LIGHT_PARAM_SPECULAR", + "value": 3 + }, + { + "name": "LIGHT_PARAM_RANGE", + "value": 4 + }, + { + "name": "LIGHT_PARAM_SIZE", + "value": 5 + }, + { + "name": "LIGHT_PARAM_ATTENUATION", + "value": 6 + }, + { + "name": "LIGHT_PARAM_SPOT_ANGLE", + "value": 7 + }, + { + "name": "LIGHT_PARAM_SPOT_ATTENUATION", + "value": 8 + }, + { + "name": "LIGHT_PARAM_SHADOW_MAX_DISTANCE", + "value": 9 + }, + { + "name": "LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET", + "value": 10 + }, + { + "name": "LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET", + "value": 11 + }, + { + "name": "LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET", + "value": 12 + }, + { + "name": "LIGHT_PARAM_SHADOW_FADE_START", + "value": 13 + }, + { + "name": "LIGHT_PARAM_SHADOW_NORMAL_BIAS", + "value": 14 + }, + { + "name": "LIGHT_PARAM_SHADOW_BIAS", + "value": 15 + }, + { + "name": "LIGHT_PARAM_SHADOW_PANCAKE_SIZE", + "value": 16 + }, + { + "name": "LIGHT_PARAM_SHADOW_OPACITY", + "value": 17 + }, + { + "name": "LIGHT_PARAM_SHADOW_BLUR", + "value": 18 + }, + { + "name": "LIGHT_PARAM_TRANSMITTANCE_BIAS", + "value": 19 + }, + { + "name": "LIGHT_PARAM_MAX", + "value": 21 + } + ] + }, + { + "name": "LightBakeMode", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_BAKE_DISABLED", + "value": 0 + }, + { + "name": "LIGHT_BAKE_STATIC", + "value": 1 + }, + { + "name": "LIGHT_BAKE_DYNAMIC", + "value": 2 + } + ] + }, + { + "name": "LightOmniShadowMode", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_OMNI_SHADOW_DUAL_PARABOLOID", + "value": 0 + }, + { + "name": "LIGHT_OMNI_SHADOW_CUBE", + "value": 1 + } + ] + }, + { + "name": "LightDirectionalShadowMode", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL", + "value": 0 + }, + { + "name": "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS", + "value": 1 + }, + { + "name": "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS", + "value": 2 + } + ] + }, + { + "name": "LightDirectionalSkyMode", + "is_bitfield": false, + "values": [ + { + "name": "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_AND_SKY", + "value": 0 + }, + { + "name": "LIGHT_DIRECTIONAL_SKY_MODE_LIGHT_ONLY", + "value": 1 + }, + { + "name": "LIGHT_DIRECTIONAL_SKY_MODE_SKY_ONLY", + "value": 2 + } + ] + }, + { + "name": "ShadowQuality", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_QUALITY_HARD", + "value": 0 + }, + { + "name": "SHADOW_QUALITY_SOFT_VERY_LOW", + "value": 1 + }, + { + "name": "SHADOW_QUALITY_SOFT_LOW", + "value": 2 + }, + { + "name": "SHADOW_QUALITY_SOFT_MEDIUM", + "value": 3 + }, + { + "name": "SHADOW_QUALITY_SOFT_HIGH", + "value": 4 + }, + { + "name": "SHADOW_QUALITY_SOFT_ULTRA", + "value": 5 + }, + { + "name": "SHADOW_QUALITY_MAX", + "value": 6 + } + ] + }, + { + "name": "ReflectionProbeUpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "REFLECTION_PROBE_UPDATE_ONCE", + "value": 0 + }, + { + "name": "REFLECTION_PROBE_UPDATE_ALWAYS", + "value": 1 + } + ] + }, + { + "name": "ReflectionProbeAmbientMode", + "is_bitfield": false, + "values": [ + { + "name": "REFLECTION_PROBE_AMBIENT_DISABLED", + "value": 0 + }, + { + "name": "REFLECTION_PROBE_AMBIENT_ENVIRONMENT", + "value": 1 + }, + { + "name": "REFLECTION_PROBE_AMBIENT_COLOR", + "value": 2 + } + ] + }, + { + "name": "DecalTexture", + "is_bitfield": false, + "values": [ + { + "name": "DECAL_TEXTURE_ALBEDO", + "value": 0 + }, + { + "name": "DECAL_TEXTURE_NORMAL", + "value": 1 + }, + { + "name": "DECAL_TEXTURE_ORM", + "value": 2 + }, + { + "name": "DECAL_TEXTURE_EMISSION", + "value": 3 + }, + { + "name": "DECAL_TEXTURE_MAX", + "value": 4 + } + ] + }, + { + "name": "DecalFilter", + "is_bitfield": false, + "values": [ + { + "name": "DECAL_FILTER_NEAREST", + "value": 0 + }, + { + "name": "DECAL_FILTER_LINEAR", + "value": 1 + }, + { + "name": "DECAL_FILTER_NEAREST_MIPMAPS", + "value": 2 + }, + { + "name": "DECAL_FILTER_LINEAR_MIPMAPS", + "value": 3 + }, + { + "name": "DECAL_FILTER_NEAREST_MIPMAPS_ANISOTROPIC", + "value": 4 + }, + { + "name": "DECAL_FILTER_LINEAR_MIPMAPS_ANISOTROPIC", + "value": 5 + } + ] + }, + { + "name": "VoxelGIQuality", + "is_bitfield": false, + "values": [ + { + "name": "VOXEL_GI_QUALITY_LOW", + "value": 0 + }, + { + "name": "VOXEL_GI_QUALITY_HIGH", + "value": 1 + } + ] + }, + { + "name": "ParticlesMode", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLES_MODE_2D", + "value": 0 + }, + { + "name": "PARTICLES_MODE_3D", + "value": 1 + } + ] + }, + { + "name": "ParticlesTransformAlign", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLES_TRANSFORM_ALIGN_DISABLED", + "value": 0 + }, + { + "name": "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD", + "value": 1 + }, + { + "name": "PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY", + "value": 2 + }, + { + "name": "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY", + "value": 3 + } + ] + }, + { + "name": "ParticlesDrawOrder", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLES_DRAW_ORDER_INDEX", + "value": 0 + }, + { + "name": "PARTICLES_DRAW_ORDER_LIFETIME", + "value": 1 + }, + { + "name": "PARTICLES_DRAW_ORDER_REVERSE_LIFETIME", + "value": 2 + }, + { + "name": "PARTICLES_DRAW_ORDER_VIEW_DEPTH", + "value": 3 + } + ] + }, + { + "name": "ParticlesCollisionType", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLES_COLLISION_TYPE_SPHERE_ATTRACT", + "value": 0 + }, + { + "name": "PARTICLES_COLLISION_TYPE_BOX_ATTRACT", + "value": 1 + }, + { + "name": "PARTICLES_COLLISION_TYPE_VECTOR_FIELD_ATTRACT", + "value": 2 + }, + { + "name": "PARTICLES_COLLISION_TYPE_SPHERE_COLLIDE", + "value": 3 + }, + { + "name": "PARTICLES_COLLISION_TYPE_BOX_COLLIDE", + "value": 4 + }, + { + "name": "PARTICLES_COLLISION_TYPE_SDF_COLLIDE", + "value": 5 + }, + { + "name": "PARTICLES_COLLISION_TYPE_HEIGHTFIELD_COLLIDE", + "value": 6 + } + ] + }, + { + "name": "ParticlesCollisionHeightfieldResolution", + "is_bitfield": false, + "values": [ + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_256", + "value": 0 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_512", + "value": 1 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_1024", + "value": 2 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_2048", + "value": 3 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_4096", + "value": 4 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_8192", + "value": 5 + }, + { + "name": "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX", + "value": 6 + } + ] + }, + { + "name": "FogVolumeShape", + "is_bitfield": false, + "values": [ + { + "name": "FOG_VOLUME_SHAPE_ELLIPSOID", + "value": 0 + }, + { + "name": "FOG_VOLUME_SHAPE_CONE", + "value": 1 + }, + { + "name": "FOG_VOLUME_SHAPE_CYLINDER", + "value": 2 + }, + { + "name": "FOG_VOLUME_SHAPE_BOX", + "value": 3 + }, + { + "name": "FOG_VOLUME_SHAPE_WORLD", + "value": 4 + }, + { + "name": "FOG_VOLUME_SHAPE_MAX", + "value": 5 + } + ] + }, + { + "name": "ViewportScaling3DMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_SCALING_3D_MODE_BILINEAR", + "value": 0 + }, + { + "name": "VIEWPORT_SCALING_3D_MODE_FSR", + "value": 1 + }, + { + "name": "VIEWPORT_SCALING_3D_MODE_MAX", + "value": 2 + } + ] + }, + { + "name": "ViewportUpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_UPDATE_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_UPDATE_ONCE", + "value": 1 + }, + { + "name": "VIEWPORT_UPDATE_WHEN_VISIBLE", + "value": 2 + }, + { + "name": "VIEWPORT_UPDATE_WHEN_PARENT_VISIBLE", + "value": 3 + }, + { + "name": "VIEWPORT_UPDATE_ALWAYS", + "value": 4 + } + ] + }, + { + "name": "ViewportClearMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_CLEAR_ALWAYS", + "value": 0 + }, + { + "name": "VIEWPORT_CLEAR_NEVER", + "value": 1 + }, + { + "name": "VIEWPORT_CLEAR_ONLY_NEXT_FRAME", + "value": 2 + } + ] + }, + { + "name": "ViewportEnvironmentMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_ENVIRONMENT_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_ENVIRONMENT_ENABLED", + "value": 1 + }, + { + "name": "VIEWPORT_ENVIRONMENT_INHERIT", + "value": 2 + }, + { + "name": "VIEWPORT_ENVIRONMENT_MAX", + "value": 3 + } + ] + }, + { + "name": "ViewportSDFOversize", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_SDF_OVERSIZE_100_PERCENT", + "value": 0 + }, + { + "name": "VIEWPORT_SDF_OVERSIZE_120_PERCENT", + "value": 1 + }, + { + "name": "VIEWPORT_SDF_OVERSIZE_150_PERCENT", + "value": 2 + }, + { + "name": "VIEWPORT_SDF_OVERSIZE_200_PERCENT", + "value": 3 + }, + { + "name": "VIEWPORT_SDF_OVERSIZE_MAX", + "value": 4 + } + ] + }, + { + "name": "ViewportSDFScale", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_SDF_SCALE_100_PERCENT", + "value": 0 + }, + { + "name": "VIEWPORT_SDF_SCALE_50_PERCENT", + "value": 1 + }, + { + "name": "VIEWPORT_SDF_SCALE_25_PERCENT", + "value": 2 + }, + { + "name": "VIEWPORT_SDF_SCALE_MAX", + "value": 3 + } + ] + }, + { + "name": "ViewportMSAA", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_MSAA_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_MSAA_2X", + "value": 1 + }, + { + "name": "VIEWPORT_MSAA_4X", + "value": 2 + }, + { + "name": "VIEWPORT_MSAA_8X", + "value": 3 + }, + { + "name": "VIEWPORT_MSAA_MAX", + "value": 4 + } + ] + }, + { + "name": "ViewportScreenSpaceAA", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_SCREEN_SPACE_AA_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_SCREEN_SPACE_AA_FXAA", + "value": 1 + }, + { + "name": "VIEWPORT_SCREEN_SPACE_AA_MAX", + "value": 2 + } + ] + }, + { + "name": "ViewportOcclusionCullingBuildQuality", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_OCCLUSION_BUILD_QUALITY_LOW", + "value": 0 + }, + { + "name": "VIEWPORT_OCCLUSION_BUILD_QUALITY_MEDIUM", + "value": 1 + }, + { + "name": "VIEWPORT_OCCLUSION_BUILD_QUALITY_HIGH", + "value": 2 + } + ] + }, + { + "name": "ViewportRenderInfo", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME", + "value": 0 + }, + { + "name": "VIEWPORT_RENDER_INFO_PRIMITIVES_IN_FRAME", + "value": 1 + }, + { + "name": "VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME", + "value": 2 + }, + { + "name": "VIEWPORT_RENDER_INFO_MAX", + "value": 3 + } + ] + }, + { + "name": "ViewportRenderInfoType", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_RENDER_INFO_TYPE_VISIBLE", + "value": 0 + }, + { + "name": "VIEWPORT_RENDER_INFO_TYPE_SHADOW", + "value": 1 + }, + { + "name": "VIEWPORT_RENDER_INFO_TYPE_MAX", + "value": 2 + } + ] + }, + { + "name": "ViewportDebugDraw", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_DEBUG_DRAW_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_UNSHADED", + "value": 1 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_LIGHTING", + "value": 2 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_OVERDRAW", + "value": 3 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_WIREFRAME", + "value": 4 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER", + "value": 5 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO", + "value": 6 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING", + "value": 7 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION", + "value": 8 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS", + "value": 9 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS", + "value": 10 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE", + "value": 11 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SSAO", + "value": 12 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SSIL", + "value": 13 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_PSSM_SPLITS", + "value": 14 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_DECAL_ATLAS", + "value": 15 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SDFGI", + "value": 16 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_SDFGI_PROBES", + "value": 17 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_GI_BUFFER", + "value": 18 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_DISABLE_LOD", + "value": 19 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_CLUSTER_OMNI_LIGHTS", + "value": 20 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_CLUSTER_SPOT_LIGHTS", + "value": 21 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_CLUSTER_DECALS", + "value": 22 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_CLUSTER_REFLECTION_PROBES", + "value": 23 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_OCCLUDERS", + "value": 24 + }, + { + "name": "VIEWPORT_DEBUG_DRAW_MOTION_VECTORS", + "value": 25 + } + ] + }, + { + "name": "ViewportVRSMode", + "is_bitfield": false, + "values": [ + { + "name": "VIEWPORT_VRS_DISABLED", + "value": 0 + }, + { + "name": "VIEWPORT_VRS_TEXTURE", + "value": 1 + }, + { + "name": "VIEWPORT_VRS_XR", + "value": 2 + }, + { + "name": "VIEWPORT_VRS_MAX", + "value": 3 + } + ] + }, + { + "name": "SkyMode", + "is_bitfield": false, + "values": [ + { + "name": "SKY_MODE_AUTOMATIC", + "value": 0 + }, + { + "name": "SKY_MODE_QUALITY", + "value": 1 + }, + { + "name": "SKY_MODE_INCREMENTAL", + "value": 2 + }, + { + "name": "SKY_MODE_REALTIME", + "value": 3 + } + ] + }, + { + "name": "EnvironmentBG", + "is_bitfield": false, + "values": [ + { + "name": "ENV_BG_CLEAR_COLOR", + "value": 0 + }, + { + "name": "ENV_BG_COLOR", + "value": 1 + }, + { + "name": "ENV_BG_SKY", + "value": 2 + }, + { + "name": "ENV_BG_CANVAS", + "value": 3 + }, + { + "name": "ENV_BG_KEEP", + "value": 4 + }, + { + "name": "ENV_BG_CAMERA_FEED", + "value": 5 + }, + { + "name": "ENV_BG_MAX", + "value": 6 + } + ] + }, + { + "name": "EnvironmentAmbientSource", + "is_bitfield": false, + "values": [ + { + "name": "ENV_AMBIENT_SOURCE_BG", + "value": 0 + }, + { + "name": "ENV_AMBIENT_SOURCE_DISABLED", + "value": 1 + }, + { + "name": "ENV_AMBIENT_SOURCE_COLOR", + "value": 2 + }, + { + "name": "ENV_AMBIENT_SOURCE_SKY", + "value": 3 + } + ] + }, + { + "name": "EnvironmentReflectionSource", + "is_bitfield": false, + "values": [ + { + "name": "ENV_REFLECTION_SOURCE_BG", + "value": 0 + }, + { + "name": "ENV_REFLECTION_SOURCE_DISABLED", + "value": 1 + }, + { + "name": "ENV_REFLECTION_SOURCE_SKY", + "value": 2 + } + ] + }, + { + "name": "EnvironmentGlowBlendMode", + "is_bitfield": false, + "values": [ + { + "name": "ENV_GLOW_BLEND_MODE_ADDITIVE", + "value": 0 + }, + { + "name": "ENV_GLOW_BLEND_MODE_SCREEN", + "value": 1 + }, + { + "name": "ENV_GLOW_BLEND_MODE_SOFTLIGHT", + "value": 2 + }, + { + "name": "ENV_GLOW_BLEND_MODE_REPLACE", + "value": 3 + }, + { + "name": "ENV_GLOW_BLEND_MODE_MIX", + "value": 4 + } + ] + }, + { + "name": "EnvironmentToneMapper", + "is_bitfield": false, + "values": [ + { + "name": "ENV_TONE_MAPPER_LINEAR", + "value": 0 + }, + { + "name": "ENV_TONE_MAPPER_REINHARD", + "value": 1 + }, + { + "name": "ENV_TONE_MAPPER_FILMIC", + "value": 2 + }, + { + "name": "ENV_TONE_MAPPER_ACES", + "value": 3 + } + ] + }, + { + "name": "EnvironmentSSRRoughnessQuality", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SSR_ROUGHNESS_QUALITY_DISABLED", + "value": 0 + }, + { + "name": "ENV_SSR_ROUGHNESS_QUALITY_LOW", + "value": 1 + }, + { + "name": "ENV_SSR_ROUGHNESS_QUALITY_MEDIUM", + "value": 2 + }, + { + "name": "ENV_SSR_ROUGHNESS_QUALITY_HIGH", + "value": 3 + } + ] + }, + { + "name": "EnvironmentSSAOQuality", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SSAO_QUALITY_VERY_LOW", + "value": 0 + }, + { + "name": "ENV_SSAO_QUALITY_LOW", + "value": 1 + }, + { + "name": "ENV_SSAO_QUALITY_MEDIUM", + "value": 2 + }, + { + "name": "ENV_SSAO_QUALITY_HIGH", + "value": 3 + }, + { + "name": "ENV_SSAO_QUALITY_ULTRA", + "value": 4 + } + ] + }, + { + "name": "EnvironmentSSILQuality", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SSIL_QUALITY_VERY_LOW", + "value": 0 + }, + { + "name": "ENV_SSIL_QUALITY_LOW", + "value": 1 + }, + { + "name": "ENV_SSIL_QUALITY_MEDIUM", + "value": 2 + }, + { + "name": "ENV_SSIL_QUALITY_HIGH", + "value": 3 + }, + { + "name": "ENV_SSIL_QUALITY_ULTRA", + "value": 4 + } + ] + }, + { + "name": "EnvironmentSDFGIYScale", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SDFGI_Y_SCALE_50_PERCENT", + "value": 0 + }, + { + "name": "ENV_SDFGI_Y_SCALE_75_PERCENT", + "value": 1 + }, + { + "name": "ENV_SDFGI_Y_SCALE_100_PERCENT", + "value": 2 + } + ] + }, + { + "name": "EnvironmentSDFGIRayCount", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SDFGI_RAY_COUNT_4", + "value": 0 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_8", + "value": 1 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_16", + "value": 2 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_32", + "value": 3 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_64", + "value": 4 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_96", + "value": 5 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_128", + "value": 6 + }, + { + "name": "ENV_SDFGI_RAY_COUNT_MAX", + "value": 7 + } + ] + }, + { + "name": "EnvironmentSDFGIFramesToConverge", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SDFGI_CONVERGE_IN_5_FRAMES", + "value": 0 + }, + { + "name": "ENV_SDFGI_CONVERGE_IN_10_FRAMES", + "value": 1 + }, + { + "name": "ENV_SDFGI_CONVERGE_IN_15_FRAMES", + "value": 2 + }, + { + "name": "ENV_SDFGI_CONVERGE_IN_20_FRAMES", + "value": 3 + }, + { + "name": "ENV_SDFGI_CONVERGE_IN_25_FRAMES", + "value": 4 + }, + { + "name": "ENV_SDFGI_CONVERGE_IN_30_FRAMES", + "value": 5 + }, + { + "name": "ENV_SDFGI_CONVERGE_MAX", + "value": 6 + } + ] + }, + { + "name": "EnvironmentSDFGIFramesToUpdateLight", + "is_bitfield": false, + "values": [ + { + "name": "ENV_SDFGI_UPDATE_LIGHT_IN_1_FRAME", + "value": 0 + }, + { + "name": "ENV_SDFGI_UPDATE_LIGHT_IN_2_FRAMES", + "value": 1 + }, + { + "name": "ENV_SDFGI_UPDATE_LIGHT_IN_4_FRAMES", + "value": 2 + }, + { + "name": "ENV_SDFGI_UPDATE_LIGHT_IN_8_FRAMES", + "value": 3 + }, + { + "name": "ENV_SDFGI_UPDATE_LIGHT_IN_16_FRAMES", + "value": 4 + }, + { + "name": "ENV_SDFGI_UPDATE_LIGHT_MAX", + "value": 5 + } + ] + }, + { + "name": "SubSurfaceScatteringQuality", + "is_bitfield": false, + "values": [ + { + "name": "SUB_SURFACE_SCATTERING_QUALITY_DISABLED", + "value": 0 + }, + { + "name": "SUB_SURFACE_SCATTERING_QUALITY_LOW", + "value": 1 + }, + { + "name": "SUB_SURFACE_SCATTERING_QUALITY_MEDIUM", + "value": 2 + }, + { + "name": "SUB_SURFACE_SCATTERING_QUALITY_HIGH", + "value": 3 + } + ] + }, + { + "name": "DOFBokehShape", + "is_bitfield": false, + "values": [ + { + "name": "DOF_BOKEH_BOX", + "value": 0 + }, + { + "name": "DOF_BOKEH_HEXAGON", + "value": 1 + }, + { + "name": "DOF_BOKEH_CIRCLE", + "value": 2 + } + ] + }, + { + "name": "DOFBlurQuality", + "is_bitfield": false, + "values": [ + { + "name": "DOF_BLUR_QUALITY_VERY_LOW", + "value": 0 + }, + { + "name": "DOF_BLUR_QUALITY_LOW", + "value": 1 + }, + { + "name": "DOF_BLUR_QUALITY_MEDIUM", + "value": 2 + }, + { + "name": "DOF_BLUR_QUALITY_HIGH", + "value": 3 + } + ] + }, + { + "name": "InstanceType", + "is_bitfield": false, + "values": [ + { + "name": "INSTANCE_NONE", + "value": 0 + }, + { + "name": "INSTANCE_MESH", + "value": 1 + }, + { + "name": "INSTANCE_MULTIMESH", + "value": 2 + }, + { + "name": "INSTANCE_PARTICLES", + "value": 3 + }, + { + "name": "INSTANCE_PARTICLES_COLLISION", + "value": 4 + }, + { + "name": "INSTANCE_LIGHT", + "value": 5 + }, + { + "name": "INSTANCE_REFLECTION_PROBE", + "value": 6 + }, + { + "name": "INSTANCE_DECAL", + "value": 7 + }, + { + "name": "INSTANCE_VOXEL_GI", + "value": 8 + }, + { + "name": "INSTANCE_LIGHTMAP", + "value": 9 + }, + { + "name": "INSTANCE_OCCLUDER", + "value": 10 + }, + { + "name": "INSTANCE_VISIBLITY_NOTIFIER", + "value": 11 + }, + { + "name": "INSTANCE_FOG_VOLUME", + "value": 12 + }, + { + "name": "INSTANCE_MAX", + "value": 13 + }, + { + "name": "INSTANCE_GEOMETRY_MASK", + "value": 14 + } + ] + }, + { + "name": "InstanceFlags", + "is_bitfield": false, + "values": [ + { + "name": "INSTANCE_FLAG_USE_BAKED_LIGHT", + "value": 0 + }, + { + "name": "INSTANCE_FLAG_USE_DYNAMIC_GI", + "value": 1 + }, + { + "name": "INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE", + "value": 2 + }, + { + "name": "INSTANCE_FLAG_IGNORE_OCCLUSION_CULLING", + "value": 3 + }, + { + "name": "INSTANCE_FLAG_MAX", + "value": 4 + } + ] + }, + { + "name": "ShadowCastingSetting", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_CASTING_SETTING_OFF", + "value": 0 + }, + { + "name": "SHADOW_CASTING_SETTING_ON", + "value": 1 + }, + { + "name": "SHADOW_CASTING_SETTING_DOUBLE_SIDED", + "value": 2 + }, + { + "name": "SHADOW_CASTING_SETTING_SHADOWS_ONLY", + "value": 3 + } + ] + }, + { + "name": "VisibilityRangeFadeMode", + "is_bitfield": false, + "values": [ + { + "name": "VISIBILITY_RANGE_FADE_DISABLED", + "value": 0 + }, + { + "name": "VISIBILITY_RANGE_FADE_SELF", + "value": 1 + }, + { + "name": "VISIBILITY_RANGE_FADE_DEPENDENCIES", + "value": 2 + } + ] + }, + { + "name": "BakeChannels", + "is_bitfield": false, + "values": [ + { + "name": "BAKE_CHANNEL_ALBEDO_ALPHA", + "value": 0 + }, + { + "name": "BAKE_CHANNEL_NORMAL", + "value": 1 + }, + { + "name": "BAKE_CHANNEL_ORM", + "value": 2 + }, + { + "name": "BAKE_CHANNEL_EMISSION", + "value": 3 + } + ] + }, + { + "name": "CanvasTextureChannel", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_TEXTURE_CHANNEL_DIFFUSE", + "value": 0 + }, + { + "name": "CANVAS_TEXTURE_CHANNEL_NORMAL", + "value": 1 + }, + { + "name": "CANVAS_TEXTURE_CHANNEL_SPECULAR", + "value": 2 + } + ] + }, + { + "name": "NinePatchAxisMode", + "is_bitfield": false, + "values": [ + { + "name": "NINE_PATCH_STRETCH", + "value": 0 + }, + { + "name": "NINE_PATCH_TILE", + "value": 1 + }, + { + "name": "NINE_PATCH_TILE_FIT", + "value": 2 + } + ] + }, + { + "name": "CanvasItemTextureFilter", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_DEFAULT", + "value": 0 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_NEAREST", + "value": 1 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_LINEAR", + "value": 2 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", + "value": 3 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", + "value": 4 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC", + "value": 5 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC", + "value": 6 + }, + { + "name": "CANVAS_ITEM_TEXTURE_FILTER_MAX", + "value": 7 + } + ] + }, + { + "name": "CanvasItemTextureRepeat", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT", + "value": 0 + }, + { + "name": "CANVAS_ITEM_TEXTURE_REPEAT_DISABLED", + "value": 1 + }, + { + "name": "CANVAS_ITEM_TEXTURE_REPEAT_ENABLED", + "value": 2 + }, + { + "name": "CANVAS_ITEM_TEXTURE_REPEAT_MIRROR", + "value": 3 + }, + { + "name": "CANVAS_ITEM_TEXTURE_REPEAT_MAX", + "value": 4 + } + ] + }, + { + "name": "CanvasGroupMode", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_GROUP_MODE_DISABLED", + "value": 0 + }, + { + "name": "CANVAS_GROUP_MODE_CLIP_ONLY", + "value": 1 + }, + { + "name": "CANVAS_GROUP_MODE_CLIP_AND_DRAW", + "value": 2 + }, + { + "name": "CANVAS_GROUP_MODE_TRANSPARENT", + "value": 3 + } + ] + }, + { + "name": "CanvasLightMode", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_LIGHT_MODE_POINT", + "value": 0 + }, + { + "name": "CANVAS_LIGHT_MODE_DIRECTIONAL", + "value": 1 + } + ] + }, + { + "name": "CanvasLightBlendMode", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_LIGHT_BLEND_MODE_ADD", + "value": 0 + }, + { + "name": "CANVAS_LIGHT_BLEND_MODE_SUB", + "value": 1 + }, + { + "name": "CANVAS_LIGHT_BLEND_MODE_MIX", + "value": 2 + } + ] + }, + { + "name": "CanvasLightShadowFilter", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_LIGHT_FILTER_NONE", + "value": 0 + }, + { + "name": "CANVAS_LIGHT_FILTER_PCF5", + "value": 1 + }, + { + "name": "CANVAS_LIGHT_FILTER_PCF13", + "value": 2 + }, + { + "name": "CANVAS_LIGHT_FILTER_MAX", + "value": 3 + } + ] + }, + { + "name": "CanvasOccluderPolygonCullMode", + "is_bitfield": false, + "values": [ + { + "name": "CANVAS_OCCLUDER_POLYGON_CULL_DISABLED", + "value": 0 + }, + { + "name": "CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE", + "value": 1 + }, + { + "name": "CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE", + "value": 2 + } + ] + }, + { + "name": "GlobalShaderParameterType", + "is_bitfield": false, + "values": [ + { + "name": "GLOBAL_VAR_TYPE_BOOL", + "value": 0 + }, + { + "name": "GLOBAL_VAR_TYPE_BVEC2", + "value": 1 + }, + { + "name": "GLOBAL_VAR_TYPE_BVEC3", + "value": 2 + }, + { + "name": "GLOBAL_VAR_TYPE_BVEC4", + "value": 3 + }, + { + "name": "GLOBAL_VAR_TYPE_INT", + "value": 4 + }, + { + "name": "GLOBAL_VAR_TYPE_IVEC2", + "value": 5 + }, + { + "name": "GLOBAL_VAR_TYPE_IVEC3", + "value": 6 + }, + { + "name": "GLOBAL_VAR_TYPE_IVEC4", + "value": 7 + }, + { + "name": "GLOBAL_VAR_TYPE_RECT2I", + "value": 8 + }, + { + "name": "GLOBAL_VAR_TYPE_UINT", + "value": 9 + }, + { + "name": "GLOBAL_VAR_TYPE_UVEC2", + "value": 10 + }, + { + "name": "GLOBAL_VAR_TYPE_UVEC3", + "value": 11 + }, + { + "name": "GLOBAL_VAR_TYPE_UVEC4", + "value": 12 + }, + { + "name": "GLOBAL_VAR_TYPE_FLOAT", + "value": 13 + }, + { + "name": "GLOBAL_VAR_TYPE_VEC2", + "value": 14 + }, + { + "name": "GLOBAL_VAR_TYPE_VEC3", + "value": 15 + }, + { + "name": "GLOBAL_VAR_TYPE_VEC4", + "value": 16 + }, + { + "name": "GLOBAL_VAR_TYPE_COLOR", + "value": 17 + }, + { + "name": "GLOBAL_VAR_TYPE_RECT2", + "value": 18 + }, + { + "name": "GLOBAL_VAR_TYPE_MAT2", + "value": 19 + }, + { + "name": "GLOBAL_VAR_TYPE_MAT3", + "value": 20 + }, + { + "name": "GLOBAL_VAR_TYPE_MAT4", + "value": 21 + }, + { + "name": "GLOBAL_VAR_TYPE_TRANSFORM_2D", + "value": 22 + }, + { + "name": "GLOBAL_VAR_TYPE_TRANSFORM", + "value": 23 + }, + { + "name": "GLOBAL_VAR_TYPE_SAMPLER2D", + "value": 24 + }, + { + "name": "GLOBAL_VAR_TYPE_SAMPLER2DARRAY", + "value": 25 + }, + { + "name": "GLOBAL_VAR_TYPE_SAMPLER3D", + "value": 26 + }, + { + "name": "GLOBAL_VAR_TYPE_SAMPLERCUBE", + "value": 27 + }, + { + "name": "GLOBAL_VAR_TYPE_MAX", + "value": 28 + } + ] + }, + { + "name": "RenderingInfo", + "is_bitfield": false, + "values": [ + { + "name": "RENDERING_INFO_TOTAL_OBJECTS_IN_FRAME", + "value": 0 + }, + { + "name": "RENDERING_INFO_TOTAL_PRIMITIVES_IN_FRAME", + "value": 1 + }, + { + "name": "RENDERING_INFO_TOTAL_DRAW_CALLS_IN_FRAME", + "value": 2 + }, + { + "name": "RENDERING_INFO_TEXTURE_MEM_USED", + "value": 3 + }, + { + "name": "RENDERING_INFO_BUFFER_MEM_USED", + "value": 4 + }, + { + "name": "RENDERING_INFO_VIDEO_MEM_USED", + "value": 5 + } + ] + }, + { + "name": "Features", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_SHADERS", + "value": 0 + }, + { + "name": "FEATURE_MULTITHREADED", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "texture_2d_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2010018390, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "texture_2d_layered_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 913689023, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layers", + "type": "typedarray::Image" + }, + { + "name": "layered_type", + "type": "enum::RenderingServer.TextureLayeredType" + } + ] + }, + { + "name": "texture_3d_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4036838706, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "format", + "type": "enum::Image.Format" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + }, + { + "name": "depth", + "type": "int", + "meta": "int32" + }, + { + "name": "mipmaps", + "type": "bool" + }, + { + "name": "data", + "type": "typedarray::Image" + } + ] + }, + { + "name": "texture_proxy_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 41030802, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "base", + "type": "RID" + } + ] + }, + { + "name": "texture_2d_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 999539803, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "image", + "type": "Image" + }, + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "texture_3d_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 684822712, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "data", + "type": "typedarray::Image" + } + ] + }, + { + "name": "texture_proxy_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "proxy_to", + "type": "RID" + } + ] + }, + { + "name": "texture_2d_placeholder_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "texture_2d_layered_placeholder_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1394585590, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layered_type", + "type": "enum::RenderingServer.TextureLayeredType" + } + ] + }, + { + "name": "texture_3d_placeholder_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "texture_2d_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4206205781, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "texture_2d_layer_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2705440895, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "texture_3d_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Image" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "texture_replace", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "by_texture", + "type": "RID" + } + ] + }, + { + "name": "texture_set_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "texture_set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "texture_get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "texture_set_force_redraw_if_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "texture_get_rd_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2790148051, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "texture", + "type": "RID" + }, + { + "name": "srgb", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "shader_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "shader_set_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "code", + "type": "String" + } + ] + }, + { + "name": "shader_set_path_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "shader_get_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + } + ] + }, + { + "name": "get_shader_parameter_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + } + ] + }, + { + "name": "shader_get_parameter_default", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2621281810, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "shader_set_default_texture_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3864903085, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "shader_get_default_texture_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2523186822, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shader", + "type": "RID" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "material_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "material_set_shader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "shader_material", + "type": "RID" + }, + { + "name": "shader", + "type": "RID" + } + ] + }, + { + "name": "material_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3477296213, + "arguments": [ + { + "name": "material", + "type": "RID" + }, + { + "name": "parameter", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "material_get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2621281810, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "material", + "type": "RID" + }, + { + "name": "parameter", + "type": "StringName" + } + ] + }, + { + "name": "material_set_render_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "material", + "type": "RID" + }, + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "material_set_next_pass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "material", + "type": "RID" + }, + { + "name": "next_material", + "type": "RID" + } + ] + }, + { + "name": "mesh_create_from_surfaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4007581507, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "surfaces", + "type": "typedarray::Dictionary" + }, + { + "name": "blend_shape_count", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "mesh_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "mesh_surface_get_format_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981368685, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "format", + "type": "bitfield::RenderingServer.ArrayFormat" + }, + { + "name": "vertex_count", + "type": "int", + "meta": "int32" + }, + { + "name": "array_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_surface_get_format_vertex_stride", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3188363337, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "format", + "type": "bitfield::RenderingServer.ArrayFormat" + }, + { + "name": "vertex_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_surface_get_format_attribute_stride", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3188363337, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "format", + "type": "bitfield::RenderingServer.ArrayFormat" + }, + { + "name": "vertex_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_surface_get_format_skin_stride", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3188363337, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "format", + "type": "bitfield::RenderingServer.ArrayFormat" + }, + { + "name": "vertex_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_add_surface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1217542888, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "Dictionary" + } + ] + }, + { + "name": "mesh_add_surface_from_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1247008646, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "primitive", + "type": "enum::RenderingServer.PrimitiveType" + }, + { + "name": "arrays", + "type": "Array" + }, + { + "name": "blend_shapes", + "type": "Array", + "default_value": "[]" + }, + { + "name": "lods", + "type": "Dictionary", + "default_value": "{}" + }, + { + "name": "compress_format", + "type": "bitfield::RenderingServer.ArrayFormat", + "default_value": "0" + } + ] + }, + { + "name": "mesh_get_blend_shape_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "mesh_set_blend_shape_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1294662092, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.BlendShapeMode" + } + ] + }, + { + "name": "mesh_get_blend_shape_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4282291819, + "return_value": { + "type": "enum::RenderingServer.BlendShapeMode" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "mesh_surface_set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "mesh_surface_get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066463050, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_get_surface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 186674697, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_surface_get_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1778388067, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_surface_get_blend_shape_arrays", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1778388067, + "return_value": { + "type": "typedarray::Array" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "mesh_get_surface_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "mesh_set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "mesh_get_custom_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 974181306, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "mesh_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "mesh_surface_update_vertex_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2900195149, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "mesh_surface_update_attribute_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2900195149, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "mesh_surface_update_skin_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2900195149, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "offset", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "mesh_set_shadow_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "mesh", + "type": "RID" + }, + { + "name": "shadow_mesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "multimesh_allocate_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 283685892, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "instances", + "type": "int", + "meta": "int32" + }, + { + "name": "transform_format", + "type": "enum::RenderingServer.MultimeshTransformFormat" + }, + { + "name": "color_format", + "type": "bool", + "default_value": "false" + }, + { + "name": "custom_data_format", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "multimesh_get_instance_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_instance_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675327471, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "multimesh_instance_set_transform_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 736082694, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "multimesh_instance_set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 176975443, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "multimesh_instance_set_custom_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 176975443, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_data", + "type": "Color" + } + ] + }, + { + "name": "multimesh_get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_get_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 974181306, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_instance_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1050775521, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "multimesh_instance_get_transform_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1324854622, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "multimesh_instance_get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2946315076, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "multimesh_instance_get_custom_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2946315076, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "multimesh_set_visible_instances", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "visible", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "multimesh_get_visible_instances", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, + { + "name": "multimesh_set_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2960552364, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + }, + { + "name": "buffer", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "multimesh_get_buffer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3964669176, + "return_value": { + "type": "PackedFloat32Array" + }, + "arguments": [ + { + "name": "multimesh", + "type": "RID" + } + ] + }, + { + "name": "skeleton_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "skeleton_allocate_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1904426712, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "bones", + "type": "int", + "meta": "int32" + }, + { + "name": "is_2d_skeleton", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "skeleton_get_bone_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + } + ] + }, + { + "name": "skeleton_bone_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 675327471, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "bone", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "skeleton_bone_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1050775521, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "bone", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "skeleton_bone_set_transform_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 736082694, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "bone", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "skeleton_bone_get_transform_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1324854622, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "bone", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "skeleton_set_base_transform_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "skeleton", + "type": "RID" + }, + { + "name": "base_transform", + "type": "Transform2D" + } + ] + }, + { + "name": "directional_light_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "omni_light_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "spot_light_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "light_set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "light_set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501936875, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "param", + "type": "enum::RenderingServer.LightParam" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "light_set_shadow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "light_set_projector", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "light_set_negative", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "light_set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "light_set_distance_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1622292572, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + }, + { + "name": "begin", + "type": "float", + "meta": "float" + }, + { + "name": "shadow", + "type": "float", + "meta": "float" + }, + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "light_set_reverse_cull_face_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "light_set_bake_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1048525260, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "bake_mode", + "type": "enum::RenderingServer.LightBakeMode" + } + ] + }, + { + "name": "light_set_max_sdfgi_cascade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "cascade", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "light_omni_set_shadow_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2552677200, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.LightOmniShadowMode" + } + ] + }, + { + "name": "light_directional_set_shadow_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 380462970, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.LightDirectionalShadowMode" + } + ] + }, + { + "name": "light_directional_set_blend_splits", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "light_directional_set_sky_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2559740754, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.LightDirectionalSkyMode" + } + ] + }, + { + "name": "light_projectors_set_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 43944325, + "arguments": [ + { + "name": "filter", + "type": "enum::RenderingServer.LightProjectorFilter" + } + ] + }, + { + "name": "positional_soft_shadow_filter_set_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3613045266, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.ShadowQuality" + } + ] + }, + { + "name": "directional_soft_shadow_filter_set_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3613045266, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.ShadowQuality" + } + ] + }, + { + "name": "directional_shadow_atlas_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "is_16bits", + "type": "bool" + } + ] + }, + { + "name": "reflection_probe_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "reflection_probe_set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3853670147, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ReflectionProbeUpdateMode" + } + ] + }, + { + "name": "reflection_probe_set_intensity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "intensity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "reflection_probe_set_ambient_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 184163074, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ReflectionProbeAmbientMode" + } + ] + }, + { + "name": "reflection_probe_set_ambient_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "reflection_probe_set_ambient_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "reflection_probe_set_max_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "reflection_probe_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "reflection_probe_set_origin_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "offset", + "type": "Vector3" + } + ] + }, + { + "name": "reflection_probe_set_as_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "reflection_probe_set_enable_box_projection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "reflection_probe_set_enable_shadows", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "reflection_probe_set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "reflection_probe_set_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "resolution", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "reflection_probe_set_mesh_lod_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "probe", + "type": "RID" + }, + { + "name": "pixels", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decal_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "decal_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "decal_set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3953344054, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "type", + "type": "enum::RenderingServer.DecalTexture" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "decal_set_emission_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decal_set_albedo_mix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "albedo_mix", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decal_set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "decal_set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "decal_set_distance_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2972769666, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + }, + { + "name": "begin", + "type": "float", + "meta": "float" + }, + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decal_set_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2513314492, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "above", + "type": "float", + "meta": "float" + }, + { + "name": "below", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decal_set_normal_fade", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "decal", + "type": "RID" + }, + { + "name": "fade", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "decals_set_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3519875702, + "arguments": [ + { + "name": "filter", + "type": "enum::RenderingServer.DecalFilter" + } + ] + }, + { + "name": "gi_set_use_half_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "half_resolution", + "type": "bool" + } + ] + }, + { + "name": "voxel_gi_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "voxel_gi_allocate_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4108223027, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "to_cell_xform", + "type": "Transform3D" + }, + { + "name": "aabb", + "type": "AABB" + }, + { + "name": "octree_size", + "type": "Vector3i" + }, + { + "name": "octree_cells", + "type": "PackedByteArray" + }, + { + "name": "data_cells", + "type": "PackedByteArray" + }, + { + "name": "distance_field", + "type": "PackedByteArray" + }, + { + "name": "level_counts", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "voxel_gi_get_octree_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2607699645, + "return_value": { + "type": "Vector3i" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_get_octree_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3348040486, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_get_data_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3348040486, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_get_distance_field", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3348040486, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_get_level_counts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788230395, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_get_to_cell_xform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1128465797, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + } + ] + }, + { + "name": "voxel_gi_set_dynamic_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "range", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_propagation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_baked_exposure_normalization", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "baked_exposure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_normal_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "voxel_gi_set_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "voxel_gi_set_use_two_bounces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "voxel_gi", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "voxel_gi_set_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1538689978, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.VoxelGIQuality" + } + ] + }, + { + "name": "lightmap_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "lightmap_set_textures", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2646464759, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "light", + "type": "RID" + }, + { + "name": "uses_sh", + "type": "bool" + } + ] + }, + { + "name": "lightmap_set_probe_bounds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "bounds", + "type": "AABB" + } + ] + }, + { + "name": "lightmap_set_probe_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "interior", + "type": "bool" + } + ] + }, + { + "name": "lightmap_set_probe_capture_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3217845880, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "points", + "type": "PackedVector3Array" + }, + { + "name": "point_sh", + "type": "PackedColorArray" + }, + { + "name": "tetrahedra", + "type": "PackedInt32Array" + }, + { + "name": "bsp_tree", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "lightmap_get_probe_capture_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 808965560, + "return_value": { + "type": "PackedVector3Array" + }, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + } + ] + }, + { + "name": "lightmap_get_probe_capture_sh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1569415609, + "return_value": { + "type": "PackedColorArray" + }, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + } + ] + }, + { + "name": "lightmap_get_probe_capture_tetrahedra", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788230395, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + } + ] + }, + { + "name": "lightmap_get_probe_capture_bsp_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788230395, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + } + ] + }, + { + "name": "lightmap_set_baked_exposure_normalization", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "baked_exposure", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "lightmap_set_probe_capture_update_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "particles_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3492270028, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ParticlesMode" + } + ] + }, + { + "name": "particles_set_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "emitting", + "type": "bool" + } + ] + }, + { + "name": "particles_get_emitting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "particles", + "type": "RID" + } + ] + }, + { + "name": "particles_set_amount", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "particles_set_lifetime", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "lifetime", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "particles_set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "one_shot", + "type": "bool" + } + ] + }, + { + "name": "particles_set_pre_process_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "particles_set_explosiveness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_set_randomness_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "particles_set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "particles_set_use_local_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "particles_set_process_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "particles_set_fixed_fps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "fps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "particles_set_interpolate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "particles_set_fractional_delta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "particles_set_collision_base_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_set_transform_align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3264971368, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "align", + "type": "enum::RenderingServer.ParticlesTransformAlign" + } + ] + }, + { + "name": "particles_set_trails", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2010054925, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "length_sec", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_set_trail_bind_poses", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 684822712, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "bind_poses", + "type": "typedarray::Transform3D" + } + ] + }, + { + "name": "particles_is_inactive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "particles", + "type": "RID" + } + ] + }, + { + "name": "particles_request_process", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "particles", + "type": "RID" + } + ] + }, + { + "name": "particles_restart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "particles", + "type": "RID" + } + ] + }, + { + "name": "particles_set_subemitter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "subemitter_particles", + "type": "RID" + } + ] + }, + { + "name": "particles_emit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4043136117, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "velocity", + "type": "Vector3" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "custom", + "type": "Color" + }, + { + "name": "emit_flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "particles_set_draw_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 935028487, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "order", + "type": "enum::RenderingServer.ParticlesDrawOrder" + } + ] + }, + { + "name": "particles_set_draw_passes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "particles_set_draw_pass_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "pass", + "type": "int", + "meta": "int32" + }, + { + "name": "mesh", + "type": "RID" + } + ] + }, + { + "name": "particles_get_current_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3952830260, + "return_value": { + "type": "AABB" + }, + "arguments": [ + { + "name": "particles", + "type": "RID" + } + ] + }, + { + "name": "particles_set_emission_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "particles", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "particles_collision_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "particles_collision_set_collision_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497044930, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "type", + "type": "enum::RenderingServer.ParticlesCollisionType" + } + ] + }, + { + "name": "particles_collision_set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "particles_collision_set_sphere_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_collision_set_box_extents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "extents", + "type": "Vector3" + } + ] + }, + { + "name": "particles_collision_set_attractor_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "setrngth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_collision_set_attractor_directionality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_collision_set_attractor_attenuation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "curve", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "particles_collision_set_field_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "particles_collision_height_field_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + } + ] + }, + { + "name": "particles_collision_set_height_field_resolution", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 962977297, + "arguments": [ + { + "name": "particles_collision", + "type": "RID" + }, + { + "name": "resolution", + "type": "enum::RenderingServer.ParticlesCollisionHeightfieldResolution" + } + ] + }, + { + "name": "fog_volume_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "fog_volume_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3818703106, + "arguments": [ + { + "name": "fog_volume", + "type": "RID" + }, + { + "name": "shape", + "type": "enum::RenderingServer.FogVolumeShape" + } + ] + }, + { + "name": "fog_volume_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3227306858, + "arguments": [ + { + "name": "fog_volume", + "type": "RID" + }, + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "fog_volume_set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "fog_volume", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "visibility_notifier_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "visibility_notifier_set_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "notifier", + "type": "RID" + }, + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "visibility_notifier_set_callbacks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2689735388, + "arguments": [ + { + "name": "notifier", + "type": "RID" + }, + { + "name": "enter_callable", + "type": "Callable" + }, + { + "name": "exit_callable", + "type": "Callable" + } + ] + }, + { + "name": "occluder_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "occluder_set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3854404263, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "vertices", + "type": "PackedVector3Array" + }, + { + "name": "indices", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "camera_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "camera_set_perspective", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 157498339, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "fovy_degrees", + "type": "float", + "meta": "float" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_set_orthogonal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 157498339, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "size", + "type": "float", + "meta": "float" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_set_frustum", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1889878953, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "size", + "type": "float", + "meta": "float" + }, + { + "name": "offset", + "type": "Vector2" + }, + { + "name": "z_near", + "type": "float", + "meta": "float" + }, + { + "name": "z_far", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "camera_set_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "camera_set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "env", + "type": "RID" + } + ] + }, + { + "name": "camera_set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "effects", + "type": "RID" + } + ] + }, + { + "name": "camera_set_use_vertical_aspect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "camera", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "viewport_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "viewport_set_use_xr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "use_xr", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + }, + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "viewport_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_parent_viewport", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "parent_viewport", + "type": "RID" + } + ] + }, + { + "name": "viewport_attach_to_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1278520651, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "screen", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "viewport_set_render_direct_to_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_canvas_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "canvas_cull_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "viewport_set_scaling_3d_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2386524376, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "scaling_3d_mode", + "type": "enum::RenderingServer.ViewportScaling3DMode" + } + ] + }, + { + "name": "viewport_set_scaling_3d_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "viewport_set_fsr_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "viewport_set_texture_mipmap_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "mipmap_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "viewport_set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3161116010, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "update_mode", + "type": "enum::RenderingServer.ViewportUpdateMode" + } + ] + }, + { + "name": "viewport_set_clear_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3628367896, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "clear_mode", + "type": "enum::RenderingServer.ViewportClearMode" + } + ] + }, + { + "name": "viewport_get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "viewport", + "type": "RID" + } + ] + }, + { + "name": "viewport_set_disable_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_disable_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_environment_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2196892182, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ViewportEnvironmentMode" + } + ] + }, + { + "name": "viewport_attach_camera", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "camera", + "type": "RID" + } + ] + }, + { + "name": "viewport_set_scenario", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "scenario", + "type": "RID" + } + ] + }, + { + "name": "viewport_attach_canvas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + } + ] + }, + { + "name": "viewport_remove_canvas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + } + ] + }, + { + "name": "viewport_set_snap_2d_transforms_to_pixel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_snap_2d_vertices_to_pixel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_default_canvas_item_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1155129294, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "filter", + "type": "enum::RenderingServer.CanvasItemTextureFilter" + } + ] + }, + { + "name": "viewport_set_default_canvas_item_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1652956681, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "repeat", + "type": "enum::RenderingServer.CanvasItemTextureRepeat" + } + ] + }, + { + "name": "viewport_set_canvas_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3608606053, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "offset", + "type": "Transform2D" + } + ] + }, + { + "name": "viewport_set_canvas_stacking", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3713930247, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "sublayer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "viewport_set_transparent_background", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_global_canvas_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "viewport_set_sdf_oversize_and_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1329198632, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "oversize", + "type": "enum::RenderingServer.ViewportSDFOversize" + }, + { + "name": "scale", + "type": "enum::RenderingServer.ViewportSDFScale" + } + ] + }, + { + "name": "viewport_set_positional_shadow_atlas_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1904426712, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "use_16_bits", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "viewport_set_positional_shadow_atlas_quadrant_subdivision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "quadrant", + "type": "int", + "meta": "int32" + }, + { + "name": "subdivision", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "viewport_set_msaa_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3764433340, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "msaa", + "type": "enum::RenderingServer.ViewportMSAA" + } + ] + }, + { + "name": "viewport_set_msaa_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3764433340, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "msaa", + "type": "enum::RenderingServer.ViewportMSAA" + } + ] + }, + { + "name": "viewport_set_screen_space_aa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1447279591, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ViewportScreenSpaceAA" + } + ] + }, + { + "name": "viewport_set_use_taa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_use_debanding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_use_occlusion_culling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "viewport_set_occlusion_rays_per_thread", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rays_per_thread", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "viewport_set_occlusion_culling_build_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2069725696, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.ViewportOcclusionCullingBuildQuality" + } + ] + }, + { + "name": "viewport_get_render_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2041262392, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "type", + "type": "enum::RenderingServer.ViewportRenderInfoType" + }, + { + "name": "info", + "type": "enum::RenderingServer.ViewportRenderInfo" + } + ] + }, + { + "name": "viewport_set_debug_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2089420930, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "draw", + "type": "enum::RenderingServer.ViewportDebugDraw" + } + ] + }, + { + "name": "viewport_set_measure_render_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "viewport_get_measured_render_time_cpu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "viewport", + "type": "RID" + } + ] + }, + { + "name": "viewport_get_measured_render_time_gpu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "viewport", + "type": "RID" + } + ] + }, + { + "name": "viewport_set_vrs_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 398809874, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.ViewportVRSMode" + } + ] + }, + { + "name": "viewport_set_vrs_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "viewport", + "type": "RID" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "sky_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "sky_set_radiance_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "sky", + "type": "RID" + }, + { + "name": "radiance_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "sky_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3279019937, + "arguments": [ + { + "name": "sky", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.SkyMode" + } + ] + }, + { + "name": "sky_set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "sky", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "sky_bake_panorama", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3875285818, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "sky", + "type": "RID" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + }, + { + "name": "bake_irradiance", + "type": "bool" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "environment_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "environment_set_background", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937328877, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "bg", + "type": "enum::RenderingServer.EnvironmentBG" + } + ] + }, + { + "name": "environment_set_sky", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "sky", + "type": "RID" + } + ] + }, + { + "name": "environment_set_sky_custom_fov", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_sky_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1735850857, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "orientation", + "type": "Basis" + } + ] + }, + { + "name": "environment_set_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "environment_set_bg_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2513314492, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "multiplier", + "type": "float", + "meta": "float" + }, + { + "name": "exposure_value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_canvas_max_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "max_layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "environment_set_ambient_light", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 362573166, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "ambient", + "type": "enum::RenderingServer.EnvironmentAmbientSource", + "default_value": "0" + }, + { + "name": "energy", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "sky_contibution", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "reflection_source", + "type": "enum::RenderingServer.EnvironmentReflectionSource", + "default_value": "0" + } + ] + }, + { + "name": "environment_set_glow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2421724940, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "levels", + "type": "PackedFloat32Array" + }, + { + "name": "intensity", + "type": "float", + "meta": "float" + }, + { + "name": "strength", + "type": "float", + "meta": "float" + }, + { + "name": "mix", + "type": "float", + "meta": "float" + }, + { + "name": "bloom_threshold", + "type": "float", + "meta": "float" + }, + { + "name": "blend_mode", + "type": "enum::RenderingServer.EnvironmentGlowBlendMode" + }, + { + "name": "hdr_bleed_threshold", + "type": "float", + "meta": "float" + }, + { + "name": "hdr_bleed_scale", + "type": "float", + "meta": "float" + }, + { + "name": "hdr_luminance_cap", + "type": "float", + "meta": "float" + }, + { + "name": "glow_map_strength", + "type": "float", + "meta": "float" + }, + { + "name": "glow_map", + "type": "RID" + } + ] + }, + { + "name": "environment_set_tonemap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2914312638, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "tone_mapper", + "type": "enum::RenderingServer.EnvironmentToneMapper" + }, + { + "name": "exposure", + "type": "float", + "meta": "float" + }, + { + "name": "white", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_adjustment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 876799838, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "brightness", + "type": "float", + "meta": "float" + }, + { + "name": "contrast", + "type": "float", + "meta": "float" + }, + { + "name": "saturation", + "type": "float", + "meta": "float" + }, + { + "name": "use_1d_color_correction", + "type": "bool" + }, + { + "name": "color_correction", + "type": "RID" + } + ] + }, + { + "name": "environment_set_ssr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3607294374, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "max_steps", + "type": "int", + "meta": "int32" + }, + { + "name": "fade_in", + "type": "float", + "meta": "float" + }, + { + "name": "fade_out", + "type": "float", + "meta": "float" + }, + { + "name": "depth_tolerance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_ssao", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3994732740, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "intensity", + "type": "float", + "meta": "float" + }, + { + "name": "power", + "type": "float", + "meta": "float" + }, + { + "name": "detail", + "type": "float", + "meta": "float" + }, + { + "name": "horizon", + "type": "float", + "meta": "float" + }, + { + "name": "sharpness", + "type": "float", + "meta": "float" + }, + { + "name": "light_affect", + "type": "float", + "meta": "float" + }, + { + "name": "ao_channel_affect", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_fog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2793577733, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "light_color", + "type": "Color" + }, + { + "name": "light_energy", + "type": "float", + "meta": "float" + }, + { + "name": "sun_scatter", + "type": "float", + "meta": "float" + }, + { + "name": "density", + "type": "float", + "meta": "float" + }, + { + "name": "height", + "type": "float", + "meta": "float" + }, + { + "name": "height_density", + "type": "float", + "meta": "float" + }, + { + "name": "aerial_perspective", + "type": "float", + "meta": "float" + }, + { + "name": "sky_affect", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_sdfgi", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3519144388, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "cascades", + "type": "int", + "meta": "int32" + }, + { + "name": "min_cell_size", + "type": "float", + "meta": "float" + }, + { + "name": "y_scale", + "type": "enum::RenderingServer.EnvironmentSDFGIYScale" + }, + { + "name": "use_occlusion", + "type": "bool" + }, + { + "name": "bounce_feedback", + "type": "float", + "meta": "float" + }, + { + "name": "read_sky", + "type": "bool" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + }, + { + "name": "normal_bias", + "type": "float", + "meta": "float" + }, + { + "name": "probe_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_volumetric_fog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1553633833, + "arguments": [ + { + "name": "env", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "density", + "type": "float", + "meta": "float" + }, + { + "name": "albedo", + "type": "Color" + }, + { + "name": "emission", + "type": "Color" + }, + { + "name": "emission_energy", + "type": "float", + "meta": "float" + }, + { + "name": "anisotropy", + "type": "float", + "meta": "float" + }, + { + "name": "length", + "type": "float", + "meta": "float" + }, + { + "name": "p_detail_spread", + "type": "float", + "meta": "float" + }, + { + "name": "gi_inject", + "type": "float", + "meta": "float" + }, + { + "name": "temporal_reprojection", + "type": "bool" + }, + { + "name": "temporal_reprojection_amount", + "type": "float", + "meta": "float" + }, + { + "name": "ambient_inject", + "type": "float", + "meta": "float" + }, + { + "name": "sky_affect", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_glow_set_use_bicubic_upscale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "environment_set_ssr_roughness_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1190026788, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.EnvironmentSSRRoughnessQuality" + } + ] + }, + { + "name": "environment_set_ssao_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 189753569, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.EnvironmentSSAOQuality" + }, + { + "name": "half_size", + "type": "bool" + }, + { + "name": "adaptive_target", + "type": "float", + "meta": "float" + }, + { + "name": "blur_passes", + "type": "int", + "meta": "int32" + }, + { + "name": "fadeout_from", + "type": "float", + "meta": "float" + }, + { + "name": "fadeout_to", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_ssil_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1713836683, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.EnvironmentSSILQuality" + }, + { + "name": "half_size", + "type": "bool" + }, + { + "name": "adaptive_target", + "type": "float", + "meta": "float" + }, + { + "name": "blur_passes", + "type": "int", + "meta": "int32" + }, + { + "name": "fadeout_from", + "type": "float", + "meta": "float" + }, + { + "name": "fadeout_to", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "environment_set_sdfgi_ray_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 340137951, + "arguments": [ + { + "name": "ray_count", + "type": "enum::RenderingServer.EnvironmentSDFGIRayCount" + } + ] + }, + { + "name": "environment_set_sdfgi_frames_to_converge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2182444374, + "arguments": [ + { + "name": "frames", + "type": "enum::RenderingServer.EnvironmentSDFGIFramesToConverge" + } + ] + }, + { + "name": "environment_set_sdfgi_frames_to_update_light", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1251144068, + "arguments": [ + { + "name": "frames", + "type": "enum::RenderingServer.EnvironmentSDFGIFramesToUpdateLight" + } + ] + }, + { + "name": "environment_set_volumetric_fog_volume_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "environment_set_volumetric_fog_filter_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "environment_bake_panorama", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2452908646, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "environment", + "type": "RID" + }, + { + "name": "bake_irradiance", + "type": "bool" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "screen_space_roughness_limiter_set_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 916716790, + "arguments": [ + { + "name": "enable", + "type": "bool" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + }, + { + "name": "limit", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "sub_surface_scattering_set_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 64571803, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.SubSurfaceScatteringQuality" + } + ] + }, + { + "name": "sub_surface_scattering_set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017552074, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + }, + { + "name": "depth_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_attributes_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "camera_attributes_set_dof_blur_quality", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2220136795, + "arguments": [ + { + "name": "quality", + "type": "enum::RenderingServer.DOFBlurQuality" + }, + { + "name": "use_jitter", + "type": "bool" + } + ] + }, + { + "name": "camera_attributes_set_dof_blur_bokeh_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1205058394, + "arguments": [ + { + "name": "shape", + "type": "enum::RenderingServer.DOFBokehShape" + } + ] + }, + { + "name": "camera_attributes_set_dof_blur", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 316272616, + "arguments": [ + { + "name": "camera_attributes", + "type": "RID" + }, + { + "name": "far_enable", + "type": "bool" + }, + { + "name": "far_distance", + "type": "float", + "meta": "float" + }, + { + "name": "far_transition", + "type": "float", + "meta": "float" + }, + { + "name": "near_enable", + "type": "bool" + }, + { + "name": "near_distance", + "type": "float", + "meta": "float" + }, + { + "name": "near_transition", + "type": "float", + "meta": "float" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_attributes_set_exposure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2513314492, + "arguments": [ + { + "name": "camera_attributes", + "type": "RID" + }, + { + "name": "multiplier", + "type": "float", + "meta": "float" + }, + { + "name": "normalization", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "camera_attributes_set_auto_exposure", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4266986332, + "arguments": [ + { + "name": "camera_attributes", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "min_sensitivity", + "type": "float", + "meta": "float" + }, + { + "name": "max_sensitivity", + "type": "float", + "meta": "float" + }, + { + "name": "speed", + "type": "float", + "meta": "float" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "scenario_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "scenario_set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "scenario", + "type": "RID" + }, + { + "name": "environment", + "type": "RID" + } + ] + }, + { + "name": "scenario_set_fallback_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "scenario", + "type": "RID" + }, + { + "name": "environment", + "type": "RID" + } + ] + }, + { + "name": "scenario_set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "scenario", + "type": "RID" + }, + { + "name": "effects", + "type": "RID" + } + ] + }, + { + "name": "instance_create2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 746547085, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "base", + "type": "RID" + }, + { + "name": "scenario", + "type": "RID" + } + ] + }, + { + "name": "instance_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "instance_set_base", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "base", + "type": "RID" + } + ] + }, + { + "name": "instance_set_scenario", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "scenario", + "type": "RID" + } + ] + }, + { + "name": "instance_set_layer_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "instance_set_pivot_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1280615259, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "sorting_offset", + "type": "float", + "meta": "float" + }, + { + "name": "use_aabb_center", + "type": "bool" + } + ] + }, + { + "name": "instance_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3935195649, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "instance_attach_object_instance_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "id", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "instance_set_blend_shape_weight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "shape", + "type": "int", + "meta": "int32" + }, + { + "name": "weight", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "instance_set_surface_override_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2310537182, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "instance_set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "instance_geometry_set_transparency", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "transparency", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "instance_set_custom_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3696536120, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "aabb", + "type": "AABB" + } + ] + }, + { + "name": "instance_attach_skeleton", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "skeleton", + "type": "RID" + } + ] + }, + { + "name": "instance_set_extra_visibility_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "instance_set_visibility_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "parent", + "type": "RID" + } + ] + }, + { + "name": "instance_set_ignore_culling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "instance_geometry_set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1014989537, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "flag", + "type": "enum::RenderingServer.InstanceFlags" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "instance_geometry_set_cast_shadows_setting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3768836020, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "shadow_casting_setting", + "type": "enum::RenderingServer.ShadowCastingSetting" + } + ] + }, + { + "name": "instance_geometry_set_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "instance_geometry_set_material_overlay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "instance_geometry_set_visibility_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4263925858, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "min", + "type": "float", + "meta": "float" + }, + { + "name": "max", + "type": "float", + "meta": "float" + }, + { + "name": "min_margin", + "type": "float", + "meta": "float" + }, + { + "name": "max_margin", + "type": "float", + "meta": "float" + }, + { + "name": "fade_mode", + "type": "enum::RenderingServer.VisibilityRangeFadeMode" + } + ] + }, + { + "name": "instance_geometry_set_lightmap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 536974962, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "lightmap", + "type": "RID" + }, + { + "name": "lightmap_uv_scale", + "type": "Rect2" + }, + { + "name": "lightmap_slice", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "instance_geometry_set_lod_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "lod_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "instance_geometry_set_shader_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3477296213, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "parameter", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "instance_geometry_get_shader_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2621281810, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "parameter", + "type": "StringName" + } + ] + }, + { + "name": "instance_geometry_get_shader_parameter_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2621281810, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "instance", + "type": "RID" + }, + { + "name": "parameter", + "type": "StringName" + } + ] + }, + { + "name": "instance_geometry_get_shader_parameter_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "instance", + "type": "RID" + } + ] + }, + { + "name": "instances_cull_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2031554939, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "aabb", + "type": "AABB" + }, + { + "name": "scenario", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "instances_cull_ray", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3388524336, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "from", + "type": "Vector3" + }, + { + "name": "to", + "type": "Vector3" + }, + { + "name": "scenario", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "instances_cull_convex", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690700105, + "return_value": { + "type": "PackedInt64Array" + }, + "arguments": [ + { + "name": "convex", + "type": "typedarray::Plane" + }, + { + "name": "scenario", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "bake_render_uv2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1904608558, + "return_value": { + "type": "typedarray::Image" + }, + "arguments": [ + { + "name": "base", + "type": "RID" + }, + { + "name": "material_overrides", + "type": "typedarray::RID" + }, + { + "name": "image_size", + "type": "Vector2i" + } + ] + }, + { + "name": "canvas_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_set_item_mirroring", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2343975398, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "item", + "type": "RID" + }, + { + "name": "mirroring", + "type": "Vector2" + } + ] + }, + { + "name": "canvas_set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_set_disable_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "canvas_texture_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_texture_set_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3822119138, + "arguments": [ + { + "name": "canvas_texture", + "type": "RID" + }, + { + "name": "channel", + "type": "enum::RenderingServer.CanvasTextureChannel" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "canvas_texture_set_shading_parameters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2124967469, + "arguments": [ + { + "name": "canvas_texture", + "type": "RID" + }, + { + "name": "base_color", + "type": "Color" + }, + { + "name": "shininess", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "canvas_texture_set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1155129294, + "arguments": [ + { + "name": "canvas_texture", + "type": "RID" + }, + { + "name": "filter", + "type": "enum::RenderingServer.CanvasItemTextureFilter" + } + ] + }, + { + "name": "canvas_texture_set_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1652956681, + "arguments": [ + { + "name": "canvas_texture", + "type": "RID" + }, + { + "name": "repeat", + "type": "enum::RenderingServer.CanvasItemTextureRepeat" + } + ] + }, + { + "name": "canvas_item_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_item_set_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "parent", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_set_default_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1155129294, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "filter", + "type": "enum::RenderingServer.CanvasItemTextureFilter" + } + ] + }, + { + "name": "canvas_item_set_default_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1652956681, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "repeat", + "type": "enum::RenderingServer.CanvasItemTextureRepeat" + } + ] + }, + { + "name": "canvas_item_set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_light_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_item_set_visibility_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "visibility_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "canvas_item_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "canvas_item_set_clip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "clip", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_distance_field_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_custom_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2180266943, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "use_custom_rect", + "type": "bool" + }, + { + "name": "rect", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + } + ] + }, + { + "name": "canvas_item_set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_item_set_self_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_item_set_draw_behind_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_add_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2843922985, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "from", + "type": "Vector2" + }, + { + "name": "to", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "canvas_item_add_polyline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3438017257, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "width", + "type": "float", + "meta": "float", + "default_value": "-1.0" + }, + { + "name": "antialiased", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "canvas_item_add_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 934531857, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_item_add_circle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2439351960, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_item_add_texture_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3205360868, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "tile", + "type": "bool", + "default_value": "false" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "canvas_item_add_msdf_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349157222, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "px_range", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "scale", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "canvas_item_add_lcd_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 359793297, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "canvas_item_add_texture_rect_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2782979504, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + }, + { + "name": "clip_uv", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "canvas_item_add_nine_patch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 904428547, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "source", + "type": "Rect2" + }, + { + "name": "texture", + "type": "RID" + }, + { + "name": "topleft", + "type": "Vector2" + }, + { + "name": "bottomright", + "type": "Vector2" + }, + { + "name": "x_axis_mode", + "type": "enum::RenderingServer.NinePatchAxisMode", + "default_value": "0" + }, + { + "name": "y_axis_mode", + "type": "enum::RenderingServer.NinePatchAxisMode", + "default_value": "0" + }, + { + "name": "draw_center", + "type": "bool", + "default_value": "true" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "canvas_item_add_primitive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3731601077, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "uvs", + "type": "PackedVector2Array" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_add_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2907936855, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "uvs", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "texture", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "canvas_item_add_triangle_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 749685193, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "indices", + "type": "PackedInt32Array" + }, + { + "name": "points", + "type": "PackedVector2Array" + }, + { + "name": "colors", + "type": "PackedColorArray" + }, + { + "name": "uvs", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "bones", + "type": "PackedInt32Array", + "default_value": "PackedInt32Array()" + }, + { + "name": "weights", + "type": "PackedFloat32Array", + "default_value": "PackedFloat32Array()" + }, + { + "name": "texture", + "type": "RID", + "default_value": "" + }, + { + "name": "count", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "canvas_item_add_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3548053052, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "mesh", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D", + "default_value": "Transform2D(1, 0, 0, 1, 0, 0)" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "texture", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "canvas_item_add_multimesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1541595251, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "mesh", + "type": "RID" + }, + { + "name": "texture", + "type": "RID", + "default_value": "" + } + ] + }, + { + "name": "canvas_item_add_particles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2575754278, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "particles", + "type": "RID" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_add_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "canvas_item_add_clip_ignore", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_add_animation_slice", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4107531031, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "animation_length", + "type": "float", + "meta": "double" + }, + { + "name": "slice_begin", + "type": "float", + "meta": "double" + }, + { + "name": "slice_end", + "type": "float", + "meta": "double" + }, + { + "name": "offset", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, + { + "name": "canvas_item_set_sort_children_by_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_z_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "z_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_item_set_z_as_relative_to_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_copy_to_backbuffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2429202503, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "canvas_item_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "item", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_set_draw_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_item_set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "material", + "type": "RID" + } + ] + }, + { + "name": "canvas_item_set_use_parent_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_item_set_visibility_notifier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3568945579, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + }, + { + "name": "area", + "type": "Rect2" + }, + { + "name": "enter_callable", + "type": "Callable" + }, + { + "name": "exit_callable", + "type": "Callable" + } + ] + }, + { + "name": "canvas_item_set_canvas_group_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1568036344, + "arguments": [ + { + "name": "item", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.CanvasGroupMode" + }, + { + "name": "clear_margin", + "type": "float", + "meta": "float", + "default_value": "5.0" + }, + { + "name": "fit_empty", + "type": "bool", + "default_value": "false" + }, + { + "name": "fit_margin", + "type": "float", + "meta": "float", + "default_value": "0.0" + }, + { + "name": "blur_mipmaps", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "canvas_light_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_light_attach_to_canvas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_set_texture_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "canvas_light_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "canvas_light_set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "texture", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_set_texture_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3201125042, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "canvas_light_set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_light_set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "canvas_light_set_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "canvas_light_set_z_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "min_z", + "type": "int", + "meta": "int32" + }, + { + "name": "max_z", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_light_set_layer_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4288446313, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "min_layer", + "type": "int", + "meta": "int32" + }, + { + "name": "max_layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_light_set_item_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_light_set_item_shadow_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_light_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2957564891, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.CanvasLightMode" + } + ] + }, + { + "name": "canvas_light_set_shadow_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_set_shadow_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 393119659, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "filter", + "type": "enum::RenderingServer.CanvasLightShadowFilter" + } + ] + }, + { + "name": "canvas_light_set_shadow_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "canvas_light_set_shadow_smooth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "smooth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "canvas_light_set_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 804895945, + "arguments": [ + { + "name": "light", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.CanvasLightBlendMode" + } + ] + }, + { + "name": "canvas_light_occluder_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_light_occluder_attach_to_canvas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_occluder_set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_occluder_set_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 395945892, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "polygon", + "type": "RID" + } + ] + }, + { + "name": "canvas_light_occluder_set_as_sdf_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "canvas_light_occluder_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "canvas_light_occluder_set_light_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "occluder", + "type": "RID" + }, + { + "name": "mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "canvas_occluder_polygon_create", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "canvas_occluder_polygon_set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2103882027, + "arguments": [ + { + "name": "occluder_polygon", + "type": "RID" + }, + { + "name": "shape", + "type": "PackedVector2Array" + }, + { + "name": "closed", + "type": "bool" + } + ] + }, + { + "name": "canvas_occluder_polygon_set_cull_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1839404663, + "arguments": [ + { + "name": "occluder_polygon", + "type": "RID" + }, + { + "name": "mode", + "type": "enum::RenderingServer.CanvasOccluderPolygonCullMode" + } + ] + }, + { + "name": "canvas_set_shadow_texture_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "global_shader_parameter_add", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 463390080, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "type", + "type": "enum::RenderingServer.GlobalShaderParameterType" + }, + { + "name": "default_value", + "type": "Variant" + } + ] + }, + { + "name": "global_shader_parameter_remove", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "global_shader_parameter_get_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "global_shader_parameter_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "global_shader_parameter_set_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "global_shader_parameter_get", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "global_shader_parameter_get_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1601414142, + "return_value": { + "type": "enum::RenderingServer.GlobalShaderParameterType" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "request_frame_drawn_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "has_changed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_rendering_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3763192241, + "return_value": { + "type": "int", + "meta": "uint64" + }, + "arguments": [ + { + "name": "info", + "type": "enum::RenderingServer.RenderingInfo" + } + ] + }, + { + "name": "get_video_adapter_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_video_adapter_vendor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_video_adapter_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3099547011, + "return_value": { + "type": "enum::RenderingDevice.DeviceType" + } + }, + { + "name": "get_video_adapter_api_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "make_sphere_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2251015897, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "latitudes", + "type": "int", + "meta": "int32" + }, + { + "name": "longitudes", + "type": "int", + "meta": "int32" + }, + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_test_cube", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_test_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_white_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_boot_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2244367877, + "arguments": [ + { + "name": "image", + "type": "Image" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "scale", + "type": "bool" + }, + { + "name": "use_filter", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_default_clear_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200896285, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_default_clear_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 598462696, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::RenderingServer.Features" + } + ] + }, + { + "name": "has_os_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "String" + } + ] + }, + { + "name": "set_debug_generate_wireframes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "generate", + "type": "bool" + } + ] + }, + { + "name": "is_render_loop_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_render_loop_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_frame_setup_time_cpu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "force_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "force_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 899045543, + "arguments": [ + { + "name": "swap_buffers", + "type": "bool", + "default_value": "true" + }, + { + "name": "frame_step", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, + { + "name": "get_rendering_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1405107940, + "return_value": { + "type": "RenderingDevice" + } + }, + { + "name": "create_local_rendering_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1405107940, + "return_value": { + "type": "RenderingDevice" + } + } + ], + "signals": [ + { + "name": "frame_pre_draw" + }, + { + "name": "frame_post_draw" + } + ], + "properties": [ + { + "type": "bool", + "name": "render_loop_enabled", + "setter": "set_render_loop_enabled", + "getter": "is_render_loop_enabled" + } + ] + }, + { + "name": "Resource", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "take_over_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_local_to_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_local_to_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_local_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "setup_local_to_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "emit_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "duplicate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 482882304, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "subresources", + "type": "bool", + "default_value": "false" + } + ] + } + ], + "signals": [ + { + "name": "changed" + }, + { + "name": "setup_local_to_scene_requested" + } + ], + "properties": [ + { + "type": "bool", + "name": "resource_local_to_scene", + "setter": "set_local_to_scene", + "getter": "is_local_to_scene" + }, + { + "type": "String", + "name": "resource_path", + "setter": "set_path", + "getter": "get_path" + }, + { + "type": "String", + "name": "resource_name", + "setter": "set_name", + "getter": "get_name" + } + ] + }, + { + "name": "ResourceFormatImporterSaver", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "ResourceFormatSaver", + "api_type": "core" + }, + { + "name": "ResourceFormatLoader", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "CacheMode", + "is_bitfield": false, + "values": [ + { + "name": "CACHE_MODE_IGNORE", + "value": 0 + }, + { + "name": "CACHE_MODE_REUSE", + "value": 1 + }, + { + "name": "CACHE_MODE_REPLACE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_recognize_path", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "type", + "type": "StringName" + } + ] + }, + { + "name": "_handles_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "type", + "type": "StringName" + } + ] + }, + { + "name": "_get_resource_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_resource_script_class", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_resource_uid", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_dependencies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "add_types", + "type": "bool" + } + ] + }, + { + "name": "_rename_dependencies", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "renames", + "type": "Dictionary" + } + ] + }, + { + "name": "_exists", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_get_classes_used", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_load", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "original_path", + "type": "String" + }, + { + "name": "use_sub_threads", + "type": "bool" + }, + { + "name": "cache_mode", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "ResourceFormatSaver", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "_save", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "_set_uid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "uid", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_recognize", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "_recognize_path", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "ResourceImporter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "ImportOrder", + "is_bitfield": false, + "values": [ + { + "name": "IMPORT_ORDER_DEFAULT", + "value": 0 + }, + { + "name": "IMPORT_ORDER_SCENE", + "value": 100 + } + ] + } + ] + }, + { + "name": "ResourceLoader", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "ThreadLoadStatus", + "is_bitfield": false, + "values": [ + { + "name": "THREAD_LOAD_INVALID_RESOURCE", + "value": 0 + }, + { + "name": "THREAD_LOAD_IN_PROGRESS", + "value": 1 + }, + { + "name": "THREAD_LOAD_FAILED", + "value": 2 + }, + { + "name": "THREAD_LOAD_LOADED", + "value": 3 + } + ] + }, + { + "name": "CacheMode", + "is_bitfield": false, + "values": [ + { + "name": "CACHE_MODE_IGNORE", + "value": 0 + }, + { + "name": "CACHE_MODE_REUSE", + "value": 1 + }, + { + "name": "CACHE_MODE_REPLACE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "load_threaded_request", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1939848623, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "type_hint", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "use_sub_threads", + "type": "bool", + "default_value": "false" + }, + { + "name": "cache_mode", + "type": "enum::ResourceLoader.CacheMode", + "default_value": "1" + } + ] + }, + { + "name": "load_threaded_get_status", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3931021148, + "return_value": { + "type": "enum::ResourceLoader.ThreadLoadStatus" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "progress", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "load_threaded_get", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1748875256, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2622212233, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "type_hint", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "cache_mode", + "type": "enum::ResourceLoader.CacheMode", + "default_value": "1" + } + ] + }, + { + "name": "get_recognized_extensions_for_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "add_resource_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2896595483, + "arguments": [ + { + "name": "format_loader", + "type": "ResourceFormatLoader" + }, + { + "name": "at_front", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_resource_format_loader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 405397102, + "arguments": [ + { + "name": "format_loader", + "type": "ResourceFormatLoader" + } + ] + }, + { + "name": "set_abort_on_missing_resources", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "abort", + "type": "bool" + } + ] + }, + { + "name": "get_dependencies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3538744774, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "has_cached", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "exists", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2220807150, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "type_hint", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_resource_uid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1597066294, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "ResourcePreloader", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "add_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1168801743, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "remove_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "rename_resource", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "newname", + "type": "StringName" + } + ] + }, + { + "name": "has_resource", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_resource", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3742749261, + "return_value": { + "type": "Resource" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_resource_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + } + ], + "properties": [ + { + "type": "Array", + "name": "resources", + "setter": "_set_resources", + "getter": "_get_resources" + } + ] + }, + { + "name": "ResourceSaver", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "SaverFlags", + "is_bitfield": true, + "values": [ + { + "name": "FLAG_NONE", + "value": 0 + }, + { + "name": "FLAG_RELATIVE_PATHS", + "value": 1 + }, + { + "name": "FLAG_BUNDLE_RESOURCES", + "value": 2 + }, + { + "name": "FLAG_CHANGE_PATH", + "value": 4 + }, + { + "name": "FLAG_OMIT_EDITOR_PROPERTIES", + "value": 8 + }, + { + "name": "FLAG_SAVE_BIG_ENDIAN", + "value": 16 + }, + { + "name": "FLAG_COMPRESS", + "value": 32 + }, + { + "name": "FLAG_REPLACE_SUBRESOURCE_PATHS", + "value": 64 + } + ] + } + ], + "methods": [ + { + "name": "save", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2303056517, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "resource", + "type": "Resource" + }, + { + "name": "path", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "flags", + "type": "bitfield::ResourceSaver.SaverFlags", + "default_value": "0" + } + ] + }, + { + "name": "get_recognized_extensions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4223597960, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "type", + "type": "Resource" + } + ] + }, + { + "name": "add_resource_format_saver", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 362894272, + "arguments": [ + { + "name": "format_saver", + "type": "ResourceFormatSaver" + }, + { + "name": "at_front", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "remove_resource_format_saver", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3373026878, + "arguments": [ + { + "name": "format_saver", + "type": "ResourceFormatSaver" + } + ] + } + ] + }, + { + "name": "ResourceUID", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "constants": [ + { + "name": "INVALID_ID", + "value": -1 + } + ], + "methods": [ + { + "name": "id_to_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "text_to_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "text_id", + "type": "String" + } + ] + }, + { + "name": "create_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "has_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "add_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "set_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + }, + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "get_id_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "remove_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int64" + } + ] + } + ] + }, + { + "name": "RibbonTrailMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "enums": [ + { + "name": "Shape", + "is_bitfield": false, + "values": [ + { + "name": "SHAPE_FLAT", + "value": 0 + }, + { + "name": "SHAPE_CROSS", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sections", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_section_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "section_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_section_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_section_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "section_segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_section_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1684440262, + "arguments": [ + { + "name": "shape", + "type": "enum::RibbonTrailMesh.Shape" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1317484155, + "return_value": { + "type": "enum::RibbonTrailMesh.Shape" + } + } + ], + "properties": [ + { + "type": "int", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "float", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "sections", + "setter": "set_sections", + "getter": "get_sections" + }, + { + "type": "float", + "name": "section_length", + "setter": "set_section_length", + "getter": "get_section_length" + }, + { + "type": "int", + "name": "section_segments", + "setter": "set_section_segments", + "getter": "get_section_segments" + }, + { + "type": "Curve", + "name": "curve", + "setter": "set_curve", + "getter": "get_curve" + } + ] + }, + { + "name": "RichTextEffect", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_process_custom_fx", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "char_fx", + "type": "CharFXTransform" + } + ] + } + ] + }, + { + "name": "RichTextLabel", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "ListType", + "is_bitfield": false, + "values": [ + { + "name": "LIST_NUMBERS", + "value": 0 + }, + { + "name": "LIST_LETTERS", + "value": 1 + }, + { + "name": "LIST_ROMAN", + "value": 2 + }, + { + "name": "LIST_DOTS", + "value": 3 + } + ] + }, + { + "name": "MenuItems", + "is_bitfield": false, + "values": [ + { + "name": "MENU_COPY", + "value": 0 + }, + { + "name": "MENU_SELECT_ALL", + "value": 1 + }, + { + "name": "MENU_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_parsed_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "add_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "add_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3346058748, + "arguments": [ + { + "name": "image", + "type": "Texture2D" + }, + { + "name": "width", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "height", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "region", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + } + ] + }, + { + "name": "newline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "remove_paragraph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "paragraph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3014009009, + "arguments": [ + { + "name": "font", + "type": "Font" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_bold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_bold_italics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_italics", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_mono", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "push_outline_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "outline_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_outline_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "push_paragraph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1037160898, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + }, + { + "name": "base_direction", + "type": "enum::Control.TextDirection", + "default_value": "0" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "st_parser", + "type": "enum::TextServer.StructuredTextParser", + "default_value": "0" + } + ] + }, + { + "name": "push_indent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "push_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2241060727, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "enum::RichTextLabel.ListType" + }, + { + "name": "capitalize", + "type": "bool" + } + ] + }, + { + "name": "push_meta", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "data", + "type": "Variant" + } + ] + }, + { + "name": "push_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "description", + "type": "String" + } + ] + }, + { + "name": "push_underline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_strikethrough", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_table", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1125058220, + "arguments": [ + { + "name": "columns", + "type": "int", + "meta": "int32" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "0" + }, + { + "name": "align_to_row", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "push_dropcap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 311501835, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "font", + "type": "Font" + }, + { + "name": "size", + "type": "int", + "meta": "int32" + }, + { + "name": "dropcap_margins", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "outline_color", + "type": "Color", + "default_value": "Color(0, 0, 0, 0)" + } + ] + }, + { + "name": "set_table_column_expand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4258957458, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "expand", + "type": "bool" + }, + { + "name": "ratio", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cell_row_background_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3465483165, + "arguments": [ + { + "name": "odd_row_bg", + "type": "Color" + }, + { + "name": "even_row_bg", + "type": "Color" + } + ] + }, + { + "name": "set_cell_border_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "set_cell_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3108078480, + "arguments": [ + { + "name": "min_size", + "type": "Vector2" + }, + { + "name": "max_size", + "type": "Vector2" + } + ] + }, + { + "name": "set_cell_padding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "padding", + "type": "Rect2" + } + ] + }, + { + "name": "push_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "push_fgcolor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "fgcolor", + "type": "Color" + } + ] + }, + { + "name": "push_bgcolor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "bgcolor", + "type": "Color" + } + ] + }, + { + "name": "push_customfx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2337942958, + "arguments": [ + { + "name": "effect", + "type": "RichTextEffect" + }, + { + "name": "env", + "type": "Dictionary" + } + ] + }, + { + "name": "pop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_autowrap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289138044, + "arguments": [ + { + "name": "autowrap_mode", + "type": "enum::TextServer.AutowrapMode" + } + ] + }, + { + "name": "get_autowrap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549071663, + "return_value": { + "type": "enum::TextServer.AutowrapMode" + } + }, + { + "name": "set_meta_underline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_meta_underlined", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hint_underline", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_hint_underlined", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_scroll_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "is_scroll_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_scroll_follow", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "follow", + "type": "bool" + } + ] + }, + { + "name": "is_scroll_following", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_v_scroll_bar", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2630340773, + "return_value": { + "type": "VScrollBar" + } + }, + { + "name": "scroll_to_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "scroll_to_paragraph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "paragraph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "scroll_to_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_tab_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "spaces", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fit_content", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_fit_content_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_context_menu_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_context_menu_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut_keys_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_shortcut_keys_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_deselect_on_focus_loss_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_deselect_on_focus_loss_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_selection_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_selection_to", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "select_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_selected_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "deselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "parse_bbcode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "bbcode", + "type": "String" + } + ] + }, + { + "name": "append_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "bbcode", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_ready", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_threaded", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "threaded", + "type": "bool" + } + ] + }, + { + "name": "is_threaded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_progress_bar_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "delay_ms", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_progress_bar_delay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_visible_characters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_visible_characters", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_characters_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 258789322, + "return_value": { + "type": "enum::TextServer.VisibleCharactersBehavior" + } + }, + { + "name": "set_visible_characters_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3383839701, + "arguments": [ + { + "name": "behavior", + "type": "enum::TextServer.VisibleCharactersBehavior" + } + ] + }, + { + "name": "set_visible_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_visible_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_character_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "character", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_character_paragraph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "character", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_total_character_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_bbcode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_bbcode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_paragraph_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_paragraph_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_content_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_content_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_line_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025615559, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_paragraph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025615559, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "paragraph", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "parse_expressions_for_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1522900837, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "expressions", + "type": "PackedStringArray" + } + ] + }, + { + "name": "set_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "effects", + "type": "Array" + } + ] + }, + { + "name": "get_effects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "Array" + } + }, + { + "name": "install_effect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1114965689, + "arguments": [ + { + "name": "effect", + "type": "Variant" + } + ] + }, + { + "name": "get_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229722558, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "is_menu_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "menu_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "meta_clicked", + "arguments": [ + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "meta_hover_started", + "arguments": [ + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "meta_hover_ended", + "arguments": [ + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "finished" + } + ], + "properties": [ + { + "type": "bool", + "name": "bbcode_enabled", + "setter": "set_use_bbcode", + "getter": "is_using_bbcode" + }, + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "bool", + "name": "fit_content", + "setter": "set_fit_content", + "getter": "is_fit_content_enabled" + }, + { + "type": "bool", + "name": "scroll_active", + "setter": "set_scroll_active", + "getter": "is_scroll_active" + }, + { + "type": "bool", + "name": "scroll_following", + "setter": "set_scroll_follow", + "getter": "is_scroll_following" + }, + { + "type": "int", + "name": "autowrap_mode", + "setter": "set_autowrap_mode", + "getter": "get_autowrap_mode" + }, + { + "type": "int", + "name": "tab_size", + "setter": "set_tab_size", + "getter": "get_tab_size" + }, + { + "type": "bool", + "name": "context_menu_enabled", + "setter": "set_context_menu_enabled", + "getter": "is_context_menu_enabled" + }, + { + "type": "bool", + "name": "shortcut_keys_enabled", + "setter": "set_shortcut_keys_enabled", + "getter": "is_shortcut_keys_enabled" + }, + { + "type": "typedarray::24/17:RichTextEffect", + "name": "custom_effects", + "setter": "set_effects", + "getter": "get_effects" + }, + { + "type": "bool", + "name": "meta_underlined", + "setter": "set_meta_underline", + "getter": "is_meta_underlined" + }, + { + "type": "bool", + "name": "hint_underlined", + "setter": "set_hint_underline", + "getter": "is_hint_underlined" + }, + { + "type": "bool", + "name": "threaded", + "setter": "set_threaded", + "getter": "is_threaded" + }, + { + "type": "int", + "name": "progress_bar_delay", + "setter": "set_progress_bar_delay", + "getter": "get_progress_bar_delay" + }, + { + "type": "bool", + "name": "selection_enabled", + "setter": "set_selection_enabled", + "getter": "is_selection_enabled" + }, + { + "type": "bool", + "name": "deselect_on_focus_loss_enabled", + "setter": "set_deselect_on_focus_loss_enabled", + "getter": "is_deselect_on_focus_loss_enabled" + }, + { + "type": "int", + "name": "visible_characters", + "setter": "set_visible_characters", + "getter": "get_visible_characters" + }, + { + "type": "int", + "name": "visible_characters_behavior", + "setter": "set_visible_characters_behavior", + "getter": "get_visible_characters_behavior" + }, + { + "type": "float", + "name": "visible_ratio", + "setter": "set_visible_ratio", + "getter": "get_visible_ratio" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "RigidBody2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody2D", + "api_type": "core", + "enums": [ + { + "name": "FreezeMode", + "is_bitfield": false, + "values": [ + { + "name": "FREEZE_MODE_STATIC", + "value": 0 + }, + { + "name": "FREEZE_MODE_KINEMATIC", + "value": 1 + } + ] + }, + { + "name": "CenterOfMassMode", + "is_bitfield": false, + "values": [ + { + "name": "CENTER_OF_MASS_MODE_AUTO", + "value": 0 + }, + { + "name": "CENTER_OF_MASS_MODE_CUSTOM", + "value": 1 + } + ] + }, + { + "name": "DampMode", + "is_bitfield": false, + "values": [ + { + "name": "DAMP_MODE_COMBINE", + "value": 0 + }, + { + "name": "DAMP_MODE_REPLACE", + "value": 1 + } + ] + }, + { + "name": "CCDMode", + "is_bitfield": false, + "values": [ + { + "name": "CCD_MODE_DISABLED", + "value": 0 + }, + { + "name": "CCD_MODE_CAST_RAY", + "value": 1 + }, + { + "name": "CCD_MODE_CAST_SHAPE", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_integrate_forces", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "state", + "type": "PhysicsDirectBodyState2D" + } + ] + }, + { + "name": "set_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_inertia", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_inertia", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "inertia", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_center_of_mass_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1757235706, + "arguments": [ + { + "name": "mode", + "type": "enum::RigidBody2D.CenterOfMassMode" + } + ] + }, + { + "name": "get_center_of_mass_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3277132817, + "return_value": { + "type": "enum::RigidBody2D.CenterOfMassMode" + } + }, + { + "name": "set_center_of_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "center_of_mass", + "type": "Vector2" + } + ] + }, + { + "name": "get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_physics_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784508650, + "arguments": [ + { + "name": "physics_material_override", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_material_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2521850424, + "return_value": { + "type": "PhysicsMaterial" + } + }, + { + "name": "set_gravity_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gravity_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3406533708, + "arguments": [ + { + "name": "linear_damp_mode", + "type": "enum::RigidBody2D.DampMode" + } + ] + }, + { + "name": "get_linear_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2970511462, + "return_value": { + "type": "enum::RigidBody2D.DampMode" + } + }, + { + "name": "set_angular_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3406533708, + "arguments": [ + { + "name": "angular_damp_mode", + "type": "enum::RigidBody2D.DampMode" + } + ] + }, + { + "name": "get_angular_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2970511462, + "return_value": { + "type": "enum::RigidBody2D.DampMode" + } + }, + { + "name": "set_linear_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_angular_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "linear_velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_velocity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_contacts_reported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_contacts_reported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_contact_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_contact_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_contact_monitor_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_continuous_collision_detection_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1000241384, + "arguments": [ + { + "name": "mode", + "type": "enum::RigidBody2D.CCDMode" + } + ] + }, + { + "name": "get_continuous_collision_detection_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 815214376, + "return_value": { + "type": "enum::RigidBody2D.CCDMode" + } + }, + { + "name": "set_axis_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "axis_velocity", + "type": "Vector2" + } + ] + }, + { + "name": "apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3862383994, + "arguments": [ + { + "name": "impulse", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "impulse", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496058220, + "arguments": [ + { + "name": "force", + "type": "Vector2" + }, + { + "name": "position", + "type": "Vector2", + "default_value": "Vector2(0, 0)" + } + ] + }, + { + "name": "add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "force", + "type": "Vector2" + } + ] + }, + { + "name": "get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "torque", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sleeping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "sleeping", + "type": "bool" + } + ] + }, + { + "name": "is_sleeping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_can_sleep", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "able_to_sleep", + "type": "bool" + } + ] + }, + { + "name": "is_able_to_sleep", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_lock_rotation_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "lock_rotation", + "type": "bool" + } + ] + }, + { + "name": "is_lock_rotation_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_freeze_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "freeze_mode", + "type": "bool" + } + ] + }, + { + "name": "is_freeze_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_freeze_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1705112154, + "arguments": [ + { + "name": "freeze_mode", + "type": "enum::RigidBody2D.FreezeMode" + } + ] + }, + { + "name": "get_freeze_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2016872314, + "return_value": { + "type": "enum::RigidBody2D.FreezeMode" + } + }, + { + "name": "get_colliding_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Node2D" + } + } + ], + "signals": [ + { + "name": "body_shape_entered", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_shape_exited", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_entered", + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "body_exited", + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "sleeping_state_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "mass", + "setter": "set_mass", + "getter": "get_mass" + }, + { + "type": "float", + "name": "inertia", + "setter": "set_inertia", + "getter": "get_inertia" + }, + { + "type": "int", + "name": "center_of_mass_mode", + "setter": "set_center_of_mass_mode", + "getter": "get_center_of_mass_mode" + }, + { + "type": "Vector2", + "name": "center_of_mass", + "setter": "set_center_of_mass", + "getter": "get_center_of_mass" + }, + { + "type": "PhysicsMaterial", + "name": "physics_material_override", + "setter": "set_physics_material_override", + "getter": "get_physics_material_override" + }, + { + "type": "float", + "name": "gravity_scale", + "setter": "set_gravity_scale", + "getter": "get_gravity_scale" + }, + { + "type": "bool", + "name": "custom_integrator", + "setter": "set_use_custom_integrator", + "getter": "is_using_custom_integrator" + }, + { + "type": "int", + "name": "continuous_cd", + "setter": "set_continuous_collision_detection_mode", + "getter": "get_continuous_collision_detection_mode" + }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, + { + "type": "bool", + "name": "contact_monitor", + "setter": "set_contact_monitor", + "getter": "is_contact_monitor_enabled" + }, + { + "type": "bool", + "name": "sleeping", + "setter": "set_sleeping", + "getter": "is_sleeping" + }, + { + "type": "bool", + "name": "can_sleep", + "setter": "set_can_sleep", + "getter": "is_able_to_sleep" + }, + { + "type": "bool", + "name": "lock_rotation", + "setter": "set_lock_rotation_enabled", + "getter": "is_lock_rotation_enabled" + }, + { + "type": "bool", + "name": "freeze", + "setter": "set_freeze_enabled", + "getter": "is_freeze_enabled" + }, + { + "type": "int", + "name": "freeze_mode", + "setter": "set_freeze_mode", + "getter": "get_freeze_mode" + }, + { + "type": "Vector2", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "int", + "name": "linear_damp_mode", + "setter": "set_linear_damp_mode", + "getter": "get_linear_damp_mode" + }, + { + "type": "float", + "name": "linear_damp", + "setter": "set_linear_damp", + "getter": "get_linear_damp" + }, + { + "type": "float", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "int", + "name": "angular_damp_mode", + "setter": "set_angular_damp_mode", + "getter": "get_angular_damp_mode" + }, + { + "type": "float", + "name": "angular_damp", + "setter": "set_angular_damp", + "getter": "get_angular_damp" + }, + { + "type": "Vector2", + "name": "constant_force", + "setter": "set_constant_force", + "getter": "get_constant_force" + }, + { + "type": "float", + "name": "constant_torque", + "setter": "set_constant_torque", + "getter": "get_constant_torque" + } + ] + }, + { + "name": "RigidBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody3D", + "api_type": "core", + "enums": [ + { + "name": "FreezeMode", + "is_bitfield": false, + "values": [ + { + "name": "FREEZE_MODE_STATIC", + "value": 0 + }, + { + "name": "FREEZE_MODE_KINEMATIC", + "value": 1 + } + ] + }, + { + "name": "CenterOfMassMode", + "is_bitfield": false, + "values": [ + { + "name": "CENTER_OF_MASS_MODE_AUTO", + "value": 0 + }, + { + "name": "CENTER_OF_MASS_MODE_CUSTOM", + "value": 1 + } + ] + }, + { + "name": "DampMode", + "is_bitfield": false, + "values": [ + { + "name": "DAMP_MODE_COMBINE", + "value": 0 + }, + { + "name": "DAMP_MODE_REPLACE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_integrate_forces", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "state", + "type": "PhysicsDirectBodyState3D" + } + ] + }, + { + "name": "set_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_inertia", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "inertia", + "type": "Vector3" + } + ] + }, + { + "name": "get_inertia", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_center_of_mass_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3625866032, + "arguments": [ + { + "name": "mode", + "type": "enum::RigidBody3D.CenterOfMassMode" + } + ] + }, + { + "name": "get_center_of_mass_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 237405040, + "return_value": { + "type": "enum::RigidBody3D.CenterOfMassMode" + } + }, + { + "name": "set_center_of_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "center_of_mass", + "type": "Vector3" + } + ] + }, + { + "name": "get_center_of_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_physics_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784508650, + "arguments": [ + { + "name": "physics_material_override", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_material_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2521850424, + "return_value": { + "type": "PhysicsMaterial" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "linear_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "angular_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_inverse_inertia_tensor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2716978435, + "return_value": { + "type": "Basis" + } + }, + { + "name": "set_gravity_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "gravity_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_gravity_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1802035050, + "arguments": [ + { + "name": "linear_damp_mode", + "type": "enum::RigidBody3D.DampMode" + } + ] + }, + { + "name": "get_linear_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1366206940, + "return_value": { + "type": "enum::RigidBody3D.DampMode" + } + }, + { + "name": "set_angular_damp_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1802035050, + "arguments": [ + { + "name": "angular_damp_mode", + "type": "enum::RigidBody3D.DampMode" + } + ] + }, + { + "name": "get_angular_damp_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1366206940, + "return_value": { + "type": "enum::RigidBody3D.DampMode" + } + }, + { + "name": "set_linear_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_angular_damp", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angular_damp", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_angular_damp", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_contacts_reported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_contacts_reported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_contact_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_custom_integrator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_contact_monitor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_contact_monitor_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_continuous_collision_detection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_continuous_collision_detection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_axis_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "axis_velocity", + "type": "Vector3" + } + ] + }, + { + "name": "apply_central_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "apply_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_torque_impulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "impulse", + "type": "Vector3" + } + ] + }, + { + "name": "apply_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "apply_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "apply_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "add_constant_central_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "add_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1002852006, + "arguments": [ + { + "name": "force", + "type": "Vector3" + }, + { + "name": "position", + "type": "Vector3", + "default_value": "Vector3(0, 0, 0)" + } + ] + }, + { + "name": "add_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "set_constant_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "force", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_constant_torque", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "torque", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant_torque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_sleeping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "sleeping", + "type": "bool" + } + ] + }, + { + "name": "is_sleeping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_can_sleep", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "able_to_sleep", + "type": "bool" + } + ] + }, + { + "name": "is_able_to_sleep", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_lock_rotation_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "lock_rotation", + "type": "bool" + } + ] + }, + { + "name": "is_lock_rotation_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_freeze_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "freeze_mode", + "type": "bool" + } + ] + }, + { + "name": "is_freeze_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_freeze_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1319914653, + "arguments": [ + { + "name": "freeze_mode", + "type": "enum::RigidBody3D.FreezeMode" + } + ] + }, + { + "name": "get_freeze_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2008423905, + "return_value": { + "type": "enum::RigidBody3D.FreezeMode" + } + }, + { + "name": "get_colliding_bodies", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Node3D" + } + } + ], + "signals": [ + { + "name": "body_shape_entered", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_shape_exited", + "arguments": [ + { + "name": "body_rid", + "type": "RID" + }, + { + "name": "body", + "type": "Node" + }, + { + "name": "body_shape_index", + "type": "int" + }, + { + "name": "local_shape_index", + "type": "int" + } + ] + }, + { + "name": "body_entered", + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "body_exited", + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "sleeping_state_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "mass", + "setter": "set_mass", + "getter": "get_mass" + }, + { + "type": "Vector3", + "name": "inertia", + "setter": "set_inertia", + "getter": "get_inertia" + }, + { + "type": "int", + "name": "center_of_mass_mode", + "setter": "set_center_of_mass_mode", + "getter": "get_center_of_mass_mode" + }, + { + "type": "Vector3", + "name": "center_of_mass", + "setter": "set_center_of_mass", + "getter": "get_center_of_mass" + }, + { + "type": "PhysicsMaterial", + "name": "physics_material_override", + "setter": "set_physics_material_override", + "getter": "get_physics_material_override" + }, + { + "type": "float", + "name": "gravity_scale", + "setter": "set_gravity_scale", + "getter": "get_gravity_scale" + }, + { + "type": "bool", + "name": "custom_integrator", + "setter": "set_use_custom_integrator", + "getter": "is_using_custom_integrator" + }, + { + "type": "bool", + "name": "continuous_cd", + "setter": "set_use_continuous_collision_detection", + "getter": "is_using_continuous_collision_detection" + }, + { + "type": "int", + "name": "max_contacts_reported", + "setter": "set_max_contacts_reported", + "getter": "get_max_contacts_reported" + }, + { + "type": "bool", + "name": "contact_monitor", + "setter": "set_contact_monitor", + "getter": "is_contact_monitor_enabled" + }, + { + "type": "bool", + "name": "sleeping", + "setter": "set_sleeping", + "getter": "is_sleeping" + }, + { + "type": "bool", + "name": "can_sleep", + "setter": "set_can_sleep", + "getter": "is_able_to_sleep" + }, + { + "type": "bool", + "name": "lock_rotation", + "setter": "set_lock_rotation_enabled", + "getter": "is_lock_rotation_enabled" + }, + { + "type": "bool", + "name": "freeze", + "setter": "set_freeze_enabled", + "getter": "is_freeze_enabled" + }, + { + "type": "int", + "name": "freeze_mode", + "setter": "set_freeze_mode", + "getter": "get_freeze_mode" + }, + { + "type": "Vector3", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "int", + "name": "linear_damp_mode", + "setter": "set_linear_damp_mode", + "getter": "get_linear_damp_mode" + }, + { + "type": "float", + "name": "linear_damp", + "setter": "set_linear_damp", + "getter": "get_linear_damp" + }, + { + "type": "Vector3", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "int", + "name": "angular_damp_mode", + "setter": "set_angular_damp_mode", + "getter": "get_angular_damp_mode" + }, + { + "type": "float", + "name": "angular_damp", + "setter": "set_angular_damp", + "getter": "get_angular_damp" + }, + { + "type": "Vector3", + "name": "constant_force", + "setter": "set_constant_force", + "getter": "get_constant_force" + }, + { + "type": "Vector3", + "name": "constant_torque", + "setter": "set_constant_torque", + "getter": "get_constant_torque" + } + ] + }, + { + "name": "RootMotionView", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_animation_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_animation_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_cell_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_cell_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_zero_y", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_zero_y", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "animation_path", + "setter": "set_animation_path", + "getter": "get_animation_path" + }, + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "float", + "name": "cell_size", + "setter": "set_cell_size", + "getter": "get_cell_size" + }, + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "bool", + "name": "zero_y", + "setter": "set_zero_y", + "getter": "get_zero_y" + } + ] + }, + { + "name": "SceneMultiplayer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerAPI", + "api_type": "core", + "methods": [ + { + "name": "set_root_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_root_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "disconnect_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_authenticating_peers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "send_auth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 506032537, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "complete_auth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844576869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_auth_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "get_auth_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1307783378, + "return_value": { + "type": "Callable" + } + }, + { + "name": "set_auth_timeout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "timeout", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_auth_timeout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_refuse_new_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "refuse", + "type": "bool" + } + ] + }, + { + "name": "is_refusing_new_connections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_object_decoding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_object_decoding_allowed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_server_relay_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_server_relay_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "send_bytes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2742700601, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "bytes", + "type": "PackedByteArray" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "mode", + "type": "enum::MultiplayerPeer.TransferMode", + "default_value": "2" + }, + { + "name": "channel", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + } + ], + "signals": [ + { + "name": "peer_authenticating", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "peer_authentication_failed", + "arguments": [ + { + "name": "id", + "type": "int" + } + ] + }, + { + "name": "peer_packet", + "arguments": [ + { + "name": "id", + "type": "int" + }, + { + "name": "packet", + "type": "PackedByteArray" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "root_path", + "setter": "set_root_path", + "getter": "get_root_path" + }, + { + "type": "Callable", + "name": "auth_callback", + "setter": "set_auth_callback", + "getter": "get_auth_callback" + }, + { + "type": "float", + "name": "auth_timeout", + "setter": "set_auth_timeout", + "getter": "get_auth_timeout" + }, + { + "type": "bool", + "name": "allow_object_decoding", + "setter": "set_allow_object_decoding", + "getter": "is_object_decoding_allowed" + }, + { + "type": "bool", + "name": "refuse_new_connections", + "setter": "set_refuse_new_connections", + "getter": "is_refusing_new_connections" + }, + { + "type": "bool", + "name": "server_relay", + "setter": "set_server_relay_enabled", + "getter": "is_server_relay_enabled" + } + ] + }, + { + "name": "SceneReplicationConfig", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_properties", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::NodePath" + } + }, + { + "name": "add_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3818401521, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "has_property", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 861721659, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "remove_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "property_get_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1382022557, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "property_get_spawn", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3456846888, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "property_set_spawn", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3868023870, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "property_get_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3456846888, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "property_set_sync", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3868023870, + "arguments": [ + { + "name": "path", + "type": "NodePath" + }, + { + "name": "enabled", + "type": "bool" + } + ] + } + ] + }, + { + "name": "SceneState", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "GenEditState", + "is_bitfield": false, + "values": [ + { + "name": "GEN_EDIT_STATE_DISABLED", + "value": 0 + }, + { + "name": "GEN_EDIT_STATE_INSTANCE", + "value": 1 + }, + { + "name": "GEN_EDIT_STATE_MAIN", + "value": 2 + }, + { + "name": "GEN_EDIT_STATE_MAIN_INHERITED", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "get_node_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_node_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2272487792, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "for_parent", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_node_owner_path", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_node_instance_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_instance_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_instance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 511017218, + "return_value": { + "type": "PackedScene" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_groups", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 647634434, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_property_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_property_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 351665558, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "prop_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_property_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 678354945, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "prop_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_connection_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_target", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_method", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_binds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_connection_unbinds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "SceneTree", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "MainLoop", + "api_type": "core", + "enums": [ + { + "name": "GroupCallFlags", + "is_bitfield": false, + "values": [ + { + "name": "GROUP_CALL_DEFAULT", + "value": 0 + }, + { + "name": "GROUP_CALL_REVERSE", + "value": 1 + }, + { + "name": "GROUP_CALL_DEFERRED", + "value": 2 + }, + { + "name": "GROUP_CALL_UNIQUE", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "get_root", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1757182445, + "return_value": { + "type": "Window" + } + }, + { + "name": "has_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "is_auto_accept_quit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_accept_quit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_quit_on_go_back", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_quit_on_go_back", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_debug_collisions_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_debugging_collisions_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_paths_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_debugging_paths_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_navigation_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_debugging_navigation_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_edited_scene_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "scene", + "type": "Node" + } + ] + }, + { + "name": "get_edited_scene_root", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "set_pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "create_timer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1780978058, + "return_value": { + "type": "SceneTreeTimer" + }, + "arguments": [ + { + "name": "time_sec", + "type": "float", + "meta": "double" + }, + { + "name": "process_always", + "type": "bool", + "default_value": "true" + }, + { + "name": "process_in_physics", + "type": "bool", + "default_value": "false" + }, + { + "name": "ignore_time_scale", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "create_tween", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3426978995, + "return_value": { + "type": "Tween" + } + }, + { + "name": "get_processed_tweens", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Tween" + } + }, + { + "name": "get_node_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "quit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "exit_code", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "queue_delete", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975164845, + "arguments": [ + { + "name": "obj", + "type": "Object" + } + ] + }, + { + "name": "call_group_flags", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 1527739229, + "arguments": [ + { + "name": "flags", + "type": "int" + }, + { + "name": "group", + "type": "StringName" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "notify_group_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1245489420, + "arguments": [ + { + "name": "call_flags", + "type": "int", + "meta": "uint32" + }, + { + "name": "group", + "type": "StringName" + }, + { + "name": "notification", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_group_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3497599527, + "arguments": [ + { + "name": "call_flags", + "type": "int", + "meta": "uint32" + }, + { + "name": "group", + "type": "StringName" + }, + { + "name": "property", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "call_group", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 1257962832, + "arguments": [ + { + "name": "group", + "type": "StringName" + }, + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "notify_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "group", + "type": "StringName" + }, + { + "name": "notification", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1279312029, + "arguments": [ + { + "name": "group", + "type": "StringName" + }, + { + "name": "property", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_nodes_in_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 689397652, + "return_value": { + "type": "typedarray::Node" + }, + "arguments": [ + { + "name": "group", + "type": "StringName" + } + ] + }, + { + "name": "get_first_node_in_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4071044623, + "return_value": { + "type": "Node" + }, + "arguments": [ + { + "name": "group", + "type": "StringName" + } + ] + }, + { + "name": "set_current_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "child_node", + "type": "Node" + } + ] + }, + { + "name": "get_current_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3160264692, + "return_value": { + "type": "Node" + } + }, + { + "name": "change_scene_to_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "change_scene_to_packed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107349098, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "packed_scene", + "type": "PackedScene" + } + ] + }, + { + "name": "reload_current_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "unload_current_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_multiplayer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2385607013, + "arguments": [ + { + "name": "multiplayer", + "type": "MultiplayerAPI" + }, + { + "name": "root_path", + "type": "NodePath", + "default_value": "NodePath(\"\")" + } + ] + }, + { + "name": "get_multiplayer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3453401404, + "return_value": { + "type": "MultiplayerAPI" + }, + "arguments": [ + { + "name": "for_path", + "type": "NodePath", + "default_value": "NodePath(\"\")" + } + ] + }, + { + "name": "set_multiplayer_poll_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_multiplayer_poll_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "tree_changed" + }, + { + "name": "tree_process_mode_changed" + }, + { + "name": "node_added", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "node_removed", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "node_renamed", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "node_configuration_warning_changed", + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "process_frame" + }, + { + "name": "physics_frame" + } + ], + "properties": [ + { + "type": "bool", + "name": "auto_accept_quit", + "setter": "set_auto_accept_quit", + "getter": "is_auto_accept_quit" + }, + { + "type": "bool", + "name": "quit_on_go_back", + "setter": "set_quit_on_go_back", + "getter": "is_quit_on_go_back" + }, + { + "type": "bool", + "name": "debug_collisions_hint", + "setter": "set_debug_collisions_hint", + "getter": "is_debugging_collisions_hint" + }, + { + "type": "bool", + "name": "debug_paths_hint", + "setter": "set_debug_paths_hint", + "getter": "is_debugging_paths_hint" + }, + { + "type": "bool", + "name": "debug_navigation_hint", + "setter": "set_debug_navigation_hint", + "getter": "is_debugging_navigation_hint" + }, + { + "type": "bool", + "name": "paused", + "setter": "set_pause", + "getter": "is_paused" + }, + { + "type": "Node", + "name": "edited_scene_root", + "setter": "set_edited_scene_root", + "getter": "get_edited_scene_root" + }, + { + "type": "Node", + "name": "current_scene", + "setter": "set_current_scene", + "getter": "get_current_scene" + }, + { + "type": "Node", + "name": "root", + "getter": "get_root" + }, + { + "type": "bool", + "name": "multiplayer_poll", + "setter": "set_multiplayer_poll_enabled", + "getter": "is_multiplayer_poll_enabled" + } + ] + }, + { + "name": "SceneTreeTimer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "set_time_left", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_time_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + } + ], + "signals": [ + { + "name": "timeout" + } + ], + "properties": [ + { + "type": "float", + "name": "time_left", + "setter": "set_time_left", + "getter": "get_time_left" + } + ] + }, + { + "name": "Script", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "can_instantiate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "instance_has", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 397768994, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "base_object", + "type": "Object" + } + ] + }, + { + "name": "has_source_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_source_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_source_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "source", + "type": "String" + } + ] + }, + { + "name": "reload", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1633102583, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "keep_state", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_base_script", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 278624046, + "return_value": { + "type": "Script" + } + }, + { + "name": "get_instance_base_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "has_script_signal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "signal_name", + "type": "StringName" + } + ] + }, + { + "name": "get_script_property_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_script_method_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_script_signal_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "get_script_constant_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_property_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2138907829, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "is_tool", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "source_code", + "setter": "set_source_code", + "getter": "get_source_code" + } + ] + }, + { + "name": "ScriptCreateDialog", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "ConfirmationDialog", + "api_type": "editor", + "methods": [ + { + "name": "config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4210001628, + "arguments": [ + { + "name": "inherits", + "type": "String" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "built_in_enabled", + "type": "bool", + "default_value": "true" + }, + { + "name": "load_enabled", + "type": "bool", + "default_value": "true" + } + ] + } + ], + "signals": [ + { + "name": "script_created", + "arguments": [ + { + "name": "script", + "type": "Script" + } + ] + } + ] + }, + { + "name": "ScriptEditor", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "PanelContainer", + "api_type": "editor", + "methods": [ + { + "name": "get_current_editor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1906266726, + "return_value": { + "type": "ScriptEditorBase" + } + }, + { + "name": "get_open_script_editors", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::ScriptEditorBase" + } + }, + { + "name": "register_syntax_highlighter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1092774468, + "arguments": [ + { + "name": "syntax_highlighter", + "type": "EditorSyntaxHighlighter" + } + ] + }, + { + "name": "unregister_syntax_highlighter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1092774468, + "arguments": [ + { + "name": "syntax_highlighter", + "type": "EditorSyntaxHighlighter" + } + ] + }, + { + "name": "goto_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "line_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_script", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2146468882, + "return_value": { + "type": "Script" + } + }, + { + "name": "get_open_scripts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Script" + } + }, + { + "name": "open_script_create_dialog", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3186203200, + "arguments": [ + { + "name": "base_name", + "type": "String" + }, + { + "name": "base_path", + "type": "String" + } + ] + } + ], + "signals": [ + { + "name": "editor_script_changed", + "arguments": [ + { + "name": "script", + "type": "Script" + } + ] + }, + { + "name": "script_close", + "arguments": [ + { + "name": "script", + "type": "Script" + } + ] + } + ] + }, + { + "name": "ScriptEditorBase", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "VBoxContainer", + "api_type": "editor", + "methods": [ + { + "name": "get_base_editor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, + { + "name": "add_syntax_highlighter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1092774468, + "arguments": [ + { + "name": "highlighter", + "type": "EditorSyntaxHighlighter" + } + ] + } + ], + "signals": [ + { + "name": "name_changed" + }, + { + "name": "edited_script_changed" + }, + { + "name": "request_help", + "arguments": [ + { + "name": "topic", + "type": "String" + } + ] + }, + { + "name": "request_open_script_at_line", + "arguments": [ + { + "name": "script", + "type": "Object" + }, + { + "name": "line", + "type": "int" + } + ] + }, + { + "name": "request_save_history" + }, + { + "name": "go_to_help", + "arguments": [ + { + "name": "what", + "type": "String" + } + ] + }, + { + "name": "search_in_files_requested", + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "replace_in_files_requested", + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "go_to_method", + "arguments": [ + { + "name": "script", + "type": "Object" + }, + { + "name": "method", + "type": "String" + } + ] + } + ] + }, + { + "name": "ScriptExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Script", + "api_type": "core", + "methods": [ + { + "name": "_editor_can_reload_from_file", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_placeholder_erased", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "placeholder", + "type": "void*" + } + ] + }, + { + "name": "_can_instantiate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_base_script", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Script" + } + }, + { + "name": "_get_global_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + } + }, + { + "name": "_inherits_script", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "script", + "type": "Script" + } + ] + }, + { + "name": "_get_instance_base_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + } + }, + { + "name": "_instance_create", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "void*" + }, + "arguments": [ + { + "name": "for_object", + "type": "Object" + } + ] + }, + { + "name": "_placeholder_instance_create", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "void*" + }, + "arguments": [ + { + "name": "for_object", + "type": "Object" + } + ] + }, + { + "name": "_instance_has", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "_has_source_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_source_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_set_source_code", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "code", + "type": "String" + } + ] + }, + { + "name": "_reload", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "keep_state", + "type": "bool" + } + ] + }, + { + "name": "_get_documentation", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_has_method", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "_get_method_info", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + }, + { + "name": "_is_tool", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_is_valid", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_language", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "ScriptLanguage" + } + }, + { + "name": "_has_script_signal", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "signal", + "type": "StringName" + } + ] + }, + { + "name": "_get_script_signal_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_has_property_default_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "_get_property_default_value", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "property", + "type": "StringName" + } + ] + }, + { + "name": "_update_exports", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_script_method_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_get_script_property_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_get_member_line", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "member", + "type": "StringName" + } + ] + }, + { + "name": "_get_constants", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_get_members", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::StringName" + } + }, + { + "name": "_is_placeholder_fallback_enabled", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_rpc_config", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + } + } + ] + }, + { + "name": "ScriptLanguage", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core" + }, + { + "name": "ScriptLanguageExtension", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "ScriptLanguage", + "api_type": "core", + "enums": [ + { + "name": "LookupResultType", + "is_bitfield": false, + "values": [ + { + "name": "LOOKUP_RESULT_SCRIPT_LOCATION", + "value": 0 + }, + { + "name": "LOOKUP_RESULT_CLASS", + "value": 1 + }, + { + "name": "LOOKUP_RESULT_CLASS_CONSTANT", + "value": 2 + }, + { + "name": "LOOKUP_RESULT_CLASS_PROPERTY", + "value": 3 + }, + { + "name": "LOOKUP_RESULT_CLASS_METHOD", + "value": 4 + }, + { + "name": "LOOKUP_RESULT_CLASS_SIGNAL", + "value": 5 + }, + { + "name": "LOOKUP_RESULT_CLASS_ENUM", + "value": 6 + }, + { + "name": "LOOKUP_RESULT_CLASS_TBD_GLOBALSCOPE", + "value": 7 + }, + { + "name": "LOOKUP_RESULT_CLASS_ANNOTATION", + "value": 8 + }, + { + "name": "LOOKUP_RESULT_MAX", + "value": 9 + } + ] + }, + { + "name": "CodeCompletionLocation", + "is_bitfield": false, + "values": [ + { + "name": "LOCATION_LOCAL", + "value": 0 + }, + { + "name": "LOCATION_PARENT_MASK", + "value": 256 + }, + { + "name": "LOCATION_OTHER_USER_CODE", + "value": 512 + }, + { + "name": "LOCATION_OTHER", + "value": 1024 + } + ] + }, + { + "name": "CodeCompletionKind", + "is_bitfield": false, + "values": [ + { + "name": "CODE_COMPLETION_KIND_CLASS", + "value": 0 + }, + { + "name": "CODE_COMPLETION_KIND_FUNCTION", + "value": 1 + }, + { + "name": "CODE_COMPLETION_KIND_SIGNAL", + "value": 2 + }, + { + "name": "CODE_COMPLETION_KIND_VARIABLE", + "value": 3 + }, + { + "name": "CODE_COMPLETION_KIND_MEMBER", + "value": 4 + }, + { + "name": "CODE_COMPLETION_KIND_ENUM", + "value": 5 + }, + { + "name": "CODE_COMPLETION_KIND_CONSTANT", + "value": 6 + }, + { + "name": "CODE_COMPLETION_KIND_NODE_PATH", + "value": 7 + }, + { + "name": "CODE_COMPLETION_KIND_FILE_PATH", + "value": 8 + }, + { + "name": "CODE_COMPLETION_KIND_PLAIN_TEXT", + "value": 9 + }, + { + "name": "CODE_COMPLETION_KIND_MAX", + "value": 10 + } + ] + } + ], + "methods": [ + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_init", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_extension", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_finish", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_reserved_words", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_is_control_flow_keyword", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "keyword", + "type": "String" + } + ] + }, + { + "name": "_get_comment_delimiters", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_get_string_delimiters", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_make_template", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Script" + }, + "arguments": [ + { + "name": "template", + "type": "String" + }, + { + "name": "class_name", + "type": "String" + }, + { + "name": "base_class_name", + "type": "String" + } + ] + }, + { + "name": "_get_built_in_templates", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "object", + "type": "StringName" + } + ] + }, + { + "name": "_is_using_templates", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_validate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "script", + "type": "String" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "validate_functions", + "type": "bool" + }, + { + "name": "validate_errors", + "type": "bool" + }, + { + "name": "validate_warnings", + "type": "bool" + }, + { + "name": "validate_safe_lines", + "type": "bool" + } + ] + }, + { + "name": "_validate_path", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "_create_script", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + } + }, + { + "name": "_has_named_classes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_supports_builtin_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_supports_documentation", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_can_inherit_from_file", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_find_function", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "class_name", + "type": "String" + }, + { + "name": "function_name", + "type": "String" + } + ] + }, + { + "name": "_make_function", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "class_name", + "type": "String" + }, + { + "name": "function_name", + "type": "String" + }, + { + "name": "function_args", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_open_in_external_editor", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "script", + "type": "Script" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_overrides_external_editor", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_complete_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "code", + "type": "String" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "owner", + "type": "Object" + } + ] + }, + { + "name": "_lookup_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "code", + "type": "String" + }, + { + "name": "symbol", + "type": "String" + }, + { + "name": "path", + "type": "String" + }, + { + "name": "owner", + "type": "Object" + } + ] + }, + { + "name": "_auto_indent_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "code", + "type": "String" + }, + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_add_global_constant", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_add_named_global_constant", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "_remove_named_global_constant", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "_thread_enter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_thread_exit", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_debug_get_error", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_debug_get_stack_level_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_debug_get_stack_level_line", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_stack_level_function", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_stack_level_locals", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + }, + { + "name": "max_subitems", + "type": "int", + "meta": "int32" + }, + { + "name": "max_depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_stack_level_members", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + }, + { + "name": "max_subitems", + "type": "int", + "meta": "int32" + }, + { + "name": "max_depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_stack_level_instance", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "void*" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_globals", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "max_subitems", + "type": "int", + "meta": "int32" + }, + { + "name": "max_depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_parse_stack_level_expression", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "level", + "type": "int", + "meta": "int32" + }, + { + "name": "expression", + "type": "String" + }, + { + "name": "max_subitems", + "type": "int", + "meta": "int32" + }, + { + "name": "max_depth", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_debug_get_current_stack_info", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_reload_all_scripts", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_reload_tool_script", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "script", + "type": "Script" + }, + { + "name": "soft_reload", + "type": "bool" + } + ] + }, + { + "name": "_get_recognized_extensions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_get_public_functions", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_get_public_constants", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "_get_public_annotations", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "_profiling_start", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_profiling_stop", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_profiling_get_accumulated_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "info_array", + "type": "ScriptLanguageExtensionProfilingInfo*" + }, + { + "name": "info_max", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_profiling_get_frame_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "info_array", + "type": "ScriptLanguageExtensionProfilingInfo*" + }, + { + "name": "info_max", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_frame", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_handles_global_class_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "_get_global_class_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "ScrollBar", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Range", + "api_type": "core", + "methods": [ + { + "name": "set_custom_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "step", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_custom_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "signals": [ + { + "name": "scrolling" + } + ], + "properties": [ + { + "type": "float", + "name": "custom_step", + "setter": "set_custom_step", + "getter": "get_custom_step" + } + ] + }, + { + "name": "ScrollContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "ScrollMode", + "is_bitfield": false, + "values": [ + { + "name": "SCROLL_MODE_DISABLED", + "value": 0 + }, + { + "name": "SCROLL_MODE_AUTO", + "value": 1 + }, + { + "name": "SCROLL_MODE_SHOW_ALWAYS", + "value": 2 + }, + { + "name": "SCROLL_MODE_SHOW_NEVER", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_h_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_h_scroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_v_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_v_scroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_horizontal_scroll_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2750506364, + "arguments": [ + { + "name": "enable", + "type": "enum::ScrollContainer.ScrollMode" + } + ] + }, + { + "name": "get_horizontal_scroll_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3987985145, + "return_value": { + "type": "enum::ScrollContainer.ScrollMode" + } + }, + { + "name": "set_vertical_scroll_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2750506364, + "arguments": [ + { + "name": "enable", + "type": "enum::ScrollContainer.ScrollMode" + } + ] + }, + { + "name": "get_vertical_scroll_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3987985145, + "return_value": { + "type": "enum::ScrollContainer.ScrollMode" + } + }, + { + "name": "set_deadzone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "deadzone", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_deadzone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_follow_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_following_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_h_scroll_bar", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4004517983, + "return_value": { + "type": "HScrollBar" + } + }, + { + "name": "get_v_scroll_bar", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2630340773, + "return_value": { + "type": "VScrollBar" + } + }, + { + "name": "ensure_control_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1496901182, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + } + ], + "signals": [ + { + "name": "scroll_started" + }, + { + "name": "scroll_ended" + } + ], + "properties": [ + { + "type": "bool", + "name": "follow_focus", + "setter": "set_follow_focus", + "getter": "is_following_focus" + }, + { + "type": "int", + "name": "scroll_horizontal", + "setter": "set_h_scroll", + "getter": "get_h_scroll" + }, + { + "type": "int", + "name": "scroll_vertical", + "setter": "set_v_scroll", + "getter": "get_v_scroll" + }, + { + "type": "int", + "name": "horizontal_scroll_mode", + "setter": "set_horizontal_scroll_mode", + "getter": "get_horizontal_scroll_mode" + }, + { + "type": "int", + "name": "vertical_scroll_mode", + "setter": "set_vertical_scroll_mode", + "getter": "get_vertical_scroll_mode" + }, + { + "type": "int", + "name": "scroll_deadzone", + "setter": "set_deadzone", + "getter": "get_deadzone" + } + ] + }, + { + "name": "SegmentShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_a", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "a", + "type": "Vector2" + } + ] + }, + { + "name": "get_a", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_b", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "b", + "type": "Vector2" + } + ] + }, + { + "name": "get_b", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "a", + "setter": "set_a", + "getter": "get_a" + }, + { + "type": "Vector2", + "name": "b", + "setter": "set_b", + "getter": "get_b" + } + ] + }, + { + "name": "Semaphore", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "wait", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "try_wait", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "post", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "SeparationRayShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_slide_on_slope", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_slide_on_slope", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "bool", + "name": "slide_on_slope", + "setter": "set_slide_on_slope", + "getter": "get_slide_on_slope" + } + ] + }, + { + "name": "SeparationRayShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_slide_on_slope", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "get_slide_on_slope", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "bool", + "name": "slide_on_slope", + "setter": "set_slide_on_slope", + "getter": "get_slide_on_slope" + } + ] + }, + { + "name": "Separator", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Control", + "api_type": "core" + }, + { + "name": "Shader", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_SPATIAL", + "value": 0 + }, + { + "name": "MODE_CANVAS_ITEM", + "value": 1 + }, + { + "name": "MODE_PARTICLES", + "value": 2 + }, + { + "name": "MODE_SKY", + "value": 3 + }, + { + "name": "MODE_FOG", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3392948163, + "return_value": { + "type": "enum::Shader.Mode" + } + }, + { + "name": "set_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "code", + "type": "String" + } + ] + }, + { + "name": "get_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_default_texture_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1628453603, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_default_texture_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3823812009, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_shader_uniform_list", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1230511656, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "get_groups", + "type": "bool", + "default_value": "false" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "code", + "setter": "set_code", + "getter": "get_code" + } + ] + }, + { + "name": "ShaderGlobalsOverride", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core" + }, + { + "name": "ShaderInclude", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_code", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "code", + "type": "String" + } + ] + }, + { + "name": "get_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "code", + "setter": "set_code", + "getter": "get_code" + } + ] + }, + { + "name": "ShaderMaterial", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Material", + "api_type": "core", + "methods": [ + { + "name": "set_shader", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341921675, + "arguments": [ + { + "name": "shader", + "type": "Shader" + } + ] + }, + { + "name": "get_shader", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2078273437, + "return_value": { + "type": "Shader" + } + }, + { + "name": "set_shader_parameter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "param", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_shader_parameter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "param", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "Shader", + "name": "shader", + "setter": "set_shader", + "getter": "get_shader" + } + ] + }, + { + "name": "Shape2D", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_custom_solver_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_custom_solver_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "collide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3709843132, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "local_xform", + "type": "Transform2D" + }, + { + "name": "with_shape", + "type": "Shape2D" + }, + { + "name": "shape_xform", + "type": "Transform2D" + } + ] + }, + { + "name": "collide_with_motion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869556801, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "local_xform", + "type": "Transform2D" + }, + { + "name": "local_motion", + "type": "Vector2" + }, + { + "name": "with_shape", + "type": "Shape2D" + }, + { + "name": "shape_xform", + "type": "Transform2D" + }, + { + "name": "shape_motion", + "type": "Vector2" + } + ] + }, + { + "name": "collide_and_get_contacts", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3056932662, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "local_xform", + "type": "Transform2D" + }, + { + "name": "with_shape", + "type": "Shape2D" + }, + { + "name": "shape_xform", + "type": "Transform2D" + } + ] + }, + { + "name": "collide_with_motion_and_get_contacts", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3620351573, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "local_xform", + "type": "Transform2D" + }, + { + "name": "local_motion", + "type": "Vector2" + }, + { + "name": "with_shape", + "type": "Shape2D" + }, + { + "name": "shape_xform", + "type": "Transform2D" + }, + { + "name": "shape_motion", + "type": "Vector2" + } + ] + }, + { + "name": "draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2948539648, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + } + ], + "properties": [ + { + "type": "float", + "name": "custom_solver_bias", + "setter": "set_custom_solver_bias", + "getter": "get_custom_solver_bias" + } + ] + }, + { + "name": "Shape3D", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_custom_solver_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_custom_solver_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_debug_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1605880883, + "return_value": { + "type": "ArrayMesh" + } + } + ], + "properties": [ + { + "type": "float", + "name": "custom_solver_bias", + "setter": "set_custom_solver_bias", + "getter": "get_custom_solver_bias" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + } + ] + }, + { + "name": "ShapeCast2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 771364740, + "arguments": [ + { + "name": "shape", + "type": "Shape2D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 522005891, + "return_value": { + "type": "Shape2D" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "local_point", + "type": "Vector2" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_results", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_results", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_colliding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "force_shapecast_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_closest_collision_safe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_closest_collision_unsafe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "add_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "add_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3090941106, + "arguments": [ + { + "name": "node", + "type": "CollisionObject2D" + } + ] + }, + { + "name": "remove_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "remove_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3090941106, + "arguments": [ + { + "name": "node", + "type": "CollisionObject2D" + } + ] + }, + { + "name": "clear_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_exclude_parent_body", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "mask", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_parent_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "Shape2D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "bool", + "name": "exclude_parent", + "setter": "set_exclude_parent_body", + "getter": "get_exclude_parent_body" + }, + { + "type": "Vector2", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "int", + "name": "max_results", + "setter": "set_max_results", + "getter": "get_max_results" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "Array", + "name": "collision_result", + "getter": "_get_collision_result" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + } + ] + }, + { + "name": "ShapeCast3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "resource_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 968641751, + "arguments": [ + { + "name": "resource", + "type": "Resource" + } + ] + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549710052, + "arguments": [ + { + "name": "shape", + "type": "Shape3D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3214262478, + "return_value": { + "type": "Shape3D" + } + }, + { + "name": "set_target_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "local_point", + "type": "Vector3" + } + ] + }, + { + "name": "get_target_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_results", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_results", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_results", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_colliding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_collision_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "force_shapecast_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_collider", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3332903315, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collider_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collider_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_closest_collision_safe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_closest_collision_unsafe_fraction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "add_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "add_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1976431078, + "arguments": [ + { + "name": "node", + "type": "CollisionObject3D" + } + ] + }, + { + "name": "remove_exception_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "remove_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1976431078, + "arguments": [ + { + "name": "node", + "type": "CollisionObject3D" + } + ] + }, + { + "name": "clear_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_exclude_parent_body", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "mask", + "type": "bool" + } + ] + }, + { + "name": "get_exclude_parent_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_areas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_areas_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collide_with_bodies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collide_with_bodies_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_shape_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "debug_shape_custom_color", + "type": "Color" + } + ] + }, + { + "name": "get_debug_shape_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "is_enabled" + }, + { + "type": "Shape3D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "bool", + "name": "exclude_parent", + "setter": "set_exclude_parent_body", + "getter": "get_exclude_parent_body" + }, + { + "type": "Vector3", + "name": "target_position", + "setter": "set_target_position", + "getter": "get_target_position" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + }, + { + "type": "int", + "name": "max_results", + "setter": "set_max_results", + "getter": "get_max_results" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "Array", + "name": "collision_result", + "getter": "_get_collision_result" + }, + { + "type": "bool", + "name": "collide_with_areas", + "setter": "set_collide_with_areas", + "getter": "is_collide_with_areas_enabled" + }, + { + "type": "bool", + "name": "collide_with_bodies", + "setter": "set_collide_with_bodies", + "getter": "is_collide_with_bodies_enabled" + }, + { + "type": "Color", + "name": "debug_shape_custom_color", + "setter": "set_debug_shape_custom_color", + "getter": "get_debug_shape_custom_color" + } + ] + }, + { + "name": "Shortcut", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_events", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "events", + "type": "Array" + } + ] + }, + { + "name": "get_events", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "has_valid_event", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "matches_event", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3738334489, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "get_as_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "typedarray::24/17:InputEvent", + "name": "events", + "setter": "set_events", + "getter": "get_events" + } + ] + }, + { + "name": "Skeleton2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "get_bone_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2556267111, + "return_value": { + "type": "Bone2D" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_modification_stack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3907307132, + "arguments": [ + { + "name": "modification_stack", + "type": "SkeletonModificationStack2D" + } + ] + }, + { + "name": "get_modification_stack", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2107508396, + "return_value": { + "type": "SkeletonModificationStack2D" + } + }, + { + "name": "execute_modifications", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1005356550, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "execution_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_local_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 555457532, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "override_pose", + "type": "Transform2D" + }, + { + "name": "strength", + "type": "float", + "meta": "float" + }, + { + "name": "persistent", + "type": "bool" + } + ] + }, + { + "name": "get_bone_local_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2995540667, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "bone_setup_changed" + } + ] + }, + { + "name": "Skeleton3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_UPDATE_SKELETON", + "value": 50 + } + ], + "methods": [ + { + "name": "add_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "find_bone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_bone_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_bone_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "parent_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "unparent_bone_and_rest", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_children", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1706082319, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_parentless_bones", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "get_bone_rest", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_rest", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "rest", + "type": "Transform3D" + } + ] + }, + { + "name": "get_bone_global_rest", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_skin_from_rest_transforms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1032037385, + "return_value": { + "type": "Skin" + } + }, + { + "name": "register_skin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3405789568, + "return_value": { + "type": "SkinReference" + }, + "arguments": [ + { + "name": "skin", + "type": "Skin" + } + ] + }, + { + "name": "localize_rests", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_bone_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_pose_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector3" + } + ] + }, + { + "name": "set_bone_pose_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2823819782, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "rotation", + "type": "Quaternion" + } + ] + }, + { + "name": "set_bone_pose_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1530502735, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "scale", + "type": "Vector3" + } + ] + }, + { + "name": "get_bone_pose_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_pose_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 476865136, + "return_value": { + "type": "Quaternion" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_pose_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 711720468, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "reset_bone_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "reset_bone_poses", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_bone_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "clear_bones_global_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_bone_global_pose_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3483398371, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" + }, + { + "name": "amount", + "type": "float", + "meta": "float" + }, + { + "name": "persistent", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_bone_global_pose_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_global_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_global_pose_no_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "force_update_all_bone_transforms", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "force_update_bone_child_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_motion_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "motion_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_motion_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_show_rest_only", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_show_rest_only", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_animate_physical_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_animate_physical_bones", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "physical_bones_stop_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "physical_bones_start_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787316981, + "arguments": [ + { + "name": "bones", + "type": "typedarray::StringName", + "default_value": "[]" + } + ] + }, + { + "name": "physical_bones_add_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "exception", + "type": "RID" + } + ] + }, + { + "name": "physical_bones_remove_collision_exception", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "exception", + "type": "RID" + } + ] + } + ], + "signals": [ + { + "name": "pose_updated" + }, + { + "name": "bone_pose_changed", + "arguments": [ + { + "name": "bone_idx", + "type": "int" + } + ] + }, + { + "name": "bone_enabled_changed", + "arguments": [ + { + "name": "bone_idx", + "type": "int" + } + ] + }, + { + "name": "show_rest_only_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "motion_scale", + "setter": "set_motion_scale", + "getter": "get_motion_scale" + }, + { + "type": "bool", + "name": "show_rest_only", + "setter": "set_show_rest_only", + "getter": "is_show_rest_only" + }, + { + "type": "bool", + "name": "animate_physical_bones", + "setter": "set_animate_physical_bones", + "getter": "get_animate_physical_bones" + } + ] + }, + { + "name": "SkeletonIK3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "set_root_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "root_bone", + "type": "StringName" + } + ] + }, + { + "name": "get_root_bone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_tip_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "tip_bone", + "type": "StringName" + } + ] + }, + { + "name": "get_tip_bone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_interpolation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "interpolation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_interpolation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_target_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "target", + "type": "Transform3D" + } + ] + }, + { + "name": "get_target_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "node", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 277076166, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_override_tip_basis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "override", + "type": "bool" + } + ] + }, + { + "name": "is_override_tip_basis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_magnet", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use", + "type": "bool" + } + ] + }, + { + "name": "is_using_magnet", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_magnet_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "local_position", + "type": "Vector3" + } + ] + }, + { + "name": "get_magnet_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_parent_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1488626673, + "return_value": { + "type": "Skeleton3D" + } + }, + { + "name": "is_running", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_min_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "min_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_min_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max_iterations", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "iterations", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_iterations", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107499316, + "arguments": [ + { + "name": "one_time", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "StringName", + "name": "root_bone", + "setter": "set_root_bone", + "getter": "get_root_bone" + }, + { + "type": "StringName", + "name": "tip_bone", + "setter": "set_tip_bone", + "getter": "get_tip_bone" + }, + { + "type": "float", + "name": "interpolation", + "setter": "set_interpolation", + "getter": "get_interpolation" + }, + { + "type": "Transform3D", + "name": "target", + "setter": "set_target_transform", + "getter": "get_target_transform" + }, + { + "type": "bool", + "name": "override_tip_basis", + "setter": "set_override_tip_basis", + "getter": "is_override_tip_basis" + }, + { + "type": "bool", + "name": "use_magnet", + "setter": "set_use_magnet", + "getter": "is_using_magnet" + }, + { + "type": "Vector3", + "name": "magnet", + "setter": "set_magnet_position", + "getter": "get_magnet_position" + }, + { + "type": "NodePath", + "name": "target_node", + "setter": "set_target_node", + "getter": "get_target_node" + }, + { + "type": "float", + "name": "min_distance", + "setter": "set_min_distance", + "getter": "get_min_distance" + }, + { + "type": "int", + "name": "max_iterations", + "setter": "set_max_iterations", + "getter": "get_max_iterations" + } + ] + }, + { + "name": "SkeletonModification2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_execute", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_setup_modification", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "modification_stack", + "type": "SkeletonModificationStack2D" + } + ] + }, + { + "name": "_draw_editor_gizmo", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_modification_stack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2137761694, + "return_value": { + "type": "SkeletonModificationStack2D" + } + }, + { + "name": "set_is_setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "is_setup", + "type": "bool" + } + ] + }, + { + "name": "get_is_setup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_execution_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "execution_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_execution_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "clamp_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1229502682, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "angle", + "type": "float", + "meta": "float" + }, + { + "name": "min", + "type": "float", + "meta": "float" + }, + { + "name": "max", + "type": "float", + "meta": "float" + }, + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "set_editor_draw_gizmo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draw_gizmo", + "type": "bool" + } + ] + }, + { + "name": "get_editor_draw_gizmo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "get_enabled" + }, + { + "type": "int", + "name": "execution_mode", + "setter": "set_execution_mode", + "getter": "get_execution_mode" + } + ] + }, + { + "name": "SkeletonModification2DCCDIK", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_tip_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "tip_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_tip_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_ccdik_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ccdik_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_ccdik_joint_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone2d_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_ccdik_joint_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_bone_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ccdik_joint_bone_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_rotate_from_joint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "rotate_from_joint", + "type": "bool" + } + ] + }, + { + "name": "get_ccdik_joint_rotate_from_joint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_enable_constraint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "enable_constraint", + "type": "bool" + } + ] + }, + { + "name": "get_ccdik_joint_enable_constraint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_constraint_angle_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "angle_min", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ccdik_joint_constraint_angle_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_constraint_angle_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "angle_max", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_ccdik_joint_constraint_angle_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ccdik_joint_constraint_angle_invert", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "get_ccdik_joint_constraint_angle_invert", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "target_nodepath", + "setter": "set_target_node", + "getter": "get_target_node" + }, + { + "type": "NodePath", + "name": "tip_nodepath", + "setter": "set_tip_node", + "getter": "get_tip_node" + }, + { + "type": "int", + "name": "ccdik_data_chain_length", + "setter": "set_ccdik_data_chain_length", + "getter": "get_ccdik_data_chain_length" + } + ] + }, + { + "name": "SkeletonModification2DFABRIK", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_fabrik_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fabrik_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fabrik_joint_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone2d_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_fabrik_joint_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fabrik_joint_bone_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fabrik_joint_bone_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fabrik_joint_magnet_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "magnet_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_fabrik_joint_magnet_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_fabrik_joint_use_target_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "use_target_rotation", + "type": "bool" + } + ] + }, + { + "name": "get_fabrik_joint_use_target_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "target_nodepath", + "setter": "set_target_node", + "getter": "get_target_node" + }, + { + "type": "int", + "name": "fabrik_data_chain_length", + "setter": "set_fabrik_data_chain_length", + "getter": "get_fabrik_data_chain_length" + } + ] + }, + { + "name": "SkeletonModification2DJiggle", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_jiggle_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_jiggle_data_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_stiffness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "damping", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_gravity", + "type": "bool" + } + ] + }, + { + "name": "get_use_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "gravity", + "type": "Vector2" + } + ] + }, + { + "name": "get_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_use_colliders", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_colliders", + "type": "bool" + } + ] + }, + { + "name": "get_use_colliders", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_jiggle_joint_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone2d_node", + "type": "NodePath" + } + ] + }, + { + "name": "get_jiggle_joint_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_bone_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_jiggle_joint_bone_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "override", + "type": "bool" + } + ] + }, + { + "name": "get_jiggle_joint_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_jiggle_joint_stiffness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_jiggle_joint_mass", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_damping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "damping", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_jiggle_joint_damping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_use_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "use_gravity", + "type": "bool" + } + ] + }, + { + "name": "get_jiggle_joint_use_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_jiggle_joint_gravity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "gravity", + "type": "Vector2" + } + ] + }, + { + "name": "get_jiggle_joint_gravity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "NodePath", + "name": "target_nodepath", + "setter": "set_target_node", + "getter": "get_target_node" + }, + { + "type": "int", + "name": "jiggle_data_chain_length", + "setter": "set_jiggle_data_chain_length", + "getter": "get_jiggle_data_chain_length" + }, + { + "type": "float", + "name": "stiffness", + "setter": "set_stiffness", + "getter": "get_stiffness" + }, + { + "type": "float", + "name": "mass", + "setter": "set_mass", + "getter": "get_mass" + }, + { + "type": "float", + "name": "damping", + "setter": "set_damping", + "getter": "get_damping" + }, + { + "type": "bool", + "name": "use_gravity", + "setter": "set_use_gravity", + "getter": "get_use_gravity" + }, + { + "type": "Vector2", + "name": "gravity", + "setter": "set_gravity", + "getter": "get_gravity" + } + ] + }, + { + "name": "SkeletonModification2DLookAt", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "bone2d_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_bone_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_additional_rotation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "rotation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_additional_rotation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_enable_constraint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable_constraint", + "type": "bool" + } + ] + }, + { + "name": "get_enable_constraint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_constraint_angle_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle_min", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constraint_angle_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_constraint_angle_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "angle_max", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constraint_angle_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_constraint_angle_invert", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "invert", + "type": "bool" + } + ] + }, + { + "name": "get_constraint_angle_invert", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "bone_index", + "setter": "set_bone_index", + "getter": "get_bone_index" + }, + { + "type": "NodePath", + "name": "bone2d_node", + "setter": "set_bone2d_node", + "getter": "get_bone2d_node" + }, + { + "type": "NodePath", + "name": "target_nodepath", + "setter": "set_target_node", + "getter": "get_target_node" + } + ] + }, + { + "name": "SkeletonModification2DPhysicalBones", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_physical_bone_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "length", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_physical_bone_chain_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_physical_bone_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761262315, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "physicalbone2d_node", + "type": "NodePath" + } + ] + }, + { + "name": "get_physical_bone_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 408788394, + "return_value": { + "type": "NodePath" + }, + "arguments": [ + { + "name": "joint_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "fetch_physical_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "start_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787316981, + "arguments": [ + { + "name": "bones", + "type": "typedarray::StringName", + "default_value": "[]" + } + ] + }, + { + "name": "stop_simulation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787316981, + "arguments": [ + { + "name": "bones", + "type": "typedarray::StringName", + "default_value": "[]" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "physical_bone_chain_length", + "setter": "set_physical_bone_chain_length", + "getter": "get_physical_bone_chain_length" + } + ] + }, + { + "name": "SkeletonModification2DStackHolder", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_held_modification_stack", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3907307132, + "arguments": [ + { + "name": "held_modification_stack", + "type": "SkeletonModificationStack2D" + } + ] + }, + { + "name": "get_held_modification_stack", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2107508396, + "return_value": { + "type": "SkeletonModificationStack2D" + } + } + ] + }, + { + "name": "SkeletonModification2DTwoBoneIK", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonModification2D", + "api_type": "core", + "methods": [ + { + "name": "set_target_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "target_nodepath", + "type": "NodePath" + } + ] + }, + { + "name": "get_target_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_target_minimum_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "minimum_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_target_minimum_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_target_maximum_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "maximum_distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_target_maximum_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_flip_bend_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_direction", + "type": "bool" + } + ] + }, + { + "name": "get_flip_bend_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_joint_one_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "bone2d_node", + "type": "NodePath" + } + ] + }, + { + "name": "get_joint_one_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_joint_one_bone_idx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joint_one_bone_idx", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_joint_two_bone2d_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "bone2d_node", + "type": "NodePath" + } + ] + }, + { + "name": "get_joint_two_bone2d_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_joint_two_bone_idx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_joint_two_bone_idx", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "target_nodepath", + "setter": "set_target_node", + "getter": "get_target_node" + }, + { + "type": "float", + "name": "target_minimum_distance", + "setter": "set_target_minimum_distance", + "getter": "get_target_minimum_distance" + }, + { + "type": "float", + "name": "target_maximum_distance", + "setter": "set_target_maximum_distance", + "getter": "get_target_maximum_distance" + }, + { + "type": "bool", + "name": "flip_bend_direction", + "setter": "set_flip_bend_direction", + "getter": "get_flip_bend_direction" + } + ] + }, + { + "name": "SkeletonModificationStack2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "setup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "execute", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1005356550, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "float" + }, + { + "name": "execution_mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "enable_all_modifications", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_modification", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2570274329, + "return_value": { + "type": "SkeletonModification2D" + }, + "arguments": [ + { + "name": "mod_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_modification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 354162120, + "arguments": [ + { + "name": "modification", + "type": "SkeletonModification2D" + } + ] + }, + { + "name": "delete_modification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mod_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_modification", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1098262544, + "arguments": [ + { + "name": "mod_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "modification", + "type": "SkeletonModification2D" + } + ] + }, + { + "name": "set_modification_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_modification_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_is_setup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_strength", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "strength", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_strength", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1697361217, + "return_value": { + "type": "Skeleton2D" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "enabled", + "setter": "set_enabled", + "getter": "get_enabled" + }, + { + "type": "float", + "name": "strength", + "setter": "set_strength", + "getter": "get_strength" + }, + { + "type": "int", + "name": "modification_count", + "setter": "set_modification_count", + "getter": "get_modification_count" + } + ] + }, + { + "name": "SkeletonProfile", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "TailDirection", + "is_bitfield": false, + "values": [ + { + "name": "TAIL_DIRECTION_AVERAGE_CHILDREN", + "value": 0 + }, + { + "name": "TAIL_DIRECTION_SPECIFIC_CHILD", + "value": 1 + }, + { + "name": "TAIL_DIRECTION_END", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_root_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bone_name", + "type": "StringName" + } + ] + }, + { + "name": "get_root_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2737447660, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_scale_base_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bone_name", + "type": "StringName" + } + ] + }, + { + "name": "get_scale_base_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2737447660, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_group_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_group_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_group_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "group_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_group_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "group_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "group_name", + "type": "StringName" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "group_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "group_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_bone_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bone_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "find_bone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458036349, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bone_name", + "type": "StringName" + } + ] + }, + { + "name": "get_bone_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_name", + "type": "StringName" + } + ] + }, + { + "name": "get_bone_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_parent", + "type": "StringName" + } + ] + }, + { + "name": "get_tail_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2675997574, + "return_value": { + "type": "enum::SkeletonProfile.TailDirection" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tail_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1231951015, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "tail_direction", + "type": "enum::SkeletonProfile.TailDirection" + } + ] + }, + { + "name": "get_bone_tail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bone_tail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_tail", + "type": "StringName" + } + ] + }, + { + "name": "get_reference_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_reference_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "bone_name", + "type": "Transform3D" + } + ] + }, + { + "name": "get_handle_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_handle_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "handle_offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bone_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "group", + "type": "StringName" + } + ] + } + ], + "signals": [ + { + "name": "profile_updated" + } + ], + "properties": [ + { + "type": "StringName", + "name": "root_bone", + "setter": "set_root_bone", + "getter": "get_root_bone" + }, + { + "type": "StringName", + "name": "scale_base_bone", + "setter": "set_scale_base_bone", + "getter": "get_scale_base_bone" + }, + { + "type": "int", + "name": "group_size", + "setter": "set_group_size", + "getter": "get_group_size" + }, + { + "type": "int", + "name": "bone_size", + "setter": "set_bone_size", + "getter": "get_bone_size" + } + ] + }, + { + "name": "SkeletonProfileHumanoid", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "SkeletonProfile", + "api_type": "core" + }, + { + "name": "Skin", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_bind_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "bind_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bind_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_bind", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "bone", + "type": "int", + "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" + } + ] + }, + { + "name": "add_named_bind", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3154712474, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "pose", + "type": "Transform3D" + } + ] + }, + { + "name": "set_bind_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3616898986, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + }, + { + "name": "pose", + "type": "Transform3D" + } + ] + }, + { + "name": "get_bind_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965739696, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bind_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3780747571, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_bind_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 659327637, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_bind_bone", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + }, + { + "name": "bone", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_bind_bone", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "bind_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_binds", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "SkinReference", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_skeleton", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_skin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2074563878, + "return_value": { + "type": "Skin" + } + } + ] + }, + { + "name": "Sky", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "RadianceSize", + "is_bitfield": false, + "values": [ + { + "name": "RADIANCE_SIZE_32", + "value": 0 + }, + { + "name": "RADIANCE_SIZE_64", + "value": 1 + }, + { + "name": "RADIANCE_SIZE_128", + "value": 2 + }, + { + "name": "RADIANCE_SIZE_256", + "value": 3 + }, + { + "name": "RADIANCE_SIZE_512", + "value": 4 + }, + { + "name": "RADIANCE_SIZE_1024", + "value": 5 + }, + { + "name": "RADIANCE_SIZE_2048", + "value": 6 + }, + { + "name": "RADIANCE_SIZE_MAX", + "value": 7 + } + ] + }, + { + "name": "ProcessMode", + "is_bitfield": false, + "values": [ + { + "name": "PROCESS_MODE_AUTOMATIC", + "value": 0 + }, + { + "name": "PROCESS_MODE_QUALITY", + "value": 1 + }, + { + "name": "PROCESS_MODE_INCREMENTAL", + "value": 2 + }, + { + "name": "PROCESS_MODE_REALTIME", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_radiance_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1512957179, + "arguments": [ + { + "name": "size", + "type": "enum::Sky.RadianceSize" + } + ] + }, + { + "name": "get_radiance_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2708733976, + "return_value": { + "type": "enum::Sky.RadianceSize" + } + }, + { + "name": "set_process_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 875986769, + "arguments": [ + { + "name": "mode", + "type": "enum::Sky.ProcessMode" + } + ] + }, + { + "name": "get_process_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 731245043, + "return_value": { + "type": "enum::Sky.ProcessMode" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + } + ], + "properties": [ + { + "type": "ShaderMaterial,PanoramaSkyMaterial,ProceduralSkyMaterial,PhysicalSkyMaterial", + "name": "sky_material", + "setter": "set_material", + "getter": "get_material" + }, + { + "type": "int", + "name": "process_mode", + "setter": "set_process_mode", + "getter": "get_process_mode" + }, + { + "type": "int", + "name": "radiance_size", + "setter": "set_radiance_size", + "getter": "get_radiance_size" + } + ] + }, + { + "name": "Slider", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Range", + "api_type": "core", + "methods": [ + { + "name": "set_ticks", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ticks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_ticks_on_borders", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_ticks_on_borders", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ticks_on_border", + "type": "bool" + } + ] + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "editable", + "type": "bool" + } + ] + }, + { + "name": "is_editable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_scrollable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "scrollable", + "type": "bool" + } + ] + }, + { + "name": "is_scrollable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "drag_started" + }, + { + "name": "drag_ended", + "arguments": [ + { + "name": "value_changed", + "type": "bool" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "editable", + "setter": "set_editable", + "getter": "is_editable" + }, + { + "type": "bool", + "name": "scrollable", + "setter": "set_scrollable", + "getter": "is_scrollable" + }, + { + "type": "int", + "name": "tick_count", + "setter": "set_ticks", + "getter": "get_ticks" + }, + { + "type": "bool", + "name": "ticks_on_borders", + "setter": "set_ticks_on_borders", + "getter": "get_ticks_on_borders" + } + ] + }, + { + "name": "SliderJoint3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Joint3D", + "api_type": "core", + "enums": [ + { + "name": "Param", + "is_bitfield": false, + "values": [ + { + "name": "PARAM_LINEAR_LIMIT_UPPER", + "value": 0 + }, + { + "name": "PARAM_LINEAR_LIMIT_LOWER", + "value": 1 + }, + { + "name": "PARAM_LINEAR_LIMIT_SOFTNESS", + "value": 2 + }, + { + "name": "PARAM_LINEAR_LIMIT_RESTITUTION", + "value": 3 + }, + { + "name": "PARAM_LINEAR_LIMIT_DAMPING", + "value": 4 + }, + { + "name": "PARAM_LINEAR_MOTION_SOFTNESS", + "value": 5 + }, + { + "name": "PARAM_LINEAR_MOTION_RESTITUTION", + "value": 6 + }, + { + "name": "PARAM_LINEAR_MOTION_DAMPING", + "value": 7 + }, + { + "name": "PARAM_LINEAR_ORTHOGONAL_SOFTNESS", + "value": 8 + }, + { + "name": "PARAM_LINEAR_ORTHOGONAL_RESTITUTION", + "value": 9 + }, + { + "name": "PARAM_LINEAR_ORTHOGONAL_DAMPING", + "value": 10 + }, + { + "name": "PARAM_ANGULAR_LIMIT_UPPER", + "value": 11 + }, + { + "name": "PARAM_ANGULAR_LIMIT_LOWER", + "value": 12 + }, + { + "name": "PARAM_ANGULAR_LIMIT_SOFTNESS", + "value": 13 + }, + { + "name": "PARAM_ANGULAR_LIMIT_RESTITUTION", + "value": 14 + }, + { + "name": "PARAM_ANGULAR_LIMIT_DAMPING", + "value": 15 + }, + { + "name": "PARAM_ANGULAR_MOTION_SOFTNESS", + "value": 16 + }, + { + "name": "PARAM_ANGULAR_MOTION_RESTITUTION", + "value": 17 + }, + { + "name": "PARAM_ANGULAR_MOTION_DAMPING", + "value": 18 + }, + { + "name": "PARAM_ANGULAR_ORTHOGONAL_SOFTNESS", + "value": 19 + }, + { + "name": "PARAM_ANGULAR_ORTHOGONAL_RESTITUTION", + "value": 20 + }, + { + "name": "PARAM_ANGULAR_ORTHOGONAL_DAMPING", + "value": 21 + }, + { + "name": "PARAM_MAX", + "value": 22 + } + ] + } + ], + "methods": [ + { + "name": "set_param", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 918243683, + "arguments": [ + { + "name": "param", + "type": "enum::SliderJoint3D.Param" + }, + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_param", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 959925627, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "param", + "type": "enum::SliderJoint3D.Param" + } + ] + } + ] + }, + { + "name": "SoftBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "MeshInstance3D", + "api_type": "core", + "enums": [ + { + "name": "DisableMode", + "is_bitfield": false, + "values": [ + { + "name": "DISABLE_MODE_REMOVE", + "value": 0 + }, + { + "name": "DISABLE_MODE_KEEP_ACTIVE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "get_physics_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "collision_layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_collision_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_collision_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_parent_collision_ignore", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "parent_collision_ignore", + "type": "NodePath" + } + ] + }, + { + "name": "get_parent_collision_ignore", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + }, + { + "name": "set_disable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1104158384, + "arguments": [ + { + "name": "mode", + "type": "enum::SoftBody3D.DisableMode" + } + ] + }, + { + "name": "get_disable_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4135042476, + "return_value": { + "type": "enum::SoftBody3D.DisableMode" + } + }, + { + "name": "get_collision_exceptions", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::PhysicsBody3D" + } + }, + { + "name": "add_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "remove_collision_exception_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "body", + "type": "Node" + } + ] + }, + { + "name": "set_simulation_precision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "simulation_precision", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_simulation_precision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_total_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mass", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_total_mass", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_linear_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "linear_stiffness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_linear_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pressure_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pressure_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pressure_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "damping_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_drag_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "drag_coefficient", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_drag_coefficient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_point_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 871989493, + "return_value": { + "type": "Vector3" + }, + "arguments": [ + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_point_pinned", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814935226, + "arguments": [ + { + "name": "point_index", + "type": "int", + "meta": "int32" + }, + { + "name": "pinned", + "type": "bool" + }, + { + "name": "attachment_path", + "type": "NodePath", + "default_value": "NodePath(\"\")" + } + ] + }, + { + "name": "is_point_pinned", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_ray_pickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ray_pickable", + "type": "bool" + } + ] + }, + { + "name": "is_ray_pickable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "collision_layer", + "setter": "set_collision_layer", + "getter": "get_collision_layer" + }, + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "NodePath", + "name": "parent_collision_ignore", + "setter": "set_parent_collision_ignore", + "getter": "get_parent_collision_ignore" + }, + { + "type": "int", + "name": "simulation_precision", + "setter": "set_simulation_precision", + "getter": "get_simulation_precision" + }, + { + "type": "float", + "name": "total_mass", + "setter": "set_total_mass", + "getter": "get_total_mass" + }, + { + "type": "float", + "name": "linear_stiffness", + "setter": "set_linear_stiffness", + "getter": "get_linear_stiffness" + }, + { + "type": "float", + "name": "pressure_coefficient", + "setter": "set_pressure_coefficient", + "getter": "get_pressure_coefficient" + }, + { + "type": "float", + "name": "damping_coefficient", + "setter": "set_damping_coefficient", + "getter": "get_damping_coefficient" + }, + { + "type": "float", + "name": "drag_coefficient", + "setter": "set_drag_coefficient", + "getter": "get_drag_coefficient" + }, + { + "type": "bool", + "name": "ray_pickable", + "setter": "set_ray_pickable", + "getter": "is_ray_pickable" + }, + { + "type": "int", + "name": "disable_mode", + "setter": "set_disable_mode", + "getter": "get_disable_mode" + } + ] + }, + { + "name": "SphereMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "height", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "radial_segments", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_radial_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_is_hemisphere", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "is_hemisphere", + "type": "bool" + } + ] + }, + { + "name": "get_is_hemisphere", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "height", + "setter": "set_height", + "getter": "get_height" + }, + { + "type": "int", + "name": "radial_segments", + "setter": "set_radial_segments", + "getter": "get_radial_segments" + }, + { + "type": "int", + "name": "rings", + "setter": "set_rings", + "getter": "get_rings" + }, + { + "type": "bool", + "name": "is_hemisphere", + "setter": "set_is_hemisphere", + "getter": "get_is_hemisphere" + } + ] + }, + { + "name": "SphereOccluder3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Occluder3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "SphereShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + } + ] + }, + { + "name": "SpinBox", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Range", + "api_type": "core", + "methods": [ + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_suffix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "suffix", + "type": "String" + } + ] + }, + { + "name": "get_suffix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_prefix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "prefix", + "type": "String" + } + ] + }, + { + "name": "get_prefix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_custom_arrow_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "arrow_step", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_custom_arrow_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "is_editable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_on_text_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_update_on_text_changed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_select_all_on_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_select_all_on_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "apply", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_line_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4071694264, + "return_value": { + "type": "LineEdit" + } + } + ], + "properties": [ + { + "type": "int", + "name": "alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "bool", + "name": "editable", + "setter": "set_editable", + "getter": "is_editable" + }, + { + "type": "bool", + "name": "update_on_text_changed", + "setter": "set_update_on_text_changed", + "getter": "get_update_on_text_changed" + }, + { + "type": "String", + "name": "prefix", + "setter": "set_prefix", + "getter": "get_prefix" + }, + { + "type": "String", + "name": "suffix", + "setter": "set_suffix", + "getter": "get_suffix" + }, + { + "type": "float", + "name": "custom_arrow_step", + "setter": "set_custom_arrow_step", + "getter": "get_custom_arrow_step" + }, + { + "type": "bool", + "name": "select_all_on_focus", + "setter": "set_select_all_on_focus", + "getter": "is_select_all_on_focus" + } + ] + }, + { + "name": "SplitContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "enums": [ + { + "name": "DraggerVisibility", + "is_bitfield": false, + "values": [ + { + "name": "DRAGGER_VISIBLE", + "value": 0 + }, + { + "name": "DRAGGER_HIDDEN", + "value": 1 + }, + { + "name": "DRAGGER_HIDDEN_COLLAPSED", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_split_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "offset", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_split_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "clamp_split_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collapsed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "collapsed", + "type": "bool" + } + ] + }, + { + "name": "is_collapsed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_dragger_visibility", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1168273952, + "arguments": [ + { + "name": "mode", + "type": "enum::SplitContainer.DraggerVisibility" + } + ] + }, + { + "name": "get_dragger_visibility", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 967297479, + "return_value": { + "type": "enum::SplitContainer.DraggerVisibility" + } + }, + { + "name": "set_vertical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "vertical", + "type": "bool" + } + ] + }, + { + "name": "is_vertical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "dragged", + "arguments": [ + { + "name": "offset", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "split_offset", + "setter": "set_split_offset", + "getter": "get_split_offset" + }, + { + "type": "bool", + "name": "collapsed", + "setter": "set_collapsed", + "getter": "is_collapsed" + }, + { + "type": "int", + "name": "dragger_visibility", + "setter": "set_dragger_visibility", + "getter": "get_dragger_visibility" + }, + { + "type": "bool", + "name": "vertical", + "setter": "set_vertical", + "getter": "is_vertical" + } + ] + }, + { + "name": "SpotLight3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Light3D", + "api_type": "core", + "properties": [ + { + "type": "float", + "name": "spot_range", + "setter": "set_param", + "getter": "get_param", + "index": 4 + }, + { + "type": "float", + "name": "spot_attenuation", + "setter": "set_param", + "getter": "get_param", + "index": 6 + }, + { + "type": "float", + "name": "spot_angle", + "setter": "set_param", + "getter": "get_param", + "index": 7 + }, + { + "type": "float", + "name": "spot_angle_attenuation", + "setter": "set_param", + "getter": "get_param", + "index": 8 + } + ] + }, + { + "name": "SpringArm3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "get_hit_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549710052, + "arguments": [ + { + "name": "shape", + "type": "Shape3D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3214262478, + "return_value": { + "type": "Shape3D" + } + }, + { + "name": "add_excluded_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "RID", + "type": "RID" + } + ] + }, + { + "name": "remove_excluded_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "RID", + "type": "RID" + } + ] + }, + { + "name": "clear_excluded_objects", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "collision_mask", + "setter": "set_collision_mask", + "getter": "get_collision_mask" + }, + { + "type": "Shape3D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "float", + "name": "spring_length", + "setter": "set_length", + "getter": "get_length" + }, + { + "type": "float", + "name": "margin", + "setter": "set_margin", + "getter": "get_margin" + } + ] + }, + { + "name": "Sprite2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_centered", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "centered", + "type": "bool" + } + ] + }, + { + "name": "is_centered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_h", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_v", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_region_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_region_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_pixel_opaque", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 556197845, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "pos", + "type": "Vector2" + } + ] + }, + { + "name": "set_region_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_region_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_region_filter_clip_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_region_filter_clip_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_frame_coords", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_frame_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_vframes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "vframes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_vframes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_hframes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "hframes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_hframes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + } + ], + "signals": [ + { + "name": "frame_changed" + }, + { + "name": "texture_changed" + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "bool", + "name": "centered", + "setter": "set_centered", + "getter": "is_centered" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "is_flipped_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "is_flipped_v" + }, + { + "type": "int", + "name": "hframes", + "setter": "set_hframes", + "getter": "get_hframes" + }, + { + "type": "int", + "name": "vframes", + "setter": "set_vframes", + "getter": "get_vframes" + }, + { + "type": "int", + "name": "frame", + "setter": "set_frame", + "getter": "get_frame" + }, + { + "type": "Vector2i", + "name": "frame_coords", + "setter": "set_frame_coords", + "getter": "get_frame_coords" + }, + { + "type": "bool", + "name": "region_enabled", + "setter": "set_region_enabled", + "getter": "is_region_enabled" + }, + { + "type": "Rect2", + "name": "region_rect", + "setter": "set_region_rect", + "getter": "get_region_rect" + }, + { + "type": "bool", + "name": "region_filter_clip_enabled", + "setter": "set_region_filter_clip_enabled", + "getter": "is_region_filter_clip_enabled" + } + ] + }, + { + "name": "Sprite3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SpriteBase3D", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_region_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_region_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_region_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_region_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_frame_coords", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_frame_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_vframes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "vframes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_vframes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_hframes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "hframes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_hframes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "signals": [ + { + "name": "frame_changed" + }, + { + "name": "texture_changed" + } + ], + "properties": [ + { + "type": "Texture", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "int", + "name": "hframes", + "setter": "set_hframes", + "getter": "get_hframes" + }, + { + "type": "int", + "name": "vframes", + "setter": "set_vframes", + "getter": "get_vframes" + }, + { + "type": "int", + "name": "frame", + "setter": "set_frame", + "getter": "get_frame" + }, + { + "type": "Vector2", + "name": "frame_coords", + "setter": "set_frame_coords", + "getter": "get_frame_coords" + }, + { + "type": "bool", + "name": "region_enabled", + "setter": "set_region_enabled", + "getter": "is_region_enabled" + }, + { + "type": "Rect2", + "name": "region_rect", + "setter": "set_region_rect", + "getter": "get_region_rect" + } + ] + }, + { + "name": "SpriteBase3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "GeometryInstance3D", + "api_type": "core", + "enums": [ + { + "name": "DrawFlags", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_TRANSPARENT", + "value": 0 + }, + { + "name": "FLAG_SHADED", + "value": 1 + }, + { + "name": "FLAG_DOUBLE_SIDED", + "value": 2 + }, + { + "name": "FLAG_DISABLE_DEPTH_TEST", + "value": 3 + }, + { + "name": "FLAG_FIXED_SIZE", + "value": 4 + }, + { + "name": "FLAG_MAX", + "value": 5 + } + ] + }, + { + "name": "AlphaCutMode", + "is_bitfield": false, + "values": [ + { + "name": "ALPHA_CUT_DISABLED", + "value": 0 + }, + { + "name": "ALPHA_CUT_DISCARD", + "value": 1 + }, + { + "name": "ALPHA_CUT_OPAQUE_PREPASS", + "value": 2 + }, + { + "name": "ALPHA_CUT_HASH", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_centered", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "centered", + "type": "bool" + } + ] + }, + { + "name": "is_centered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_h", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_v", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_render_priority", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "priority", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_render_priority", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_pixel_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixel_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pixel_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_axis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1144690656, + "arguments": [ + { + "name": "axis", + "type": "enum::Vector3.Axis" + } + ] + }, + { + "name": "get_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050976882, + "return_value": { + "type": "enum::Vector3.Axis" + } + }, + { + "name": "set_draw_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1135633219, + "arguments": [ + { + "name": "flag", + "type": "enum::SpriteBase3D.DrawFlags" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_draw_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1733036628, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::SpriteBase3D.DrawFlags" + } + ] + }, + { + "name": "set_alpha_cut_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 227561226, + "arguments": [ + { + "name": "mode", + "type": "enum::SpriteBase3D.AlphaCutMode" + } + ] + }, + { + "name": "get_alpha_cut_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 336003791, + "return_value": { + "type": "enum::SpriteBase3D.AlphaCutMode" + } + }, + { + "name": "set_alpha_scissor_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_scissor_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_hash_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "threshold", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_hash_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_alpha_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3212649852, + "arguments": [ + { + "name": "alpha_aa", + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + ] + }, + { + "name": "get_alpha_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2889939400, + "return_value": { + "type": "enum::BaseMaterial3D.AlphaAntiAliasing" + } + }, + { + "name": "set_alpha_antialiasing_edge", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "edge", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_alpha_antialiasing_edge", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_billboard_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4202036497, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.BillboardMode" + } + ] + }, + { + "name": "get_billboard_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1283840139, + "return_value": { + "type": "enum::BaseMaterial3D.BillboardMode" + } + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 22904437, + "arguments": [ + { + "name": "mode", + "type": "enum::BaseMaterial3D.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289213076, + "return_value": { + "type": "enum::BaseMaterial3D.TextureFilter" + } + }, + { + "name": "get_item_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "generate_triangle_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3476533166, + "return_value": { + "type": "TriangleMesh" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "centered", + "setter": "set_centered", + "getter": "is_centered" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "is_flipped_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "is_flipped_v" + }, + { + "type": "Color", + "name": "modulate", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "float", + "name": "pixel_size", + "setter": "set_pixel_size", + "getter": "get_pixel_size" + }, + { + "type": "int", + "name": "axis", + "setter": "set_axis", + "getter": "get_axis" + }, + { + "type": "int", + "name": "billboard", + "setter": "set_billboard_mode", + "getter": "get_billboard_mode" + }, + { + "type": "bool", + "name": "transparent", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 0 + }, + { + "type": "bool", + "name": "shaded", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 1 + }, + { + "type": "bool", + "name": "double_sided", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 2 + }, + { + "type": "bool", + "name": "no_depth_test", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 3 + }, + { + "type": "bool", + "name": "fixed_size", + "setter": "set_draw_flag", + "getter": "get_draw_flag", + "index": 4 + }, + { + "type": "int", + "name": "alpha_cut", + "setter": "set_alpha_cut_mode", + "getter": "get_alpha_cut_mode" + }, + { + "type": "float", + "name": "alpha_scissor_threshold", + "setter": "set_alpha_scissor_threshold", + "getter": "get_alpha_scissor_threshold" + }, + { + "type": "float", + "name": "alpha_hash_scale", + "setter": "set_alpha_hash_scale", + "getter": "get_alpha_hash_scale" + }, + { + "type": "int", + "name": "alpha_antialiasing_mode", + "setter": "set_alpha_antialiasing", + "getter": "get_alpha_antialiasing" + }, + { + "type": "float", + "name": "alpha_antialiasing_edge", + "setter": "set_alpha_antialiasing_edge", + "getter": "get_alpha_antialiasing_edge" + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "int", + "name": "render_priority", + "setter": "set_render_priority", + "getter": "get_render_priority" + } + ] + }, + { + "name": "SpriteFrames", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "add_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "has_animation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "remove_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "rename_animation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "newname", + "type": "StringName" + } + ] + }, + { + "name": "get_animation_names", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_animation_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4135858297, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "fps", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_animation_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2349060816, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "set_animation_loop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2524380260, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "loop", + "type": "bool" + } + ] + }, + { + "name": "get_animation_loop", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "add_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 407562921, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "duration", + "type": "float", + "meta": "float", + "default_value": "1.0" + }, + { + "name": "at_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3155743884, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "duration", + "type": "float", + "meta": "float", + "default_value": "1.0" + } + ] + }, + { + "name": "remove_frame", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458036349, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "get_frame_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2900517879, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_frame_duration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1129309260, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "anim", + "type": "StringName" + }, + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "anim", + "type": "StringName" + } + ] + }, + { + "name": "clear_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "Array", + "name": "animations", + "setter": "_set_animations", + "getter": "_get_animations" + } + ] + }, + { + "name": "StandardMaterial3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "BaseMaterial3D", + "api_type": "core" + }, + { + "name": "StaticBody2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody2D", + "api_type": "core", + "methods": [ + { + "name": "set_constant_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "vel", + "type": "Vector2" + } + ] + }, + { + "name": "set_constant_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "vel", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constant_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_constant_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_physics_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784508650, + "arguments": [ + { + "name": "physics_material_override", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_material_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2521850424, + "return_value": { + "type": "PhysicsMaterial" + } + } + ], + "properties": [ + { + "type": "PhysicsMaterial", + "name": "physics_material_override", + "setter": "set_physics_material_override", + "getter": "get_physics_material_override" + }, + { + "type": "Vector2", + "name": "constant_linear_velocity", + "setter": "set_constant_linear_velocity", + "getter": "get_constant_linear_velocity" + }, + { + "type": "float", + "name": "constant_angular_velocity", + "setter": "set_constant_angular_velocity", + "getter": "get_constant_angular_velocity" + } + ] + }, + { + "name": "StaticBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "PhysicsBody3D", + "api_type": "core", + "methods": [ + { + "name": "set_constant_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "vel", + "type": "Vector3" + } + ] + }, + { + "name": "set_constant_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "vel", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_constant_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_physics_material_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1784508650, + "arguments": [ + { + "name": "physics_material_override", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_material_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2521850424, + "return_value": { + "type": "PhysicsMaterial" + } + } + ], + "properties": [ + { + "type": "PhysicsMaterial", + "name": "physics_material_override", + "setter": "set_physics_material_override", + "getter": "get_physics_material_override" + }, + { + "type": "Vector3", + "name": "constant_linear_velocity", + "setter": "set_constant_linear_velocity", + "getter": "get_constant_linear_velocity" + }, + { + "type": "Vector3", + "name": "constant_angular_velocity", + "setter": "set_constant_angular_velocity", + "getter": "get_constant_angular_velocity" + } + ] + }, + { + "name": "StreamPeer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "put_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "put_partial_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2934048347, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1171824711, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_partial_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1171824711, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_available_bytes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_big_endian", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_big_endian_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "put_8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int8" + } + ] + }, + { + "name": "put_u8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint8" + } + ] + }, + { + "name": "put_16", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int16" + } + ] + }, + { + "name": "put_u16", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint16" + } + ] + }, + { + "name": "put_32", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "put_u32", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "put_64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "put_u64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "put_float", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "put_double", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "put_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "put_utf8_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "value", + "type": "String" + } + ] + }, + { + "name": "put_var", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 738511890, + "arguments": [ + { + "name": "value", + "type": "Variant" + }, + { + "name": "full_objects", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int8" + } + }, + { + "name": "get_u8", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint8" + } + }, + { + "name": "get_16", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int16" + } + }, + { + "name": "get_u16", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint16" + } + }, + { + "name": "get_32", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_u32", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "get_u64", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_float", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_double", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2309358862, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_utf8_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2309358862, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "bytes", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_var", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3442865206, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "allow_objects", + "type": "bool", + "default_value": "false" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "big_endian", + "setter": "set_big_endian", + "getter": "is_big_endian_enabled" + } + ] + }, + { + "name": "StreamPeerBuffer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "methods": [ + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "resize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_data_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2971499966, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "get_data_array", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "duplicate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2474064677, + "return_value": { + "type": "StreamPeerBuffer" + } + } + ], + "properties": [ + { + "type": "PackedByteArray", + "name": "data_array", + "setter": "set_data_array", + "getter": "get_data_array" + } + ] + }, + { + "name": "StreamPeerExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "methods": [ + { + "name": "_get_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "r_buffer", + "type": "uint8_t*" + }, + { + "name": "r_bytes", + "type": "int", + "meta": "int32" + }, + { + "name": "r_received", + "type": "int32_t*" + } + ] + }, + { + "name": "_get_partial_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "r_buffer", + "type": "uint8_t*" + }, + { + "name": "r_bytes", + "type": "int", + "meta": "int32" + }, + { + "name": "r_received", + "type": "int32_t*" + } + ] + }, + { + "name": "_put_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_data", + "type": "const uint8_t*" + }, + { + "name": "p_bytes", + "type": "int", + "meta": "int32" + }, + { + "name": "r_sent", + "type": "int32_t*" + } + ] + }, + { + "name": "_put_partial_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_data", + "type": "const uint8_t*" + }, + { + "name": "p_bytes", + "type": "int", + "meta": "int32" + }, + { + "name": "r_sent", + "type": "int32_t*" + } + ] + }, + { + "name": "_get_available_bytes", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "StreamPeerGZIP", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "methods": [ + { + "name": "start_compression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 781582770, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "use_deflate", + "type": "bool", + "default_value": "false" + }, + { + "name": "buffer_size", + "type": "int", + "meta": "int32", + "default_value": "65535" + } + ] + }, + { + "name": "start_decompression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 781582770, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "use_deflate", + "type": "bool", + "default_value": "false" + }, + { + "name": "buffer_size", + "type": "int", + "meta": "int32", + "default_value": "65535" + } + ] + }, + { + "name": "finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "StreamPeerTCP", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "enums": [ + { + "name": "Status", + "is_bitfield": false, + "values": [ + { + "name": "STATUS_NONE", + "value": 0 + }, + { + "name": "STATUS_CONNECTING", + "value": 1 + }, + { + "name": "STATUS_CONNECTED", + "value": 2 + }, + { + "name": "STATUS_ERROR", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "bind", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025329869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "host", + "type": "String", + "default_value": "\"*\"" + } + ] + }, + { + "name": "connect_to_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 993915709, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "host", + "type": "String" + }, + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 859471121, + "return_value": { + "type": "enum::StreamPeerTCP.Status" + } + }, + { + "name": "get_connected_host", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_connected_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "disconnect_from_host", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_no_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + } + ] + }, + { + "name": "StreamPeerTLS", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StreamPeer", + "api_type": "core", + "enums": [ + { + "name": "Status", + "is_bitfield": false, + "values": [ + { + "name": "STATUS_DISCONNECTED", + "value": 0 + }, + { + "name": "STATUS_HANDSHAKING", + "value": 1 + }, + { + "name": "STATUS_CONNECTED", + "value": 2 + }, + { + "name": "STATUS_ERROR", + "value": 3 + }, + { + "name": "STATUS_ERROR_HOSTNAME_MISMATCH", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "accept_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4292689651, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "stream", + "type": "StreamPeer" + }, + { + "name": "server_options", + "type": "TLSOptions" + } + ] + }, + { + "name": "connect_to_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1325480781, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "stream", + "type": "StreamPeer" + }, + { + "name": "common_name", + "type": "String" + }, + { + "name": "client_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "get_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1128380576, + "return_value": { + "type": "enum::StreamPeerTLS.Status" + } + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2741655269, + "return_value": { + "type": "StreamPeer" + } + }, + { + "name": "disconnect_from_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "StyleBox", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_draw", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "_get_draw_rect", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "_get_minimum_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_test_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_minimum_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_content_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_content_margin_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_content_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "get_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2275962004, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_current_item_drawn", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3213695180, + "return_value": { + "type": "CanvasItem" + } + }, + { + "name": "test_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3735564539, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + }, + { + "name": "rect", + "type": "Rect2" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "content_margin_left", + "setter": "set_content_margin", + "getter": "get_content_margin", + "index": 0 + }, + { + "type": "float", + "name": "content_margin_top", + "setter": "set_content_margin", + "getter": "get_content_margin", + "index": 1 + }, + { + "type": "float", + "name": "content_margin_right", + "setter": "set_content_margin", + "getter": "get_content_margin", + "index": 2 + }, + { + "type": "float", + "name": "content_margin_bottom", + "setter": "set_content_margin", + "getter": "get_content_margin", + "index": 3 + } + ] + }, + { + "name": "StyleBoxEmpty", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StyleBox", + "api_type": "core" + }, + { + "name": "StyleBoxFlat", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StyleBox", + "api_type": "core", + "methods": [ + { + "name": "set_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_bg_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_border_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_border_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_border_width_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_border_width_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_border_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 437707142, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_border_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1983885014, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_border_blend", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "blend", + "type": "bool" + } + ] + }, + { + "name": "get_border_blend", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_corner_radius_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "radius", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_corner_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2696158768, + "arguments": [ + { + "name": "corner", + "type": "enum::Corner" + }, + { + "name": "radius", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_corner_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3982397690, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "corner", + "type": "enum::Corner" + } + ] + }, + { + "name": "set_expand_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_expand_margin_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_expand_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_draw_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "draw_center", + "type": "bool" + } + ] + }, + { + "name": "is_draw_center_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_skew", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "skew", + "type": "Vector2" + } + ] + }, + { + "name": "get_skew", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_shadow_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_shadow_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_shadow_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_shadow_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_shadow_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_shadow_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_anti_aliased", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "anti_aliased", + "type": "bool" + } + ] + }, + { + "name": "is_anti_aliased", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_aa_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_aa_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_corner_detail", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "detail", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_corner_detail", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "bg_color", + "setter": "set_bg_color", + "getter": "get_bg_color" + }, + { + "type": "bool", + "name": "draw_center", + "setter": "set_draw_center", + "getter": "is_draw_center_enabled" + }, + { + "type": "Vector2", + "name": "skew", + "setter": "set_skew", + "getter": "get_skew" + }, + { + "type": "int", + "name": "border_width_left", + "setter": "set_border_width", + "getter": "get_border_width", + "index": 0 + }, + { + "type": "int", + "name": "border_width_top", + "setter": "set_border_width", + "getter": "get_border_width", + "index": 1 + }, + { + "type": "int", + "name": "border_width_right", + "setter": "set_border_width", + "getter": "get_border_width", + "index": 2 + }, + { + "type": "int", + "name": "border_width_bottom", + "setter": "set_border_width", + "getter": "get_border_width", + "index": 3 + }, + { + "type": "Color", + "name": "border_color", + "setter": "set_border_color", + "getter": "get_border_color" + }, + { + "type": "bool", + "name": "border_blend", + "setter": "set_border_blend", + "getter": "get_border_blend" + }, + { + "type": "int", + "name": "corner_radius_top_left", + "setter": "set_corner_radius", + "getter": "get_corner_radius", + "index": 0 + }, + { + "type": "int", + "name": "corner_radius_top_right", + "setter": "set_corner_radius", + "getter": "get_corner_radius", + "index": 1 + }, + { + "type": "int", + "name": "corner_radius_bottom_right", + "setter": "set_corner_radius", + "getter": "get_corner_radius", + "index": 2 + }, + { + "type": "int", + "name": "corner_radius_bottom_left", + "setter": "set_corner_radius", + "getter": "get_corner_radius", + "index": 3 + }, + { + "type": "int", + "name": "corner_detail", + "setter": "set_corner_detail", + "getter": "get_corner_detail" + }, + { + "type": "float", + "name": "expand_margin_left", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 0 + }, + { + "type": "float", + "name": "expand_margin_top", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 1 + }, + { + "type": "float", + "name": "expand_margin_right", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 2 + }, + { + "type": "float", + "name": "expand_margin_bottom", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 3 + }, + { + "type": "Color", + "name": "shadow_color", + "setter": "set_shadow_color", + "getter": "get_shadow_color" + }, + { + "type": "int", + "name": "shadow_size", + "setter": "set_shadow_size", + "getter": "get_shadow_size" + }, + { + "type": "Vector2", + "name": "shadow_offset", + "setter": "set_shadow_offset", + "getter": "get_shadow_offset" + }, + { + "type": "bool", + "name": "anti_aliasing", + "setter": "set_anti_aliased", + "getter": "is_anti_aliased" + }, + { + "type": "float", + "name": "anti_aliasing_size", + "setter": "set_aa_size", + "getter": "get_aa_size" + } + ] + }, + { + "name": "StyleBoxLine", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StyleBox", + "api_type": "core", + "methods": [ + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "thickness", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_grow_begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_grow_begin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_grow_end", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_grow_end", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vertical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "vertical", + "type": "bool" + } + ] + }, + { + "name": "is_vertical", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "color", + "setter": "set_color", + "getter": "get_color" + }, + { + "type": "float", + "name": "grow_begin", + "setter": "set_grow_begin", + "getter": "get_grow_begin" + }, + { + "type": "float", + "name": "grow_end", + "setter": "set_grow_end", + "getter": "get_grow_end" + }, + { + "type": "int", + "name": "thickness", + "setter": "set_thickness", + "getter": "get_thickness" + }, + { + "type": "bool", + "name": "vertical", + "setter": "set_vertical", + "getter": "is_vertical" + } + ] + }, + { + "name": "StyleBoxTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "StyleBox", + "api_type": "core", + "enums": [ + { + "name": "AxisStretchMode", + "is_bitfield": false, + "values": [ + { + "name": "AXIS_STRETCH_MODE_STRETCH", + "value": 0 + }, + { + "name": "AXIS_STRETCH_MODE_TILE", + "value": 1 + }, + { + "name": "AXIS_STRETCH_MODE_TILE_FIT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_texture_margin_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_expand_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4290182280, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_expand_margin_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_expand_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2869120046, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_region_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "region", + "type": "Rect2" + } + ] + }, + { + "name": "get_region_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_draw_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_draw_center_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_h_axis_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2965538783, + "arguments": [ + { + "name": "mode", + "type": "enum::StyleBoxTexture.AxisStretchMode" + } + ] + }, + { + "name": "get_h_axis_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3807744063, + "return_value": { + "type": "enum::StyleBoxTexture.AxisStretchMode" + } + }, + { + "name": "set_v_axis_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2965538783, + "arguments": [ + { + "name": "mode", + "type": "enum::StyleBoxTexture.AxisStretchMode" + } + ] + }, + { + "name": "get_v_axis_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3807744063, + "return_value": { + "type": "enum::StyleBoxTexture.AxisStretchMode" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "float", + "name": "texture_margin_left", + "setter": "set_texture_margin", + "getter": "get_texture_margin", + "index": 0 + }, + { + "type": "float", + "name": "texture_margin_top", + "setter": "set_texture_margin", + "getter": "get_texture_margin", + "index": 1 + }, + { + "type": "float", + "name": "texture_margin_right", + "setter": "set_texture_margin", + "getter": "get_texture_margin", + "index": 2 + }, + { + "type": "float", + "name": "texture_margin_bottom", + "setter": "set_texture_margin", + "getter": "get_texture_margin", + "index": 3 + }, + { + "type": "float", + "name": "expand_margin_left", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 0 + }, + { + "type": "float", + "name": "expand_margin_top", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 1 + }, + { + "type": "float", + "name": "expand_margin_right", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 2 + }, + { + "type": "float", + "name": "expand_margin_bottom", + "setter": "set_expand_margin", + "getter": "get_expand_margin", + "index": 3 + }, + { + "type": "int", + "name": "axis_stretch_horizontal", + "setter": "set_h_axis_stretch_mode", + "getter": "get_h_axis_stretch_mode" + }, + { + "type": "int", + "name": "axis_stretch_vertical", + "setter": "set_v_axis_stretch_mode", + "getter": "get_v_axis_stretch_mode" + }, + { + "type": "Rect2", + "name": "region_rect", + "setter": "set_region_rect", + "getter": "get_region_rect" + }, + { + "type": "Color", + "name": "modulate_color", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "bool", + "name": "draw_center", + "setter": "set_draw_center", + "getter": "is_draw_center_enabled" + } + ] + }, + { + "name": "SubViewport", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Viewport", + "api_type": "core", + "enums": [ + { + "name": "ClearMode", + "is_bitfield": false, + "values": [ + { + "name": "CLEAR_MODE_ALWAYS", + "value": 0 + }, + { + "name": "CLEAR_MODE_NEVER", + "value": 1 + }, + { + "name": "CLEAR_MODE_ONCE", + "value": 2 + } + ] + }, + { + "name": "UpdateMode", + "is_bitfield": false, + "values": [ + { + "name": "UPDATE_DISABLED", + "value": 0 + }, + { + "name": "UPDATE_ONCE", + "value": 1 + }, + { + "name": "UPDATE_WHEN_VISIBLE", + "value": 2 + }, + { + "name": "UPDATE_WHEN_PARENT_VISIBLE", + "value": 3 + }, + { + "name": "UPDATE_ALWAYS", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_size_2d_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_size_2d_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_size_2d_override_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_size_2d_override_stretch_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_update_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1295690030, + "arguments": [ + { + "name": "mode", + "type": "enum::SubViewport.UpdateMode" + } + ] + }, + { + "name": "get_update_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2980171553, + "return_value": { + "type": "enum::SubViewport.UpdateMode" + } + }, + { + "name": "set_clear_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2834454712, + "arguments": [ + { + "name": "mode", + "type": "enum::SubViewport.ClearMode" + } + ] + }, + { + "name": "get_clear_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 331324495, + "return_value": { + "type": "enum::SubViewport.ClearMode" + } + } + ], + "properties": [ + { + "type": "Vector2i", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "Vector2i", + "name": "size_2d_override", + "setter": "set_size_2d_override", + "getter": "get_size_2d_override" + }, + { + "type": "bool", + "name": "size_2d_override_stretch", + "setter": "set_size_2d_override_stretch", + "getter": "is_size_2d_override_stretch_enabled" + }, + { + "type": "int", + "name": "render_target_clear_mode", + "setter": "set_clear_mode", + "getter": "get_clear_mode" + }, + { + "type": "int", + "name": "render_target_update_mode", + "setter": "set_update_mode", + "getter": "get_update_mode" + } + ] + }, + { + "name": "SubViewportContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "methods": [ + { + "name": "set_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_stretch_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_stretch_shrink", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_stretch_shrink", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "stretch", + "setter": "set_stretch", + "getter": "is_stretch_enabled" + }, + { + "type": "int", + "name": "stretch_shrink", + "setter": "set_stretch_shrink", + "getter": "get_stretch_shrink" + } + ] + }, + { + "name": "SurfaceTool", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "CustomFormat", + "is_bitfield": false, + "values": [ + { + "name": "CUSTOM_RGBA8_UNORM", + "value": 0 + }, + { + "name": "CUSTOM_RGBA8_SNORM", + "value": 1 + }, + { + "name": "CUSTOM_RG_HALF", + "value": 2 + }, + { + "name": "CUSTOM_RGBA_HALF", + "value": 3 + }, + { + "name": "CUSTOM_R_FLOAT", + "value": 4 + }, + { + "name": "CUSTOM_RG_FLOAT", + "value": 5 + }, + { + "name": "CUSTOM_RGB_FLOAT", + "value": 6 + }, + { + "name": "CUSTOM_RGBA_FLOAT", + "value": 7 + }, + { + "name": "CUSTOM_MAX", + "value": 8 + } + ] + }, + { + "name": "SkinWeightCount", + "is_bitfield": false, + "values": [ + { + "name": "SKIN_4_WEIGHTS", + "value": 0 + }, + { + "name": "SKIN_8_WEIGHTS", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_skin_weight_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 618679515, + "arguments": [ + { + "name": "count", + "type": "enum::SurfaceTool.SkinWeightCount" + } + ] + }, + { + "name": "get_skin_weight_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1072401130, + "return_value": { + "type": "enum::SurfaceTool.SkinWeightCount" + } + }, + { + "name": "set_custom_format", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4087759856, + "arguments": [ + { + "name": "channel_index", + "type": "int", + "meta": "int32" + }, + { + "name": "format", + "type": "enum::SurfaceTool.CustomFormat" + } + ] + }, + { + "name": "get_custom_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 839863283, + "return_value": { + "type": "enum::SurfaceTool.CustomFormat" + }, + "arguments": [ + { + "name": "channel_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "begin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2230304113, + "arguments": [ + { + "name": "primitive", + "type": "enum::Mesh.PrimitiveType" + } + ] + }, + { + "name": "add_vertex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "vertex", + "type": "Vector3" + } + ] + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "set_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "normal", + "type": "Vector3" + } + ] + }, + { + "name": "set_tangent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3505987427, + "arguments": [ + { + "name": "tangent", + "type": "Plane" + } + ] + }, + { + "name": "set_uv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "uv", + "type": "Vector2" + } + ] + }, + { + "name": "set_uv2", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "uv2", + "type": "Vector2" + } + ] + }, + { + "name": "set_bones", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3614634198, + "arguments": [ + { + "name": "bones", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "set_weights", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "weights", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "set_custom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "channel_index", + "type": "int", + "meta": "int32" + }, + { + "name": "custom_color", + "type": "Color" + } + ] + }, + { + "name": "set_smooth_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "add_triangle_fan", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 297960074, + "arguments": [ + { + "name": "vertices", + "type": "PackedVector3Array" + }, + { + "name": "uvs", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "colors", + "type": "PackedColorArray", + "default_value": "PackedColorArray()" + }, + { + "name": "uv2s", + "type": "PackedVector2Array", + "default_value": "PackedVector2Array()" + }, + { + "name": "normals", + "type": "PackedVector3Array", + "default_value": "PackedVector3Array()" + }, + { + "name": "tangents", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "add_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "deindex", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "generate_normals", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 107499316, + "arguments": [ + { + "name": "flip", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "generate_tangents", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "optimize_indices_for_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "generate_lod", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1894448909, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "nd_threshold", + "type": "float", + "meta": "float" + }, + { + "name": "target_index_count", + "type": "int", + "meta": "int32", + "default_value": "3" + } + ] + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_primitive_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 768822145, + "return_value": { + "type": "enum::Mesh.PrimitiveType" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1767024570, + "arguments": [ + { + "name": "existing", + "type": "Mesh" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_from_blend_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1306185582, + "arguments": [ + { + "name": "existing", + "type": "Mesh" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "blend_shape", + "type": "String" + } + ] + }, + { + "name": "append_from", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2217967155, + "arguments": [ + { + "name": "existing", + "type": "Mesh" + }, + { + "name": "surface", + "type": "int", + "meta": "int32" + }, + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "commit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4107864055, + "return_value": { + "type": "ArrayMesh" + }, + "arguments": [ + { + "name": "existing", + "type": "ArrayMesh", + "default_value": "null" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32", + "default_value": "0" + } + ] + }, + { + "name": "commit_to_arrays", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "Array" + } + } + ] + }, + { + "name": "SyntaxHighlighter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_get_line_syntax_highlighting", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_clear_highlighting_cache", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_update_cache", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "get_line_syntax_highlighting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3554694381, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "update_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_highlighting_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_text_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2185802765, + "return_value": { + "type": "TextEdit" + } + } + ] + }, + { + "name": "SystemFont", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Font", + "api_type": "core", + "methods": [ + { + "name": "set_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1669900, + "arguments": [ + { + "name": "antialiasing", + "type": "enum::TextServer.FontAntialiasing" + } + ] + }, + { + "name": "get_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4262718649, + "return_value": { + "type": "enum::TextServer.FontAntialiasing" + } + }, + { + "name": "set_generate_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "generate_mipmaps", + "type": "bool" + } + ] + }, + { + "name": "get_generate_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_system_fallback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow_system_fallback", + "type": "bool" + } + ] + }, + { + "name": "is_allow_system_fallback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_force_autohinter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "force_autohinter", + "type": "bool" + } + ] + }, + { + "name": "is_force_autohinter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hinting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1827459492, + "arguments": [ + { + "name": "hinting", + "type": "enum::TextServer.Hinting" + } + ] + }, + { + "name": "get_hinting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3683214614, + "return_value": { + "type": "enum::TextServer.Hinting" + } + }, + { + "name": "set_subpixel_positioning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4225742182, + "arguments": [ + { + "name": "subpixel_positioning", + "type": "enum::TextServer.SubpixelPositioning" + } + ] + }, + { + "name": "get_subpixel_positioning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1069238588, + "return_value": { + "type": "enum::TextServer.SubpixelPositioning" + } + }, + { + "name": "set_multichannel_signed_distance_field", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "msdf", + "type": "bool" + } + ] + }, + { + "name": "is_multichannel_signed_distance_field", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_msdf_pixel_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "msdf_pixel_range", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_msdf_pixel_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_msdf_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "msdf_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_msdf_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "oversampling", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_font_names", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_font_names", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "names", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_font_italic", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_font_italic", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "italic", + "type": "bool" + } + ] + }, + { + "name": "set_font_weight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "weight", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_font_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "stretch", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "PackedStringArray", + "name": "font_names", + "setter": "set_font_names", + "getter": "get_font_names" + }, + { + "type": "bool", + "name": "font_italic", + "setter": "set_font_italic", + "getter": "get_font_italic" + }, + { + "type": "int", + "name": "font_weight", + "setter": "set_font_weight", + "getter": "get_font_weight" + }, + { + "type": "int", + "name": "font_stretch", + "setter": "set_font_stretch", + "getter": "get_font_stretch" + }, + { + "type": "int", + "name": "antialiasing", + "setter": "set_antialiasing", + "getter": "get_antialiasing" + }, + { + "type": "bool", + "name": "generate_mipmaps", + "setter": "set_generate_mipmaps", + "getter": "get_generate_mipmaps" + }, + { + "type": "bool", + "name": "allow_system_fallback", + "setter": "set_allow_system_fallback", + "getter": "is_allow_system_fallback" + }, + { + "type": "bool", + "name": "force_autohinter", + "setter": "set_force_autohinter", + "getter": "is_force_autohinter" + }, + { + "type": "int", + "name": "hinting", + "setter": "set_hinting", + "getter": "get_hinting" + }, + { + "type": "int", + "name": "subpixel_positioning", + "setter": "set_subpixel_positioning", + "getter": "get_subpixel_positioning" + }, + { + "type": "bool", + "name": "multichannel_signed_distance_field", + "setter": "set_multichannel_signed_distance_field", + "getter": "is_multichannel_signed_distance_field" + }, + { + "type": "int", + "name": "msdf_pixel_range", + "setter": "set_msdf_pixel_range", + "getter": "get_msdf_pixel_range" + }, + { + "type": "int", + "name": "msdf_size", + "setter": "set_msdf_size", + "getter": "get_msdf_size" + }, + { + "type": "float", + "name": "oversampling", + "setter": "set_oversampling", + "getter": "get_oversampling" + }, + { + "type": "typedarray::24/17:Font", + "name": "fallbacks", + "setter": "set_fallbacks", + "getter": "get_fallbacks" + } + ] + }, + { + "name": "TCPServer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "listen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025329869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "uint16" + }, + { + "name": "bind_address", + "type": "String", + "default_value": "\"*\"" + } + ] + }, + { + "name": "is_connection_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_listening", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "take_connection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 30545006, + "return_value": { + "type": "StreamPeerTCP" + } + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ] + }, + { + "name": "TLSOptions", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "client", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3565000357, + "return_value": { + "type": "TLSOptions" + }, + "arguments": [ + { + "name": "trusted_chain", + "type": "X509Certificate", + "default_value": "null" + }, + { + "name": "common_name_override", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "client_unsafe", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 2090251749, + "return_value": { + "type": "TLSOptions" + }, + "arguments": [ + { + "name": "trusted_chain", + "type": "X509Certificate", + "default_value": "null" + } + ] + }, + { + "name": "server", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 36969539, + "return_value": { + "type": "TLSOptions" + }, + "arguments": [ + { + "name": "key", + "type": "CryptoKey" + }, + { + "name": "certificate", + "type": "X509Certificate" + } + ] + } + ] + }, + { + "name": "TabBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "AlignmentMode", + "is_bitfield": false, + "values": [ + { + "name": "ALIGNMENT_LEFT", + "value": 0 + }, + { + "name": "ALIGNMENT_CENTER", + "value": 1 + }, + { + "name": "ALIGNMENT_RIGHT", + "value": 2 + }, + { + "name": "ALIGNMENT_MAX", + "value": 3 + } + ] + }, + { + "name": "CloseButtonDisplayPolicy", + "is_bitfield": false, + "values": [ + { + "name": "CLOSE_BUTTON_SHOW_NEVER", + "value": 0 + }, + { + "name": "CLOSE_BUTTON_SHOW_ACTIVE_ONLY", + "value": 1 + }, + { + "name": "CLOSE_BUTTON_SHOW_ALWAYS", + "value": 2 + }, + { + "name": "CLOSE_BUTTON_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_tab_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_current_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_tab", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_previous_tab", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_tab_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_tab_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1707680378, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_tab_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4235602388, + "return_value": { + "type": "enum::Control.TextDirection" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_tab_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_tab_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_button_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_tab_button_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_tab_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "is_tab_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1465444425, + "arguments": [ + { + "name": "title", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "icon", + "type": "Texture2D", + "default_value": "null" + } + ] + }, + { + "name": "get_tab_idx_at_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "set_tab_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2413632353, + "arguments": [ + { + "name": "alignment", + "type": "enum::TabBar.AlignmentMode" + } + ] + }, + { + "name": "get_tab_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2178122193, + "return_value": { + "type": "enum::TabBar.AlignmentMode" + } + }, + { + "name": "set_clip_tabs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "clip_tabs", + "type": "bool" + } + ] + }, + { + "name": "get_clip_tabs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_tab_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_offset_buttons_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "ensure_tab_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3327874267, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "move_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from", + "type": "int", + "meta": "int32" + }, + { + "name": "to", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_close_display_policy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2212906737, + "arguments": [ + { + "name": "policy", + "type": "enum::TabBar.CloseButtonDisplayPolicy" + } + ] + }, + { + "name": "get_tab_close_display_policy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2956568028, + "return_value": { + "type": "enum::TabBar.CloseButtonDisplayPolicy" + } + }, + { + "name": "set_max_tab_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_tab_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_scrolling_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_scrolling_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drag_to_rearrange_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_drag_to_rearrange_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tabs_rearrange_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "group_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tabs_rearrange_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_scroll_to_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_scroll_to_selected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_select_with_rmb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_select_with_rmb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "clear_tabs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "signals": [ + { + "name": "tab_selected", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_changed", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_clicked", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_rmb_clicked", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_close_pressed", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_button_pressed", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_hovered", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "active_tab_rearranged", + "arguments": [ + { + "name": "idx_to", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "current_tab", + "setter": "set_current_tab", + "getter": "get_current_tab" + }, + { + "type": "int", + "name": "tab_alignment", + "setter": "set_tab_alignment", + "getter": "get_tab_alignment" + }, + { + "type": "bool", + "name": "clip_tabs", + "setter": "set_clip_tabs", + "getter": "get_clip_tabs" + }, + { + "type": "int", + "name": "tab_close_display_policy", + "setter": "set_tab_close_display_policy", + "getter": "get_tab_close_display_policy" + }, + { + "type": "int", + "name": "max_tab_width", + "setter": "set_max_tab_width", + "getter": "get_max_tab_width" + }, + { + "type": "bool", + "name": "scrolling_enabled", + "setter": "set_scrolling_enabled", + "getter": "get_scrolling_enabled" + }, + { + "type": "bool", + "name": "drag_to_rearrange_enabled", + "setter": "set_drag_to_rearrange_enabled", + "getter": "get_drag_to_rearrange_enabled" + }, + { + "type": "int", + "name": "tabs_rearrange_group", + "setter": "set_tabs_rearrange_group", + "getter": "get_tabs_rearrange_group" + }, + { + "type": "bool", + "name": "scroll_to_selected", + "setter": "set_scroll_to_selected", + "getter": "get_scroll_to_selected" + }, + { + "type": "bool", + "name": "select_with_rmb", + "setter": "set_select_with_rmb", + "getter": "get_select_with_rmb" + }, + { + "type": "int", + "name": "tab_count", + "setter": "set_tab_count", + "getter": "get_tab_count" + } + ] + }, + { + "name": "TabContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Container", + "api_type": "core", + "methods": [ + { + "name": "get_tab_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_current_tab", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_tab", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_previous_tab", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_current_tab_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2783021301, + "return_value": { + "type": "Control" + } + }, + { + "name": "get_tab_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1065994134, + "return_value": { + "type": "Control" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2413632353, + "arguments": [ + { + "name": "alignment", + "type": "enum::TabBar.AlignmentMode" + } + ] + }, + { + "name": "get_tab_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2178122193, + "return_value": { + "type": "enum::TabBar.AlignmentMode" + } + }, + { + "name": "set_clip_tabs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "clip_tabs", + "type": "bool" + } + ] + }, + { + "name": "get_clip_tabs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tabs_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "are_tabs_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_all_tabs_in_front", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "is_front", + "type": "bool" + } + ] + }, + { + "name": "is_all_tabs_in_front", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tab_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_tab_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_tab_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "is_tab_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_hidden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "hidden", + "type": "bool" + } + ] + }, + { + "name": "is_tab_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tab_button_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_tab_button_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "tab_idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_idx_at_point", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "point", + "type": "Vector2" + } + ] + }, + { + "name": "get_tab_idx_from_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2787397975, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "control", + "type": "Control" + } + ] + }, + { + "name": "set_popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1078189570, + "arguments": [ + { + "name": "popup", + "type": "Node" + } + ] + }, + { + "name": "get_popup", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 111095082, + "return_value": { + "type": "Popup" + } + }, + { + "name": "set_drag_to_rearrange_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_drag_to_rearrange_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_tabs_rearrange_group", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "group_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tabs_rearrange_group", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_use_hidden_tabs_for_min_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_use_hidden_tabs_for_min_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "tab_changed", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_selected", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "tab_button_pressed", + "arguments": [ + { + "name": "tab", + "type": "int" + } + ] + }, + { + "name": "pre_popup_pressed" + } + ], + "properties": [ + { + "type": "int", + "name": "tab_alignment", + "setter": "set_tab_alignment", + "getter": "get_tab_alignment" + }, + { + "type": "int", + "name": "current_tab", + "setter": "set_current_tab", + "getter": "get_current_tab" + }, + { + "type": "bool", + "name": "clip_tabs", + "setter": "set_clip_tabs", + "getter": "get_clip_tabs" + }, + { + "type": "bool", + "name": "tabs_visible", + "setter": "set_tabs_visible", + "getter": "are_tabs_visible" + }, + { + "type": "bool", + "name": "all_tabs_in_front", + "setter": "set_all_tabs_in_front", + "getter": "is_all_tabs_in_front" + }, + { + "type": "bool", + "name": "drag_to_rearrange_enabled", + "setter": "set_drag_to_rearrange_enabled", + "getter": "get_drag_to_rearrange_enabled" + }, + { + "type": "int", + "name": "tabs_rearrange_group", + "setter": "set_tabs_rearrange_group", + "getter": "get_tabs_rearrange_group" + }, + { + "type": "bool", + "name": "use_hidden_tabs_for_min_size", + "setter": "set_use_hidden_tabs_for_min_size", + "getter": "get_use_hidden_tabs_for_min_size" + } + ] + }, + { + "name": "TextEdit", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "MenuItems", + "is_bitfield": false, + "values": [ + { + "name": "MENU_CUT", + "value": 0 + }, + { + "name": "MENU_COPY", + "value": 1 + }, + { + "name": "MENU_PASTE", + "value": 2 + }, + { + "name": "MENU_CLEAR", + "value": 3 + }, + { + "name": "MENU_SELECT_ALL", + "value": 4 + }, + { + "name": "MENU_UNDO", + "value": 5 + }, + { + "name": "MENU_REDO", + "value": 6 + }, + { + "name": "MENU_SUBMENU_TEXT_DIR", + "value": 7 + }, + { + "name": "MENU_DIR_INHERITED", + "value": 8 + }, + { + "name": "MENU_DIR_AUTO", + "value": 9 + }, + { + "name": "MENU_DIR_LTR", + "value": 10 + }, + { + "name": "MENU_DIR_RTL", + "value": 11 + }, + { + "name": "MENU_DISPLAY_UCC", + "value": 12 + }, + { + "name": "MENU_SUBMENU_INSERT_UCC", + "value": 13 + }, + { + "name": "MENU_INSERT_LRM", + "value": 14 + }, + { + "name": "MENU_INSERT_RLM", + "value": 15 + }, + { + "name": "MENU_INSERT_LRE", + "value": 16 + }, + { + "name": "MENU_INSERT_RLE", + "value": 17 + }, + { + "name": "MENU_INSERT_LRO", + "value": 18 + }, + { + "name": "MENU_INSERT_RLO", + "value": 19 + }, + { + "name": "MENU_INSERT_PDF", + "value": 20 + }, + { + "name": "MENU_INSERT_ALM", + "value": 21 + }, + { + "name": "MENU_INSERT_LRI", + "value": 22 + }, + { + "name": "MENU_INSERT_RLI", + "value": 23 + }, + { + "name": "MENU_INSERT_FSI", + "value": 24 + }, + { + "name": "MENU_INSERT_PDI", + "value": 25 + }, + { + "name": "MENU_INSERT_ZWJ", + "value": 26 + }, + { + "name": "MENU_INSERT_ZWNJ", + "value": 27 + }, + { + "name": "MENU_INSERT_WJ", + "value": 28 + }, + { + "name": "MENU_INSERT_SHY", + "value": 29 + }, + { + "name": "MENU_MAX", + "value": 30 + } + ] + }, + { + "name": "EditAction", + "is_bitfield": false, + "values": [ + { + "name": "ACTION_NONE", + "value": 0 + }, + { + "name": "ACTION_TYPING", + "value": 1 + }, + { + "name": "ACTION_BACKSPACE", + "value": 2 + }, + { + "name": "ACTION_DELETE", + "value": 3 + } + ] + }, + { + "name": "SearchFlags", + "is_bitfield": false, + "values": [ + { + "name": "SEARCH_MATCH_CASE", + "value": 1 + }, + { + "name": "SEARCH_WHOLE_WORDS", + "value": 2 + }, + { + "name": "SEARCH_BACKWARDS", + "value": 4 + } + ] + }, + { + "name": "CaretType", + "is_bitfield": false, + "values": [ + { + "name": "CARET_TYPE_LINE", + "value": 0 + }, + { + "name": "CARET_TYPE_BLOCK", + "value": 1 + } + ] + }, + { + "name": "SelectionMode", + "is_bitfield": false, + "values": [ + { + "name": "SELECTION_MODE_NONE", + "value": 0 + }, + { + "name": "SELECTION_MODE_SHIFT", + "value": 1 + }, + { + "name": "SELECTION_MODE_POINTER", + "value": 2 + }, + { + "name": "SELECTION_MODE_WORD", + "value": 3 + }, + { + "name": "SELECTION_MODE_LINE", + "value": 4 + } + ] + }, + { + "name": "LineWrappingMode", + "is_bitfield": false, + "values": [ + { + "name": "LINE_WRAPPING_NONE", + "value": 0 + }, + { + "name": "LINE_WRAPPING_BOUNDARY", + "value": 1 + } + ] + }, + { + "name": "GutterType", + "is_bitfield": false, + "values": [ + { + "name": "GUTTER_TYPE_STRING", + "value": 0 + }, + { + "name": "GUTTER_TYPE_ICON", + "value": 1 + }, + { + "name": "GUTTER_TYPE_CUSTOM", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_handle_unicode_input", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "unicode_char", + "type": "int", + "meta": "int32" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_backspace", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_cut", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_copy", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_paste", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_paste_primary_clipboard", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_ime_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_editable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 119160795, + "arguments": [ + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797257663, + "return_value": { + "type": "enum::Control.TextDirection" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_tab_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tab_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_overtype_mode_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_overtype_mode_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_context_menu_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_context_menu_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shortcut_keys_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_shortcut_keys_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_virtual_keyboard_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_virtual_keyboard_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_middle_mouse_paste_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_middle_mouse_paste_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "new_text", + "type": "String" + } + ] + }, + { + "name": "get_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3294126239, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_line_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_indent_level", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_first_non_whitespace_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "swap_lines", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "insert_line_at", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "insert_text_at_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3043792800, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4275841770, + "arguments": [ + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "from_column", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_last_unhidden_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_next_visible_line_offset_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "visible_amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_next_visible_line_index_offset_from", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3386475622, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32" + }, + { + "name": "visible_amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "backspace", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "cut", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "copy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "paste", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "paste_primary_clipboard", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "start_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2834827583, + "arguments": [ + { + "name": "action", + "type": "enum::TextEdit.EditAction" + } + ] + }, + { + "name": "end_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "begin_complex_operation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "end_complex_operation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "has_undo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_redo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "undo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "redo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_undo_history", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "tag_saved_version", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "get_saved_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_search_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "search_text", + "type": "String" + } + ] + }, + { + "name": "set_search_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "flags", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "search", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1203739136, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "flags", + "type": "int", + "meta": "uint32" + }, + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "from_colum", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tooltip_request_func", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "get_local_mouse_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_word_at_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3674420000, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_line_column_at_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 850652858, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "allow_out_of_bounds", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_pos_at_line_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 410388347, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rect_at_line_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3256618057, + "return_value": { + "type": "Rect2i" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_minimap_line_at_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "is_dragging_cursor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_mouse_over_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1099474134, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "edges", + "type": "bool" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_caret_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1211596914, + "arguments": [ + { + "name": "type", + "type": "enum::TextEdit.CaretType" + } + ] + }, + { + "name": "get_caret_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2830252959, + "return_value": { + "type": "enum::TextEdit.CaretType" + } + }, + { + "name": "set_caret_blink_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_caret_blink_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_blink_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "interval", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_caret_blink_interval", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_move_caret_on_right_click_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_move_caret_on_right_click_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_caret_mid_grapheme_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_caret_mid_grapheme_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_multiple_carets_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_multiple_carets_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 50157827, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "col", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "caret", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_secondary_carets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "merge_overlapping_carets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_caret_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_caret_at_carets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "below", + "type": "bool" + } + ] + }, + { + "name": "get_caret_index_edit_order", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 969006518, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "adjust_carets_after_edit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1770277138, + "arguments": [ + { + "name": "caret", + "type": "int", + "meta": "int32" + }, + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "from_col", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_col", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_caret_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1051549951, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_caret_draw_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 478253731, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_caret_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1413195636, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "adjust_viewport", + "type": "bool", + "default_value": "true" + }, + { + "name": "can_be_hidden", + "type": "bool", + "default_value": "true" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_caret_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_caret_column", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1071284433, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "adjust_viewport", + "type": "bool", + "default_value": "true" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_caret_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_caret_wrap_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_word_under_caret", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3929349208, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_selecting_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_selecting_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_deselect_on_focus_loss_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_deselect_on_focus_loss_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drag_and_drop_selection_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_drag_and_drop_selection_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_selection_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920622473, + "arguments": [ + { + "name": "mode", + "type": "enum::TextEdit.SelectionMode" + }, + { + "name": "line", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "column", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3750106938, + "return_value": { + "type": "enum::TextEdit.SelectionMode" + } + }, + { + "name": "select_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "select_word_under_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "add_selection_for_next_occurrence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4269665324, + "arguments": [ + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "from_column", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_column", + "type": "int", + "meta": "int32" + }, + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "has_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2824505868, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_selected_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2309358862, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_selection_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_from_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_from_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_to_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_selection_to_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1591665591, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "deselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "delete_selection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_line_wrapping_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2525115309, + "arguments": [ + { + "name": "mode", + "type": "enum::TextEdit.LineWrappingMode" + } + ] + }, + { + "name": "get_line_wrapping_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3562716114, + "return_value": { + "type": "enum::TextEdit.LineWrappingMode" + } + }, + { + "name": "is_line_wrapped", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_wrap_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_wrap_index_at_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_wrapped_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 647634434, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_smooth_scroll_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_smooth_scroll_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_v_scroll_bar", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3226026593, + "return_value": { + "type": "VScrollBar" + } + }, + { + "name": "get_h_scroll_bar", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3774687988, + "return_value": { + "type": "HScrollBar" + } + }, + { + "name": "set_v_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_v_scroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_h_scroll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_h_scroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_scroll_past_end_of_file_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_scroll_past_end_of_file_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_v_scroll_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_v_scroll_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fit_content_height_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_fit_content_height_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_scroll_pos_for_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3274652423, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_line_as_first_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3023605688, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_first_visible_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_line_as_center_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3023605688, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_line_as_last_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3023605688, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "wrap_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_last_full_visible_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_last_full_visible_line_wrap_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_visible_line_count_in_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_total_visible_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "adjust_viewport_to_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "center_viewport_to_caret", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1995695955, + "arguments": [ + { + "name": "caret_index", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_draw_minimap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_minimap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_minimap_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_minimap_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_minimap_visible_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "at", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_gutter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_gutter_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_gutter_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_gutter_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1088959071, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "enum::TextEdit.GutterType" + } + ] + }, + { + "name": "get_gutter_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1159699127, + "return_value": { + "type": "enum::TextEdit.GutterType" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_gutter_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "draw", + "type": "bool" + } + ] + }, + { + "name": "is_gutter_drawn", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_clickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "clickable", + "type": "bool" + } + ] + }, + { + "name": "is_gutter_clickable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_overwritable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "overwritable", + "type": "bool" + } + ] + }, + { + "name": "is_gutter_overwritable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "merge_gutters", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "from_line", + "type": "int", + "meta": "int32" + }, + { + "name": "to_line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_gutter_custom_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 957362965, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "draw_callback", + "type": "Callable" + } + ] + }, + { + "name": "get_total_gutter_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_line_gutter_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2060538656, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "metadata", + "type": "Variant" + } + ] + }, + { + "name": "get_line_gutter_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 678354945, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_line_gutter_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_line_gutter_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391810591, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_line_gutter_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 176101966, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_line_gutter_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2584904275, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_line_gutter_item_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3733378741, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_line_gutter_item_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2165839948, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_line_gutter_clickable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + }, + { + "name": "clickable", + "type": "bool" + } + ] + }, + { + "name": "is_line_gutter_clickable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "gutter", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_line_background_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_line_background_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_syntax_highlighter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2765644541, + "arguments": [ + { + "name": "syntax_highlighter", + "type": "SyntaxHighlighter" + } + ] + }, + { + "name": "get_syntax_highlighter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2721131626, + "return_value": { + "type": "SyntaxHighlighter" + } + }, + { + "name": "set_highlight_current_line", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_highlight_current_line_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_highlight_all_occurrences", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_highlight_all_occurrences_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_draw_control_chars", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_control_chars", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "set_draw_tabs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_tabs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_draw_spaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_drawing_spaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_menu", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229722558, + "return_value": { + "type": "PopupMenu" + } + }, + { + "name": "is_menu_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "menu_option", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "option", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "text_set" + }, + { + "name": "text_changed" + }, + { + "name": "lines_edited_from", + "arguments": [ + { + "name": "from_line", + "type": "int" + }, + { + "name": "to_line", + "type": "int" + } + ] + }, + { + "name": "caret_changed" + }, + { + "name": "gutter_clicked", + "arguments": [ + { + "name": "line", + "type": "int" + }, + { + "name": "gutter", + "type": "int" + } + ] + }, + { + "name": "gutter_added" + }, + { + "name": "gutter_removed" + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "String", + "name": "placeholder_text", + "setter": "set_placeholder", + "getter": "get_placeholder" + }, + { + "type": "bool", + "name": "editable", + "setter": "set_editable", + "getter": "is_editable" + }, + { + "type": "bool", + "name": "context_menu_enabled", + "setter": "set_context_menu_enabled", + "getter": "is_context_menu_enabled" + }, + { + "type": "bool", + "name": "shortcut_keys_enabled", + "setter": "set_shortcut_keys_enabled", + "getter": "is_shortcut_keys_enabled" + }, + { + "type": "bool", + "name": "selecting_enabled", + "setter": "set_selecting_enabled", + "getter": "is_selecting_enabled" + }, + { + "type": "bool", + "name": "deselect_on_focus_loss_enabled", + "setter": "set_deselect_on_focus_loss_enabled", + "getter": "is_deselect_on_focus_loss_enabled" + }, + { + "type": "bool", + "name": "drag_and_drop_selection_enabled", + "setter": "set_drag_and_drop_selection_enabled", + "getter": "is_drag_and_drop_selection_enabled" + }, + { + "type": "bool", + "name": "virtual_keyboard_enabled", + "setter": "set_virtual_keyboard_enabled", + "getter": "is_virtual_keyboard_enabled" + }, + { + "type": "bool", + "name": "middle_mouse_paste_enabled", + "setter": "set_middle_mouse_paste_enabled", + "getter": "is_middle_mouse_paste_enabled" + }, + { + "type": "int", + "name": "wrap_mode", + "setter": "set_line_wrapping_mode", + "getter": "get_line_wrapping_mode" + }, + { + "type": "bool", + "name": "highlight_all_occurrences", + "setter": "set_highlight_all_occurrences", + "getter": "is_highlight_all_occurrences_enabled" + }, + { + "type": "bool", + "name": "highlight_current_line", + "setter": "set_highlight_current_line", + "getter": "is_highlight_current_line_enabled" + }, + { + "type": "bool", + "name": "draw_control_chars", + "setter": "set_draw_control_chars", + "getter": "get_draw_control_chars" + }, + { + "type": "bool", + "name": "draw_tabs", + "setter": "set_draw_tabs", + "getter": "is_drawing_tabs" + }, + { + "type": "bool", + "name": "draw_spaces", + "setter": "set_draw_spaces", + "getter": "is_drawing_spaces" + }, + { + "type": "SyntaxHighlighter", + "name": "syntax_highlighter", + "setter": "set_syntax_highlighter", + "getter": "get_syntax_highlighter" + }, + { + "type": "bool", + "name": "scroll_smooth", + "setter": "set_smooth_scroll_enabled", + "getter": "is_smooth_scroll_enabled" + }, + { + "type": "float", + "name": "scroll_v_scroll_speed", + "setter": "set_v_scroll_speed", + "getter": "get_v_scroll_speed" + }, + { + "type": "bool", + "name": "scroll_past_end_of_file", + "setter": "set_scroll_past_end_of_file_enabled", + "getter": "is_scroll_past_end_of_file_enabled" + }, + { + "type": "float", + "name": "scroll_vertical", + "setter": "set_v_scroll", + "getter": "get_v_scroll" + }, + { + "type": "int", + "name": "scroll_horizontal", + "setter": "set_h_scroll", + "getter": "get_h_scroll" + }, + { + "type": "bool", + "name": "scroll_fit_content_height", + "setter": "set_fit_content_height_enabled", + "getter": "is_fit_content_height_enabled" + }, + { + "type": "bool", + "name": "minimap_draw", + "setter": "set_draw_minimap", + "getter": "is_drawing_minimap" + }, + { + "type": "int", + "name": "minimap_width", + "setter": "set_minimap_width", + "getter": "get_minimap_width" + }, + { + "type": "int", + "name": "caret_type", + "setter": "set_caret_type", + "getter": "get_caret_type" + }, + { + "type": "bool", + "name": "caret_blink", + "setter": "set_caret_blink_enabled", + "getter": "is_caret_blink_enabled" + }, + { + "type": "float", + "name": "caret_blink_interval", + "setter": "set_caret_blink_interval", + "getter": "get_caret_blink_interval" + }, + { + "type": "bool", + "name": "caret_move_on_right_click", + "setter": "set_move_caret_on_right_click_enabled", + "getter": "is_move_caret_on_right_click_enabled" + }, + { + "type": "bool", + "name": "caret_mid_grapheme", + "setter": "set_caret_mid_grapheme_enabled", + "getter": "is_caret_mid_grapheme_enabled" + }, + { + "type": "bool", + "name": "caret_multiple", + "setter": "set_multiple_carets_enabled", + "getter": "is_multiple_carets_enabled" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "TextLine", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1418190634, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction" + } + ] + }, + { + "name": "get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2516697328, + "return_value": { + "type": "enum::TextServer.Direction" + } + }, + { + "name": "set_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 42823726, + "arguments": [ + { + "name": "orientation", + "type": "enum::TextServer.Orientation" + } + ] + }, + { + "name": "get_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 175768116, + "return_value": { + "type": "enum::TextServer.Orientation" + } + }, + { + "name": "set_preserve_invalid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_preserve_invalid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_preserve_control", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_preserve_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "override", + "type": "Array" + } + ] + }, + { + "name": "add_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 867188035, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "font", + "type": "Font" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "meta", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "add_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 735420116, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "length", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "baseline", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "resize_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 960819067, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "baseline", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "tab_align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "tab_stops", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "set_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2877345813, + "arguments": [ + { + "name": "flags", + "type": "bitfield::TextServer.JustificationFlag" + } + ] + }, + { + "name": "get_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1583363614, + "return_value": { + "type": "bitfield::TextServer.JustificationFlag" + } + }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1008890932, + "arguments": [ + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3779142101, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + } + }, + { + "name": "get_objects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "get_object_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1742700391, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_line_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_line_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_line_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_line_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_line_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1164457837, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1364491366, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "hit_test", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2401831903, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "float", + "meta": "float" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "direction", + "setter": "set_direction", + "getter": "get_direction" + }, + { + "type": "int", + "name": "orientation", + "setter": "set_orientation", + "getter": "get_orientation" + }, + { + "type": "bool", + "name": "preserve_invalid", + "setter": "set_preserve_invalid", + "getter": "get_preserve_invalid" + }, + { + "type": "bool", + "name": "preserve_control", + "setter": "set_preserve_control", + "getter": "get_preserve_control" + }, + { + "type": "float", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "int", + "name": "flags", + "setter": "set_flags", + "getter": "get_flags" + }, + { + "type": "int", + "name": "text_overrun_behavior", + "setter": "set_text_overrun_behavior", + "getter": "get_text_overrun_behavior" + } + ] + }, + { + "name": "TextMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_horizontal_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_horizontal_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "set_vertical_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1796458609, + "arguments": [ + { + "name": "alignment", + "type": "enum::VerticalAlignment" + } + ] + }, + { + "name": "get_vertical_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3274884059, + "return_value": { + "type": "enum::VerticalAlignment" + } + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "set_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_line_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "line_spacing", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_line_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_autowrap_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3289138044, + "arguments": [ + { + "name": "autowrap_mode", + "type": "enum::TextServer.AutowrapMode" + } + ] + }, + { + "name": "get_autowrap_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1549071663, + "return_value": { + "type": "enum::TextServer.AutowrapMode" + } + }, + { + "name": "set_depth", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "depth", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_pixel_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixel_size", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_pixel_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_curve_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "curve_step", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_curve_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1418190634, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2516697328, + "return_value": { + "type": "enum::TextServer.Direction" + } + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 55961453, + "arguments": [ + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3385126229, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + } + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_uppercase", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_uppercase", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "text", + "setter": "set_text", + "getter": "get_text" + }, + { + "type": "Font", + "name": "font", + "setter": "set_font", + "getter": "get_font" + }, + { + "type": "int", + "name": "font_size", + "setter": "set_font_size", + "getter": "get_font_size" + }, + { + "type": "int", + "name": "horizontal_alignment", + "setter": "set_horizontal_alignment", + "getter": "get_horizontal_alignment" + }, + { + "type": "int", + "name": "vertical_alignment", + "setter": "set_vertical_alignment", + "getter": "get_vertical_alignment" + }, + { + "type": "bool", + "name": "uppercase", + "setter": "set_uppercase", + "getter": "is_uppercase" + }, + { + "type": "float", + "name": "line_spacing", + "setter": "set_line_spacing", + "getter": "get_line_spacing" + }, + { + "type": "int", + "name": "autowrap_mode", + "setter": "set_autowrap_mode", + "getter": "get_autowrap_mode" + }, + { + "type": "float", + "name": "pixel_size", + "setter": "set_pixel_size", + "getter": "get_pixel_size" + }, + { + "type": "float", + "name": "curve_step", + "setter": "set_curve_step", + "getter": "get_curve_step" + }, + { + "type": "float", + "name": "depth", + "setter": "set_depth", + "getter": "get_depth" + }, + { + "type": "float", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "Vector2", + "name": "offset", + "setter": "set_offset", + "getter": "get_offset" + }, + { + "type": "int", + "name": "text_direction", + "setter": "set_text_direction", + "getter": "get_text_direction" + }, + { + "type": "String", + "name": "language", + "setter": "set_language", + "getter": "get_language" + }, + { + "type": "int", + "name": "structured_text_bidi_override", + "setter": "set_structured_text_bidi_override", + "getter": "get_structured_text_bidi_override" + }, + { + "type": "Array", + "name": "structured_text_bidi_override_options", + "setter": "set_structured_text_bidi_override_options", + "getter": "get_structured_text_bidi_override_options" + } + ] + }, + { + "name": "TextParagraph", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1418190634, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction" + } + ] + }, + { + "name": "get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2516697328, + "return_value": { + "type": "enum::TextServer.Direction" + } + }, + { + "name": "set_custom_punctuation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "custom_punctuation", + "type": "String" + } + ] + }, + { + "name": "get_custom_punctuation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 42823726, + "arguments": [ + { + "name": "orientation", + "type": "enum::TextServer.Orientation" + } + ] + }, + { + "name": "get_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 175768116, + "return_value": { + "type": "enum::TextServer.Orientation" + } + }, + { + "name": "set_preserve_invalid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_preserve_invalid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_preserve_control", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_preserve_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "override", + "type": "Array" + } + ] + }, + { + "name": "set_dropcap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2613124475, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "font", + "type": "Font" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + }, + { + "name": "dropcap_margins", + "type": "Rect2", + "default_value": "Rect2(0, 0, 0, 0)" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "clear_dropcap", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 867188035, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "text", + "type": "String" + }, + { + "name": "font", + "type": "Font" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "meta", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "add_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 735420116, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "length", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "baseline", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "resize_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 960819067, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "baseline", + "type": "float", + "meta": "float", + "default_value": "0.0" + } + ] + }, + { + "name": "set_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2312603777, + "arguments": [ + { + "name": "alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 341400642, + "return_value": { + "type": "enum::HorizontalAlignment" + } + }, + { + "name": "tab_align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2899603908, + "arguments": [ + { + "name": "tab_stops", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "set_break_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2809697122, + "arguments": [ + { + "name": "flags", + "type": "bitfield::TextServer.LineBreakFlag" + } + ] + }, + { + "name": "get_break_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2340632602, + "return_value": { + "type": "bitfield::TextServer.LineBreakFlag" + } + }, + { + "name": "set_justification_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2877345813, + "arguments": [ + { + "name": "flags", + "type": "bitfield::TextServer.JustificationFlag" + } + ] + }, + { + "name": "get_justification_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1583363614, + "return_value": { + "type": "bitfield::TextServer.JustificationFlag" + } + }, + { + "name": "set_text_overrun_behavior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1008890932, + "arguments": [ + { + "name": "overrun_behavior", + "type": "enum::TextServer.OverrunBehavior" + } + ] + }, + { + "name": "get_text_overrun_behavior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3779142101, + "return_value": { + "type": "enum::TextServer.OverrunBehavior" + } + }, + { + "name": "set_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "width", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_non_wrapped_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_line_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_dropcap_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_line_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max_lines_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_lines_visible", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_lines_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_line_objects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_object_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 204315017, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "get_line_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 880721226, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_line_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "line", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_dropcap_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_dropcap_lines", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 367324453, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "dc_color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2159523405, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "dc_color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3963848920, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_line_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1814903311, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "line", + "type": "int", + "meta": "int32" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_dropcap", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1164457837, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "draw_dropcap_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1364491366, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int32", + "default_value": "1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "hit_test", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "direction", + "setter": "set_direction", + "getter": "get_direction" + }, + { + "type": "String", + "name": "custom_punctuation", + "setter": "set_custom_punctuation", + "getter": "get_custom_punctuation" + }, + { + "type": "int", + "name": "orientation", + "setter": "set_orientation", + "getter": "get_orientation" + }, + { + "type": "bool", + "name": "preserve_invalid", + "setter": "set_preserve_invalid", + "getter": "get_preserve_invalid" + }, + { + "type": "bool", + "name": "preserve_control", + "setter": "set_preserve_control", + "getter": "get_preserve_control" + }, + { + "type": "int", + "name": "alignment", + "setter": "set_alignment", + "getter": "get_alignment" + }, + { + "type": "int", + "name": "break_flags", + "setter": "set_break_flags", + "getter": "get_break_flags" + }, + { + "type": "int", + "name": "justification_flags", + "setter": "set_justification_flags", + "getter": "get_justification_flags" + }, + { + "type": "int", + "name": "text_overrun_behavior", + "setter": "set_text_overrun_behavior", + "getter": "get_text_overrun_behavior" + }, + { + "type": "float", + "name": "width", + "setter": "set_width", + "getter": "get_width" + }, + { + "type": "int", + "name": "max_lines_visible", + "setter": "set_max_lines_visible", + "getter": "get_max_lines_visible" + } + ] + }, + { + "name": "TextServer", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "FontAntialiasing", + "is_bitfield": false, + "values": [ + { + "name": "FONT_ANTIALIASING_NONE", + "value": 0 + }, + { + "name": "FONT_ANTIALIASING_GRAY", + "value": 1 + }, + { + "name": "FONT_ANTIALIASING_LCD", + "value": 2 + } + ] + }, + { + "name": "FontLCDSubpixelLayout", + "is_bitfield": false, + "values": [ + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_NONE", + "value": 0 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_HRGB", + "value": 1 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_HBGR", + "value": 2 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_VRGB", + "value": 3 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_VBGR", + "value": 4 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_MAX", + "value": 5 + } + ] + }, + { + "name": "Direction", + "is_bitfield": false, + "values": [ + { + "name": "DIRECTION_AUTO", + "value": 0 + }, + { + "name": "DIRECTION_LTR", + "value": 1 + }, + { + "name": "DIRECTION_RTL", + "value": 2 + }, + { + "name": "DIRECTION_INHERITED", + "value": 3 + } + ] + }, + { + "name": "Orientation", + "is_bitfield": false, + "values": [ + { + "name": "ORIENTATION_HORIZONTAL", + "value": 0 + }, + { + "name": "ORIENTATION_VERTICAL", + "value": 1 + } + ] + }, + { + "name": "JustificationFlag", + "is_bitfield": true, + "values": [ + { + "name": "JUSTIFICATION_NONE", + "value": 0 + }, + { + "name": "JUSTIFICATION_KASHIDA", + "value": 1 + }, + { + "name": "JUSTIFICATION_WORD_BOUND", + "value": 2 + }, + { + "name": "JUSTIFICATION_TRIM_EDGE_SPACES", + "value": 4 + }, + { + "name": "JUSTIFICATION_AFTER_LAST_TAB", + "value": 8 + }, + { + "name": "JUSTIFICATION_CONSTRAIN_ELLIPSIS", + "value": 16 + } + ] + }, + { + "name": "AutowrapMode", + "is_bitfield": false, + "values": [ + { + "name": "AUTOWRAP_OFF", + "value": 0 + }, + { + "name": "AUTOWRAP_ARBITRARY", + "value": 1 + }, + { + "name": "AUTOWRAP_WORD", + "value": 2 + }, + { + "name": "AUTOWRAP_WORD_SMART", + "value": 3 + } + ] + }, + { + "name": "LineBreakFlag", + "is_bitfield": true, + "values": [ + { + "name": "BREAK_NONE", + "value": 0 + }, + { + "name": "BREAK_MANDATORY", + "value": 1 + }, + { + "name": "BREAK_WORD_BOUND", + "value": 2 + }, + { + "name": "BREAK_GRAPHEME_BOUND", + "value": 4 + }, + { + "name": "BREAK_ADAPTIVE", + "value": 8 + }, + { + "name": "BREAK_TRIM_EDGE_SPACES", + "value": 16 + } + ] + }, + { + "name": "VisibleCharactersBehavior", + "is_bitfield": false, + "values": [ + { + "name": "VC_CHARS_BEFORE_SHAPING", + "value": 0 + }, + { + "name": "VC_CHARS_AFTER_SHAPING", + "value": 1 + }, + { + "name": "VC_GLYPHS_AUTO", + "value": 2 + }, + { + "name": "VC_GLYPHS_LTR", + "value": 3 + }, + { + "name": "VC_GLYPHS_RTL", + "value": 4 + } + ] + }, + { + "name": "OverrunBehavior", + "is_bitfield": false, + "values": [ + { + "name": "OVERRUN_NO_TRIMMING", + "value": 0 + }, + { + "name": "OVERRUN_TRIM_CHAR", + "value": 1 + }, + { + "name": "OVERRUN_TRIM_WORD", + "value": 2 + }, + { + "name": "OVERRUN_TRIM_ELLIPSIS", + "value": 3 + }, + { + "name": "OVERRUN_TRIM_WORD_ELLIPSIS", + "value": 4 + } + ] + }, + { + "name": "TextOverrunFlag", + "is_bitfield": true, + "values": [ + { + "name": "OVERRUN_NO_TRIM", + "value": 0 + }, + { + "name": "OVERRUN_TRIM", + "value": 1 + }, + { + "name": "OVERRUN_TRIM_WORD_ONLY", + "value": 2 + }, + { + "name": "OVERRUN_ADD_ELLIPSIS", + "value": 4 + }, + { + "name": "OVERRUN_ENFORCE_ELLIPSIS", + "value": 8 + }, + { + "name": "OVERRUN_JUSTIFICATION_AWARE", + "value": 16 + } + ] + }, + { + "name": "GraphemeFlag", + "is_bitfield": true, + "values": [ + { + "name": "GRAPHEME_IS_VALID", + "value": 1 + }, + { + "name": "GRAPHEME_IS_RTL", + "value": 2 + }, + { + "name": "GRAPHEME_IS_VIRTUAL", + "value": 4 + }, + { + "name": "GRAPHEME_IS_SPACE", + "value": 8 + }, + { + "name": "GRAPHEME_IS_BREAK_HARD", + "value": 16 + }, + { + "name": "GRAPHEME_IS_BREAK_SOFT", + "value": 32 + }, + { + "name": "GRAPHEME_IS_TAB", + "value": 64 + }, + { + "name": "GRAPHEME_IS_ELONGATION", + "value": 128 + }, + { + "name": "GRAPHEME_IS_PUNCTUATION", + "value": 256 + }, + { + "name": "GRAPHEME_IS_UNDERSCORE", + "value": 512 + }, + { + "name": "GRAPHEME_IS_CONNECTED", + "value": 1024 + }, + { + "name": "GRAPHEME_IS_SAFE_TO_INSERT_TATWEEL", + "value": 2048 + } + ] + }, + { + "name": "Hinting", + "is_bitfield": false, + "values": [ + { + "name": "HINTING_NONE", + "value": 0 + }, + { + "name": "HINTING_LIGHT", + "value": 1 + }, + { + "name": "HINTING_NORMAL", + "value": 2 + } + ] + }, + { + "name": "SubpixelPositioning", + "is_bitfield": false, + "values": [ + { + "name": "SUBPIXEL_POSITIONING_DISABLED", + "value": 0 + }, + { + "name": "SUBPIXEL_POSITIONING_AUTO", + "value": 1 + }, + { + "name": "SUBPIXEL_POSITIONING_ONE_HALF", + "value": 2 + }, + { + "name": "SUBPIXEL_POSITIONING_ONE_QUARTER", + "value": 3 + }, + { + "name": "SUBPIXEL_POSITIONING_ONE_HALF_MAX_SIZE", + "value": 20 + }, + { + "name": "SUBPIXEL_POSITIONING_ONE_QUARTER_MAX_SIZE", + "value": 16 + } + ] + }, + { + "name": "Feature", + "is_bitfield": false, + "values": [ + { + "name": "FEATURE_SIMPLE_LAYOUT", + "value": 1 + }, + { + "name": "FEATURE_BIDI_LAYOUT", + "value": 2 + }, + { + "name": "FEATURE_VERTICAL_LAYOUT", + "value": 4 + }, + { + "name": "FEATURE_SHAPING", + "value": 8 + }, + { + "name": "FEATURE_KASHIDA_JUSTIFICATION", + "value": 16 + }, + { + "name": "FEATURE_BREAK_ITERATORS", + "value": 32 + }, + { + "name": "FEATURE_FONT_BITMAP", + "value": 64 + }, + { + "name": "FEATURE_FONT_DYNAMIC", + "value": 128 + }, + { + "name": "FEATURE_FONT_MSDF", + "value": 256 + }, + { + "name": "FEATURE_FONT_SYSTEM", + "value": 512 + }, + { + "name": "FEATURE_FONT_VARIABLE", + "value": 1024 + }, + { + "name": "FEATURE_CONTEXT_SENSITIVE_CASE_CONVERSION", + "value": 2048 + }, + { + "name": "FEATURE_USE_SUPPORT_DATA", + "value": 4096 + }, + { + "name": "FEATURE_UNICODE_IDENTIFIERS", + "value": 8192 + }, + { + "name": "FEATURE_UNICODE_SECURITY", + "value": 16384 + } + ] + }, + { + "name": "ContourPointTag", + "is_bitfield": false, + "values": [ + { + "name": "CONTOUR_CURVE_TAG_ON", + "value": 1 + }, + { + "name": "CONTOUR_CURVE_TAG_OFF_CONIC", + "value": 0 + }, + { + "name": "CONTOUR_CURVE_TAG_OFF_CUBIC", + "value": 2 + } + ] + }, + { + "name": "SpacingType", + "is_bitfield": false, + "values": [ + { + "name": "SPACING_GLYPH", + "value": 0 + }, + { + "name": "SPACING_SPACE", + "value": 1 + }, + { + "name": "SPACING_TOP", + "value": 2 + }, + { + "name": "SPACING_BOTTOM", + "value": 3 + }, + { + "name": "SPACING_MAX", + "value": 4 + } + ] + }, + { + "name": "FontStyle", + "is_bitfield": true, + "values": [ + { + "name": "FONT_BOLD", + "value": 1 + }, + { + "name": "FONT_ITALIC", + "value": 2 + }, + { + "name": "FONT_FIXED_WIDTH", + "value": 4 + } + ] + }, + { + "name": "StructuredTextParser", + "is_bitfield": false, + "values": [ + { + "name": "STRUCTURED_TEXT_DEFAULT", + "value": 0 + }, + { + "name": "STRUCTURED_TEXT_URI", + "value": 1 + }, + { + "name": "STRUCTURED_TEXT_FILE", + "value": 2 + }, + { + "name": "STRUCTURED_TEXT_EMAIL", + "value": 3 + }, + { + "name": "STRUCTURED_TEXT_LIST", + "value": 4 + }, + { + "name": "STRUCTURED_TEXT_GDSCRIPT", + "value": 5 + }, + { + "name": "STRUCTURED_TEXT_CUSTOM", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "has_feature", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3967367083, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::TextServer.Feature" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_features", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "load_support_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2323990056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, + { + "name": "get_support_data_filename", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_support_data_info", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "save_support_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, + { + "name": "is_locale_right_to_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "name_to_tag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "tag_to_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tag", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "has", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "free_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "create_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "font_set_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1355495400, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "font_set_face_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "face_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_face_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_get_face_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_style", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 898466325, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "style", + "type": "bitfield::TextServer.FontStyle" + } + ] + }, + { + "name": "font_get_style", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082502592, + "return_value": { + "type": "bitfield::TextServer.FontStyle" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "font_get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_style_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "font_get_style_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_weight", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "weight", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_weight", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "weight", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_stretch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_antialiasing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 958337235, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "antialiasing", + "type": "enum::TextServer.FontAntialiasing" + } + ] + }, + { + "name": "font_get_antialiasing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3389420495, + "return_value": { + "type": "enum::TextServer.FontAntialiasing" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_generate_mipmaps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "generate_mipmaps", + "type": "bool" + } + ] + }, + { + "name": "font_get_generate_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_multichannel_signed_distance_field", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf", + "type": "bool" + } + ] + }, + { + "name": "font_is_multichannel_signed_distance_field", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_msdf_pixel_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf_pixel_range", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_msdf_pixel_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_msdf_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf_size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_msdf_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_fixed_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "fixed_size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_fixed_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_allow_system_fallback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "allow_system_fallback", + "type": "bool" + } + ] + }, + { + "name": "font_is_allow_system_fallback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_force_autohinter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "force_autohinter", + "type": "bool" + } + ] + }, + { + "name": "font_is_force_autohinter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_hinting", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1520010864, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "hinting", + "type": "enum::TextServer.Hinting" + } + ] + }, + { + "name": "font_get_hinting", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3971592737, + "return_value": { + "type": "enum::TextServer.Hinting" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_subpixel_positioning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3830459669, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "subpixel_positioning", + "type": "enum::TextServer.SubpixelPositioning" + } + ] + }, + { + "name": "font_get_subpixel_positioning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2752233671, + "return_value": { + "type": "enum::TextServer.SubpixelPositioning" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_embolden", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "strength", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_embolden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1246044741, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "font_get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 213527486, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_variation_coordinates", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1217542888, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "variation_coordinates", + "type": "Dictionary" + } + ] + }, + { + "name": "font_get_variation_coordinates", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1882737106, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1794382983, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "oversampling", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_get_size_cache_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_clear_size_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_remove_size_cache", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2450610377, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "font_set_ascent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "ascent", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 755457166, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_descent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "descent", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 755457166, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_underline_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "underline_position", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 755457166, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_underline_thickness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "underline_thickness", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 755457166, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1892459533, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "font_get_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 755457166, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_texture_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1311001310, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "font_clear_textures", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2450610377, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "font_remove_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3810512262, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_texture_image", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2354485091, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + }, + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "font_get_texture_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2451761155, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_texture_offsets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3005398047, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + }, + { + "name": "offset", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "font_get_texture_offsets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3420028887, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_glyph_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 46086620, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "font_clear_glyphs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2450610377, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "font_remove_glyph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3810512262, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_glyph_advance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2555689501, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_glyph_advance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3219397315, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "advance", + "type": "Vector2" + } + ] + }, + { + "name": "font_get_glyph_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 513728628, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_glyph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1812632090, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "font_get_glyph_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 513728628, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_glyph_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1812632090, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "gl_size", + "type": "Vector2" + } + ] + }, + { + "name": "font_get_glyph_uv_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2274268786, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_glyph_uv_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1973324081, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "uv_rect", + "type": "Rect2" + } + ] + }, + { + "name": "font_get_glyph_texture_idx", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4292800474, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_set_glyph_texture_idx", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4254580980, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "texture_idx", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_glyph_texture_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1451696141, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_glyph_texture_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 513728628, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_glyph_contours", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2903964473, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_kerning_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1778388067, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_clear_kerning_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3411492887, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_remove_kerning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2141860016, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "font_set_kerning", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3630965883, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + }, + { + "name": "kerning", + "type": "Vector2" + } + ] + }, + { + "name": "font_get_kerning", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1019980169, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "font_get_glyph_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1765635060, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + }, + { + "name": "variation_selector", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_has_char", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3120086654, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_get_supported_chars", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_render_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4254580980, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_render_glyph", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3810512262, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "font_draw_glyph", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1821196351, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "font_draw_glyph_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1124898203, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "font_is_language_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3199320846, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "font_set_language_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2313957094, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "font_get_language_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2829184646, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "font_remove_language_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "font_get_language_support_overrides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2801473409, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_is_script_supported", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3199320846, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "font_set_script_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2313957094, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "font_get_script_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2829184646, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "font_remove_script_support_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "font_get_script_support_overrides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2801473409, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_set_opentype_feature_overrides", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1217542888, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "overrides", + "type": "Dictionary" + } + ] + }, + { + "name": "font_get_opentype_feature_overrides", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1882737106, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_supported_feature_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1882737106, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_supported_variation_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1882737106, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "font_get_global_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "font_set_global_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "oversampling", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_hex_code_box_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3016396712, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "draw_hex_code_box", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602046441, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "create_shaped_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1231398698, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "shaped_text_clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2616949700, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction", + "default_value": "0" + } + ] + }, + { + "name": "shaped_text_get_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3065904362, + "return_value": { + "type": "enum::TextServer.Direction" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_inferred_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3065904362, + "return_value": { + "type": "enum::TextServer.Direction" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 684822712, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "override", + "type": "Array" + } + ] + }, + { + "name": "shaped_text_set_custom_punctuation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726140452, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "punct", + "type": "String" + } + ] + }, + { + "name": "shaped_text_get_custom_punctuation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642473191, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_orientation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 104095128, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation", + "default_value": "0" + } + ] + }, + { + "name": "shaped_text_get_orientation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3142708106, + "return_value": { + "type": "enum::TextServer.Orientation" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_preserve_invalid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "shaped_text_get_preserve_invalid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_preserve_control", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1265174801, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "shaped_text_get_preserve_control", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_set_spacing", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1307259930, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_get_spacing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1213653558, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, + { + "name": "shaped_text_add_string", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2621279422, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "fonts", + "type": "typedarray::RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "opentype_features", + "type": "Dictionary", + "default_value": "{}" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "meta", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "shaped_text_add_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2838446185, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "length", + "type": "int", + "meta": "int64", + "default_value": "1" + }, + { + "name": "baseline", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, + { + "name": "shaped_text_resize_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2353789835, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment", + "default_value": "5" + }, + { + "name": "baseline", + "type": "float", + "meta": "double", + "default_value": "0.0" + } + ] + }, + { + "name": "shaped_get_span_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_get_span_meta", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4069510997, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_set_span_update_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1578983057, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "fonts", + "type": "typedarray::RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "opentype_features", + "type": "Dictionary", + "default_value": "{}" + } + ] + }, + { + "name": "shaped_text_substr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1937682086, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "length", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_get_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814569979, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_fit_to_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 603718830, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag", + "default_value": "3" + } + ] + }, + { + "name": "shaped_text_tab_align", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1283669550, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "tab_stops", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "shaped_text_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3521089500, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_is_ready", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4155700596, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_glyphs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_sort_logical", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2670461153, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_glyph_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 733700038, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_line_breaks_adv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4206849830, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "PackedFloat32Array" + }, + { + "name": "start", + "type": "int", + "meta": "int64", + "default_value": "0" + }, + { + "name": "once", + "type": "bool", + "default_value": "true" + }, + { + "name": "break_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + } + ] + }, + { + "name": "shaped_text_get_line_breaks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 303410369, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double" + }, + { + "name": "start", + "type": "int", + "meta": "int64", + "default_value": "0" + }, + { + "name": "break_flags", + "type": "bitfield::TextServer.LineBreakFlag", + "default_value": "3" + } + ] + }, + { + "name": "shaped_text_get_word_breaks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3299477123, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "grapheme_flags", + "type": "bitfield::TextServer.GraphemeFlag", + "default_value": "264" + } + ] + }, + { + "name": "shaped_text_get_trim_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_ellipsis_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_ellipsis_glyphs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_ellipsis_glyph_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_overrun_trim_to_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1572579718, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double", + "default_value": "0" + }, + { + "name": "overrun_trim_flags", + "type": "bitfield::TextServer.TextOverrunFlag", + "default_value": "0" + } + ] + }, + { + "name": "shaped_text_get_objects", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2684255073, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_object_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 447978354, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "shaped_text_get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2440833711, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_ascent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_descent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_underline_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_underline_thickness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 866169185, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "shaped_text_get_carets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1574219346, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "position", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_get_selection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3714187733, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_hit_test_grapheme", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3149310417, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "coords", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "shaped_text_hit_test_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3149310417, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "coords", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "shaped_text_get_grapheme_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2546185844, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_next_grapheme_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_prev_grapheme_pos", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1120910005, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "shaped_text_draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 70679950, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "clip_l", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "clip_r", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "shaped_text_draw_outline", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2673671346, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "clip_l", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "clip_r", + "type": "float", + "meta": "double", + "default_value": "-1" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int64", + "default_value": "1" + }, + { + "name": "color", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + } + ] + }, + { + "name": "shaped_text_get_dominant_direction_in_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3326907668, + "return_value": { + "type": "enum::TextServer.Direction" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "format_number", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2305636099, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "number", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "parse_number", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2305636099, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "number", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "percent_sign", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 993269549, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "string_get_word_breaks", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1398910359, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "chars_per_line", + "type": "int", + "meta": "int64", + "default_value": "0" + } + ] + }, + { + "name": "is_confusable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1433197768, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "dict", + "type": "PackedStringArray" + } + ] + }, + { + "name": "spoof_check", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "strip_diacritics", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "is_valid_identifier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "string_to_upper", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2305636099, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "string_to_lower", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2305636099, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "parse_structured_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3310685015, + "return_value": { + "type": "typedarray::Vector3i" + }, + "arguments": [ + { + "name": "parser_type", + "type": "enum::TextServer.StructuredTextParser" + }, + { + "name": "args", + "type": "Array" + }, + { + "name": "text", + "type": "String" + } + ] + } + ] + }, + { + "name": "TextServerAdvanced", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServerExtension", + "api_type": "core" + }, + { + "name": "TextServerDummy", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServerExtension", + "api_type": "core" + }, + { + "name": "TextServerExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TextServer", + "api_type": "core", + "methods": [ + { + "name": "_has_feature", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "feature", + "type": "enum::TextServer.Feature" + } + ] + }, + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_features", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + } + }, + { + "name": "_free_rid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "_has", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "rid", + "type": "RID" + } + ] + }, + { + "name": "_load_support_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, + { + "name": "_get_support_data_filename", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_support_data_info", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_save_support_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "filename", + "type": "String" + } + ] + }, + { + "name": "_is_locale_right_to_left", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "_name_to_tag", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "_tag_to_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "tag", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_create_font", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_font_set_data", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "_font_set_data_ptr", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "data_ptr", + "type": "const uint8_t*" + }, + { + "name": "data_size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_face_index", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "face_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_face_index", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_get_face_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_style", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "style", + "type": "bitfield::TextServer.FontStyle" + } + ] + }, + { + "name": "_font_get_style", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bitfield::TextServer.FontStyle" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_name", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "_font_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_style_name", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "name_style", + "type": "String" + } + ] + }, + { + "name": "_font_get_style_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_weight", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "weight", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_weight", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_stretch", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "stretch", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_stretch", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_antialiasing", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "antialiasing", + "type": "enum::TextServer.FontAntialiasing" + } + ] + }, + { + "name": "_font_get_antialiasing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.FontAntialiasing" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_generate_mipmaps", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "generate_mipmaps", + "type": "bool" + } + ] + }, + { + "name": "_font_get_generate_mipmaps", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_multichannel_signed_distance_field", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf", + "type": "bool" + } + ] + }, + { + "name": "_font_is_multichannel_signed_distance_field", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_msdf_pixel_range", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf_pixel_range", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_msdf_pixel_range", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_msdf_size", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "msdf_size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_msdf_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_fixed_size", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "fixed_size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_fixed_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_allow_system_fallback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "allow_system_fallback", + "type": "bool" + } + ] + }, + { + "name": "_font_is_allow_system_fallback", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_force_autohinter", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "force_autohinter", + "type": "bool" + } + ] + }, + { + "name": "_font_is_force_autohinter", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_hinting", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "hinting", + "type": "enum::TextServer.Hinting" + } + ] + }, + { + "name": "_font_get_hinting", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.Hinting" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_subpixel_positioning", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "subpixel_positioning", + "type": "enum::TextServer.SubpixelPositioning" + } + ] + }, + { + "name": "_font_get_subpixel_positioning", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.SubpixelPositioning" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_embolden", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "strength", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_embolden", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "transform", + "type": "Transform2D" + } + ] + }, + { + "name": "_font_get_transform", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform2D" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_variation_coordinates", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "variation_coordinates", + "type": "Dictionary" + } + ] + }, + { + "name": "_font_get_variation_coordinates", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_oversampling", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "oversampling", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_oversampling", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_get_size_cache_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_clear_size_cache", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_remove_size_cache", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_set_ascent", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "ascent", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_ascent", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_descent", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "descent", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_descent", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_underline_position", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "underline_position", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_underline_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_underline_thickness", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "underline_thickness", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_underline_thickness", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_scale", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_font_get_scale", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_texture_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_clear_textures", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_remove_texture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_texture_image", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + }, + { + "name": "image", + "type": "Image" + } + ] + }, + { + "name": "_font_get_texture_image", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_texture_offsets", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + }, + { + "name": "offset", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "_font_get_texture_offsets", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "texture_index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_glyph_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_clear_glyphs", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_remove_glyph", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_glyph_advance", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_glyph_advance", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "advance", + "type": "Vector2" + } + ] + }, + { + "name": "_font_get_glyph_offset", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_glyph_offset", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "_font_get_glyph_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_glyph_size", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "gl_size", + "type": "Vector2" + } + ] + }, + { + "name": "_font_get_glyph_uv_rect", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_glyph_uv_rect", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "uv_rect", + "type": "Rect2" + } + ] + }, + { + "name": "_font_get_glyph_texture_idx", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_set_glyph_texture_idx", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + }, + { + "name": "texture_idx", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_glyph_texture_rid", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_glyph_texture_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "glyph", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_glyph_contours", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_kerning_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_clear_kerning_map", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_remove_kerning", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_set_kerning", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + }, + { + "name": "kerning", + "type": "Vector2" + } + ] + }, + { + "name": "_font_get_kerning", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "glyph_pair", + "type": "Vector2i" + } + ] + }, + { + "name": "_font_get_glyph_index", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + }, + { + "name": "variation_selector", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_has_char", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "char", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_get_supported_chars", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_render_range", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_render_glyph", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_font_draw_glyph", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "_font_draw_glyph_outline", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "_font_is_language_supported", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_font_set_language_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "_font_get_language_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_font_remove_language_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_font_get_language_support_overrides", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_is_script_supported", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "_font_set_script_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "_font_get_script_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "_font_remove_script_support_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "_font_get_script_support_overrides", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_set_opentype_feature_overrides", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + }, + { + "name": "overrides", + "type": "Dictionary" + } + ] + }, + { + "name": "_font_get_opentype_feature_overrides", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_supported_feature_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_supported_variation_list", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "font_rid", + "type": "RID" + } + ] + }, + { + "name": "_font_get_global_oversampling", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_font_set_global_oversampling", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "oversampling", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_get_hex_code_box_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_draw_hex_code_box", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "canvas", + "type": "RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "_create_shaped_text", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "direction", + "type": "enum::TextServer.Direction" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation" + } + ] + }, + { + "name": "_shaped_text_clear", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_direction", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "direction", + "type": "enum::TextServer.Direction" + } + ] + }, + { + "name": "_shaped_text_get_direction", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.Direction" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_inferred_direction", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.Direction" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_bidi_override", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "override", + "type": "Array" + } + ] + }, + { + "name": "_shaped_text_set_custom_punctuation", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "punct", + "type": "String" + } + ] + }, + { + "name": "_shaped_text_get_custom_punctuation", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_orientation", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "orientation", + "type": "enum::TextServer.Orientation" + } + ] + }, + { + "name": "_shaped_text_get_orientation", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::TextServer.Orientation" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_preserve_invalid", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_shaped_text_get_preserve_invalid", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_preserve_control", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_shaped_text_get_preserve_control", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_set_spacing", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + }, + { + "name": "value", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_get_spacing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "spacing", + "type": "enum::TextServer.SpacingType" + } + ] + }, + { + "name": "_shaped_text_add_string", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "text", + "type": "String" + }, + { + "name": "fonts", + "type": "typedarray::RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "opentype_features", + "type": "Dictionary" + }, + { + "name": "language", + "type": "String" + }, + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "_shaped_text_add_object", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment" + }, + { + "name": "length", + "type": "int", + "meta": "int64" + }, + { + "name": "baseline", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_shaped_text_resize_object", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + }, + { + "name": "size", + "type": "Vector2" + }, + { + "name": "inline_align", + "type": "enum::InlineAlignment" + }, + { + "name": "baseline", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_shaped_get_span_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_get_span_meta", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_set_span_update_font", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "index", + "type": "int", + "meta": "int64" + }, + { + "name": "fonts", + "type": "typedarray::RID" + }, + { + "name": "size", + "type": "int", + "meta": "int64" + }, + { + "name": "opentype_features", + "type": "Dictionary" + } + ] + }, + { + "name": "_shaped_text_substr", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "length", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_get_parent", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_fit_to_width", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double" + }, + { + "name": "jst_flags", + "type": "bitfield::TextServer.JustificationFlag" + } + ] + }, + { + "name": "_shaped_text_tab_align", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "tab_stops", + "type": "PackedFloat32Array" + } + ] + }, + { + "name": "_shaped_text_shape", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_update_breaks", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_update_justification_ops", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_is_ready", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_glyphs", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "const Glyph*" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_sort_logical", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "const Glyph*" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_glyph_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_range", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_line_breaks_adv", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "PackedFloat32Array" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "once", + "type": "bool" + }, + { + "name": "break_flags", + "type": "bitfield::TextServer.LineBreakFlag" + } + ] + }, + { + "name": "_shaped_text_get_line_breaks", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "break_flags", + "type": "bitfield::TextServer.LineBreakFlag" + } + ] + }, + { + "name": "_shaped_text_get_word_breaks", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "grapheme_flags", + "type": "bitfield::TextServer.GraphemeFlag" + } + ] + }, + { + "name": "_shaped_text_get_trim_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_ellipsis_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_ellipsis_glyph_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_ellipsis_glyphs", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "const Glyph*" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_overrun_trim_to_width", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "width", + "type": "float", + "meta": "double" + }, + { + "name": "trim_flags", + "type": "bitfield::TextServer.TextOverrunFlag" + } + ] + }, + { + "name": "_shaped_text_get_objects", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_object_rect", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "key", + "type": "Variant" + } + ] + }, + { + "name": "_shaped_text_get_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_ascent", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_descent", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_width", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_underline_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_underline_thickness", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + } + ] + }, + { + "name": "_shaped_text_get_dominant_direction_in_range", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_get_carets", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "position", + "type": "int", + "meta": "int64" + }, + { + "name": "caret", + "type": "CaretInfo*" + } + ] + }, + { + "name": "_shaped_text_get_selection", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "start", + "type": "int", + "meta": "int64" + }, + { + "name": "end", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_hit_test_grapheme", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "coord", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_shaped_text_hit_test_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "coord", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_shaped_text_draw", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "clip_l", + "type": "float", + "meta": "double" + }, + { + "name": "clip_r", + "type": "float", + "meta": "double" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "_shaped_text_draw_outline", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "canvas", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "clip_l", + "type": "float", + "meta": "double" + }, + { + "name": "clip_r", + "type": "float", + "meta": "double" + }, + { + "name": "outline_size", + "type": "int", + "meta": "int64" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "_shaped_text_get_grapheme_bounds", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_next_grapheme_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_shaped_text_prev_grapheme_pos", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "shaped", + "type": "RID" + }, + { + "name": "pos", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_format_number", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_parse_number", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_percent_sign", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_strip_diacritics", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "_is_valid_identifier", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "_string_get_word_breaks", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + }, + { + "name": "chars_per_line", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "_is_confusable", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "dict", + "type": "PackedStringArray" + } + ] + }, + { + "name": "_spoof_check", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "string", + "type": "String" + } + ] + }, + { + "name": "_string_to_upper", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_string_to_lower", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "string", + "type": "String" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "_parse_structured_text", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Vector3i" + }, + "arguments": [ + { + "name": "parser_type", + "type": "enum::TextServer.StructuredTextParser" + }, + { + "name": "args", + "type": "Array" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "_cleanup", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + } + ] + }, + { + "name": "TextServerManager", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "add_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1799689403, + "arguments": [ + { + "name": "interface", + "type": "TextServer" + } + ] + }, + { + "name": "get_interface_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "remove_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1799689403, + "arguments": [ + { + "name": "interface", + "type": "TextServer" + } + ] + }, + { + "name": "get_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1672475555, + "return_value": { + "type": "TextServer" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_interfaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "find_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240905781, + "return_value": { + "type": "TextServer" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_primary_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1799689403, + "arguments": [ + { + "name": "index", + "type": "TextServer" + } + ] + }, + { + "name": "get_primary_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 905850878, + "return_value": { + "type": "TextServer" + } + } + ], + "signals": [ + { + "name": "interface_added", + "arguments": [ + { + "name": "interface_name", + "type": "StringName" + } + ] + }, + { + "name": "interface_removed", + "arguments": [ + { + "name": "interface_name", + "type": "StringName" + } + ] + } + ] + }, + { + "name": "Texture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core" + }, + { + "name": "Texture2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture", + "api_type": "core", + "methods": [ + { + "name": "_get_width", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_is_pixel_opaque", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "x", + "type": "int", + "meta": "int32" + }, + { + "name": "y", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_has_alpha", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_draw", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "pos", + "type": "Vector2" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + } + ] + }, + { + "name": "_draw_rect", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "tile", + "type": "bool" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + } + ] + }, + { + "name": "_draw_rect_region", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "to_canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color" + }, + { + "name": "transpose", + "type": "bool" + }, + { + "name": "clip_uv", + "type": "bool" + } + ] + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "has_alpha", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1115460088, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "position", + "type": "Vector2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 575156982, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "tile", + "type": "bool" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "draw_rect_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1066564656, + "arguments": [ + { + "name": "canvas_item", + "type": "RID" + }, + { + "name": "rect", + "type": "Rect2" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "modulate", + "type": "Color", + "default_value": "Color(1, 1, 1, 1)" + }, + { + "name": "transpose", + "type": "bool", + "default_value": "false" + }, + { + "name": "clip_uv", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_image", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4190603485, + "return_value": { + "type": "Image" + } + }, + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ] + }, + { + "name": "Texture2DArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "ImageTextureLayered", + "api_type": "core", + "methods": [ + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ] + }, + { + "name": "Texture3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture", + "api_type": "core", + "methods": [ + { + "name": "_get_format", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "_get_width", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_depth", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_has_mipmaps", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "typedarray::Image" + } + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3847873762, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_depth", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Image" + } + }, + { + "name": "create_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 121922552, + "return_value": { + "type": "Resource" + } + } + ] + }, + { + "name": "TextureButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "BaseButton", + "api_type": "core", + "enums": [ + { + "name": "StretchMode", + "is_bitfield": false, + "values": [ + { + "name": "STRETCH_SCALE", + "value": 0 + }, + { + "name": "STRETCH_TILE", + "value": 1 + }, + { + "name": "STRETCH_KEEP", + "value": 2 + }, + { + "name": "STRETCH_KEEP_CENTERED", + "value": 3 + }, + { + "name": "STRETCH_KEEP_ASPECT", + "value": 4 + }, + { + "name": "STRETCH_KEEP_ASPECT_CENTERED", + "value": 5 + }, + { + "name": "STRETCH_KEEP_ASPECT_COVERED", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_texture_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_texture_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_texture_hover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_texture_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_texture_focused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "set_click_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 698588216, + "arguments": [ + { + "name": "mask", + "type": "BitMap" + } + ] + }, + { + "name": "set_ignore_texture_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ignore", + "type": "bool" + } + ] + }, + { + "name": "set_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 252530840, + "arguments": [ + { + "name": "mode", + "type": "enum::TextureButton.StretchMode" + } + ] + }, + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_texture_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_texture_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_texture_hover", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_texture_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_texture_focused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_click_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2459671998, + "return_value": { + "type": "BitMap" + } + }, + { + "name": "get_ignore_texture_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 33815122, + "return_value": { + "type": "enum::TextureButton.StretchMode" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture_normal", + "setter": "set_texture_normal", + "getter": "get_texture_normal" + }, + { + "type": "Texture2D", + "name": "texture_pressed", + "setter": "set_texture_pressed", + "getter": "get_texture_pressed" + }, + { + "type": "Texture2D", + "name": "texture_hover", + "setter": "set_texture_hover", + "getter": "get_texture_hover" + }, + { + "type": "Texture2D", + "name": "texture_disabled", + "setter": "set_texture_disabled", + "getter": "get_texture_disabled" + }, + { + "type": "Texture2D", + "name": "texture_focused", + "setter": "set_texture_focused", + "getter": "get_texture_focused" + }, + { + "type": "BitMap", + "name": "texture_click_mask", + "setter": "set_click_mask", + "getter": "get_click_mask" + }, + { + "type": "bool", + "name": "ignore_texture_size", + "setter": "set_ignore_texture_size", + "getter": "get_ignore_texture_size" + }, + { + "type": "int", + "name": "stretch_mode", + "setter": "set_stretch_mode", + "getter": "get_stretch_mode" + }, + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "is_flipped_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "is_flipped_v" + } + ] + }, + { + "name": "TextureLayered", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture", + "api_type": "core", + "enums": [ + { + "name": "LayeredType", + "is_bitfield": false, + "values": [ + { + "name": "LAYERED_TYPE_2D_ARRAY", + "value": 0 + }, + { + "name": "LAYERED_TYPE_CUBEMAP", + "value": 1 + }, + { + "name": "LAYERED_TYPE_CUBEMAP_ARRAY", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "_get_format", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "_get_layered_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_get_width", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_height", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_layers", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_has_mipmaps", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_layer_data", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_format", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3847873762, + "return_value": { + "type": "enum::Image.Format" + } + }, + { + "name": "get_layered_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 518123893, + "return_value": { + "type": "enum::TextureLayered.LayeredType" + } + }, + { + "name": "get_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_mipmaps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_layer_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3655284255, + "return_value": { + "type": "Image" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "TextureProgressBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Range", + "api_type": "core", + "enums": [ + { + "name": "FillMode", + "is_bitfield": false, + "values": [ + { + "name": "FILL_LEFT_TO_RIGHT", + "value": 0 + }, + { + "name": "FILL_RIGHT_TO_LEFT", + "value": 1 + }, + { + "name": "FILL_TOP_TO_BOTTOM", + "value": 2 + }, + { + "name": "FILL_BOTTOM_TO_TOP", + "value": 3 + }, + { + "name": "FILL_CLOCKWISE", + "value": 4 + }, + { + "name": "FILL_COUNTER_CLOCKWISE", + "value": 5 + }, + { + "name": "FILL_BILINEAR_LEFT_AND_RIGHT", + "value": 6 + }, + { + "name": "FILL_BILINEAR_TOP_AND_BOTTOM", + "value": 7 + }, + { + "name": "FILL_CLOCKWISE_AND_COUNTER_CLOCKWISE", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "set_under_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "tex", + "type": "Texture2D" + } + ] + }, + { + "name": "get_under_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_progress_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "tex", + "type": "Texture2D" + } + ] + }, + { + "name": "get_progress_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_over_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "tex", + "type": "Texture2D" + } + ] + }, + { + "name": "get_over_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_fill_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mode", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fill_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_tint_under", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "tint", + "type": "Color" + } + ] + }, + { + "name": "get_tint_under", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_tint_progress", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "tint", + "type": "Color" + } + ] + }, + { + "name": "get_tint_progress", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_tint_over", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "tint", + "type": "Color" + } + ] + }, + { + "name": "get_tint_over", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_texture_progress_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_texture_progress_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_radial_initial_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mode", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radial_initial_angle", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_center_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "mode", + "type": "Vector2" + } + ] + }, + { + "name": "get_radial_center_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_fill_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "mode", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fill_degrees", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_stretch_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 437707142, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + }, + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_stretch_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1983885014, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "margin", + "type": "enum::Side" + } + ] + }, + { + "name": "set_nine_patch_stretch", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "stretch", + "type": "bool" + } + ] + }, + { + "name": "get_nine_patch_stretch", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "fill_mode", + "setter": "set_fill_mode", + "getter": "get_fill_mode" + }, + { + "type": "bool", + "name": "nine_patch_stretch", + "setter": "set_nine_patch_stretch", + "getter": "get_nine_patch_stretch" + }, + { + "type": "int", + "name": "stretch_margin_left", + "setter": "set_stretch_margin", + "getter": "get_stretch_margin", + "index": 0 + }, + { + "type": "int", + "name": "stretch_margin_top", + "setter": "set_stretch_margin", + "getter": "get_stretch_margin", + "index": 1 + }, + { + "type": "int", + "name": "stretch_margin_right", + "setter": "set_stretch_margin", + "getter": "get_stretch_margin", + "index": 2 + }, + { + "type": "int", + "name": "stretch_margin_bottom", + "setter": "set_stretch_margin", + "getter": "get_stretch_margin", + "index": 3 + }, + { + "type": "Texture2D", + "name": "texture_under", + "setter": "set_under_texture", + "getter": "get_under_texture" + }, + { + "type": "Texture2D", + "name": "texture_over", + "setter": "set_over_texture", + "getter": "get_over_texture" + }, + { + "type": "Texture2D", + "name": "texture_progress", + "setter": "set_progress_texture", + "getter": "get_progress_texture" + }, + { + "type": "Vector2", + "name": "texture_progress_offset", + "setter": "set_texture_progress_offset", + "getter": "get_texture_progress_offset" + }, + { + "type": "Color", + "name": "tint_under", + "setter": "set_tint_under", + "getter": "get_tint_under" + }, + { + "type": "Color", + "name": "tint_over", + "setter": "set_tint_over", + "getter": "get_tint_over" + }, + { + "type": "Color", + "name": "tint_progress", + "setter": "set_tint_progress", + "getter": "get_tint_progress" + }, + { + "type": "float", + "name": "radial_initial_angle", + "setter": "set_radial_initial_angle", + "getter": "get_radial_initial_angle" + }, + { + "type": "float", + "name": "radial_fill_degrees", + "setter": "set_fill_degrees", + "getter": "get_fill_degrees" + }, + { + "type": "Vector2", + "name": "radial_center_offset", + "setter": "set_radial_center_offset", + "getter": "get_radial_center_offset" + } + ] + }, + { + "name": "TextureRect", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "ExpandMode", + "is_bitfield": false, + "values": [ + { + "name": "EXPAND_KEEP_SIZE", + "value": 0 + }, + { + "name": "EXPAND_IGNORE_SIZE", + "value": 1 + }, + { + "name": "EXPAND_FIT_WIDTH", + "value": 2 + }, + { + "name": "EXPAND_FIT_WIDTH_PROPORTIONAL", + "value": 3 + }, + { + "name": "EXPAND_FIT_HEIGHT", + "value": 4 + }, + { + "name": "EXPAND_FIT_HEIGHT_PROPORTIONAL", + "value": 5 + } + ] + }, + { + "name": "StretchMode", + "is_bitfield": false, + "values": [ + { + "name": "STRETCH_SCALE", + "value": 0 + }, + { + "name": "STRETCH_TILE", + "value": 1 + }, + { + "name": "STRETCH_KEEP", + "value": 2 + }, + { + "name": "STRETCH_KEEP_CENTERED", + "value": 3 + }, + { + "name": "STRETCH_KEEP_ASPECT", + "value": 4 + }, + { + "name": "STRETCH_KEEP_ASPECT_CENTERED", + "value": 5 + }, + { + "name": "STRETCH_KEEP_ASPECT_COVERED", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_expand_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1870766882, + "arguments": [ + { + "name": "expand_mode", + "type": "enum::TextureRect.ExpandMode" + } + ] + }, + { + "name": "get_expand_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3863824733, + "return_value": { + "type": "enum::TextureRect.ExpandMode" + } + }, + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_flipped_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_stretch_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 58788729, + "arguments": [ + { + "name": "stretch_mode", + "type": "enum::TextureRect.StretchMode" + } + ] + }, + { + "name": "get_stretch_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 346396079, + "return_value": { + "type": "enum::TextureRect.StretchMode" + } + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "int", + "name": "expand_mode", + "setter": "set_expand_mode", + "getter": "get_expand_mode" + }, + { + "type": "int", + "name": "stretch_mode", + "setter": "set_stretch_mode", + "getter": "get_stretch_mode" + }, + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "is_flipped_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "is_flipped_v" + } + ] + }, + { + "name": "Theme", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "DataType", + "is_bitfield": false, + "values": [ + { + "name": "DATA_TYPE_COLOR", + "value": 0 + }, + { + "name": "DATA_TYPE_CONSTANT", + "value": 1 + }, + { + "name": "DATA_TYPE_FONT", + "value": 2 + }, + { + "name": "DATA_TYPE_FONT_SIZE", + "value": 3 + }, + { + "name": "DATA_TYPE_ICON", + "value": 4 + }, + { + "name": "DATA_TYPE_STYLEBOX", + "value": 5 + }, + { + "name": "DATA_TYPE_MAX", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2188371082, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 934555193, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_icon_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_icon_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2075907568, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "texture", + "type": "StyleBox" + } + ] + }, + { + "name": "get_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3405608165, + "return_value": { + "type": "StyleBox" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_stylebox_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_stylebox_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 177292320, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3445063586, + "return_value": { + "type": "Font" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_font_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_font_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 281601298, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2419549490, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_font_size_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_font_size_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4111215154, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2015923404, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_color_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_color_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 281601298, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "constant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2419549490, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 642128662, + "arguments": [ + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_constant_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4291131558, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_constant_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_default_base_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "base_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_default_base_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "has_default_base_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_default_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "has_default_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_default_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_default_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_theme_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2492983623, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_theme_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2191024021, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_item", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1739311056, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "rename_theme_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900867553, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "old_name", + "type": "StringName" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_theme_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2965505587, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_theme_item_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3726716710, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + }, + { + "name": "theme_type", + "type": "String" + } + ] + }, + { + "name": "get_theme_item_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1316004935, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "data_type", + "type": "enum::Theme.DataType" + } + ] + }, + { + "name": "set_type_variation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3740211285, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "base_type", + "type": "StringName" + } + ] + }, + { + "name": "is_type_variation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 471820014, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + }, + { + "name": "base_type", + "type": "StringName" + } + ] + }, + { + "name": "clear_type_variation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_type_variation_base", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_type_variation_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1761182771, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "base_type", + "type": "StringName" + } + ] + }, + { + "name": "add_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "remove_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_type_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "merge_with", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2326690814, + "arguments": [ + { + "name": "other", + "type": "Theme" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "float", + "name": "default_base_scale", + "setter": "set_default_base_scale", + "getter": "get_default_base_scale" + }, + { + "type": "Font", + "name": "default_font", + "setter": "set_default_font", + "getter": "get_default_font" + }, + { + "type": "int", + "name": "default_font_size", + "setter": "set_default_font_size", + "getter": "get_default_font_size" + } + ] + }, + { + "name": "ThemeDB", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "get_default_theme", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 754276358, + "return_value": { + "type": "Theme" + } + }, + { + "name": "get_project_theme", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 754276358, + "return_value": { + "type": "Theme" + } + }, + { + "name": "set_fallback_base_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "base_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fallback_base_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 191475506, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fallback_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1262170328, + "arguments": [ + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_fallback_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3656929885, + "return_value": { + "type": "Font" + } + }, + { + "name": "set_fallback_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_fallback_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_fallback_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "icon", + "type": "Texture2D" + } + ] + }, + { + "name": "get_fallback_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 255860311, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_fallback_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2797200388, + "arguments": [ + { + "name": "stylebox", + "type": "StyleBox" + } + ] + }, + { + "name": "get_fallback_stylebox", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 496040854, + "return_value": { + "type": "StyleBox" + } + } + ], + "signals": [ + { + "name": "fallback_changed" + } + ], + "properties": [ + { + "type": "float", + "name": "fallback_base_scale", + "setter": "set_fallback_base_scale", + "getter": "get_fallback_base_scale" + }, + { + "type": "Font", + "name": "fallback_font", + "setter": "set_fallback_font", + "getter": "get_fallback_font" + }, + { + "type": "int", + "name": "fallback_font_size", + "setter": "set_fallback_font_size", + "getter": "get_fallback_font_size" + }, + { + "type": "Texture2D", + "name": "fallback_icon", + "setter": "set_fallback_icon", + "getter": "get_fallback_icon" + }, + { + "type": "StyleBox", + "name": "fallback_stylebox", + "setter": "set_fallback_stylebox", + "getter": "get_fallback_stylebox" + } + ] + }, + { + "name": "Thread", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "Priority", + "is_bitfield": false, + "values": [ + { + "name": "PRIORITY_LOW", + "value": 0 + }, + { + "name": "PRIORITY_NORMAL", + "value": 1 + }, + { + "name": "PRIORITY_HIGH", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2779832528, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "callable", + "type": "Callable" + }, + { + "name": "priority", + "type": "enum::Thread.Priority", + "default_value": "1" + } + ] + }, + { + "name": "get_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_started", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_alive", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "wait_to_finish", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1460262497, + "return_value": { + "type": "Variant" + } + } + ] + }, + { + "name": "TileData", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "set_flip_h", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_h", + "type": "bool" + } + ] + }, + { + "name": "get_flip_h", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_flip_v", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "flip_v", + "type": "bool" + } + ] + }, + { + "name": "get_flip_v", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_transpose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "transpose", + "type": "bool" + } + ] + }, + { + "name": "get_transpose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2757459619, + "arguments": [ + { + "name": "material", + "type": "Material" + } + ] + }, + { + "name": "get_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 5934680, + "return_value": { + "type": "Material" + } + }, + { + "name": "set_texture_origin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "texture_origin", + "type": "Vector2i" + } + ] + }, + { + "name": "get_texture_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + }, + { + "name": "set_z_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "z_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_z_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_y_sort_origin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "y_sort_origin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_y_sort_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_occluder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 914399637, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "occluder_polygon", + "type": "OccluderPolygon2D" + } + ] + }, + { + "name": "get_occluder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2458574231, + "return_value": { + "type": "OccluderPolygon2D" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_constant_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 163021252, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "velocity", + "type": "Vector2" + } + ] + }, + { + "name": "get_constant_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2299179447, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_constant_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "velocity", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constant_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_polygons_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygons_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_collision_polygons_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_collision_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_collision_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_polygon_points", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3230546541, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_collision_polygon_points", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 103942801, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_polygon_one_way", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + }, + { + "name": "one_way", + "type": "bool" + } + ] + }, + { + "name": "is_collision_polygon_one_way", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_polygon_one_way_margin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3506521499, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + }, + { + "name": "one_way_margin", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_collision_polygon_one_way_margin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3085491603, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "polygon_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_terrain_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_terrain_set", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_terrain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "terrain", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_terrain", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_terrain_peering_bit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1084452308, + "arguments": [ + { + "name": "peering_bit", + "type": "enum::TileSet.CellNeighbor" + }, + { + "name": "terrain", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_terrain_peering_bit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3831796792, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "peering_bit", + "type": "enum::TileSet.CellNeighbor" + } + ] + }, + { + "name": "set_navigation_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2224691167, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "navigation_polygon", + "type": "NavigationPolygon" + } + ] + }, + { + "name": "get_navigation_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3991786031, + "return_value": { + "type": "NavigationPolygon" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_probability", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "probability", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_probability", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_custom_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 402577236, + "arguments": [ + { + "name": "layer_name", + "type": "String" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_custom_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1868160156, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "layer_name", + "type": "String" + } + ] + }, + { + "name": "set_custom_data_by_layer_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "get_custom_data_by_layer_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "layer_id", + "type": "int", + "meta": "int32" + } + ] + } + ], + "signals": [ + { + "name": "changed" + } + ], + "properties": [ + { + "type": "bool", + "name": "flip_h", + "setter": "set_flip_h", + "getter": "get_flip_h" + }, + { + "type": "bool", + "name": "flip_v", + "setter": "set_flip_v", + "getter": "get_flip_v" + }, + { + "type": "bool", + "name": "transpose", + "setter": "set_transpose", + "getter": "get_transpose" + }, + { + "type": "Vector2i", + "name": "texture_origin", + "setter": "set_texture_origin", + "getter": "get_texture_origin" + }, + { + "type": "Color", + "name": "modulate", + "setter": "set_modulate", + "getter": "get_modulate" + }, + { + "type": "CanvasItemMaterial,ShaderMaterial", + "name": "material", + "setter": "set_material", + "getter": "get_material" + }, + { + "type": "int", + "name": "z_index", + "setter": "set_z_index", + "getter": "get_z_index" + }, + { + "type": "int", + "name": "y_sort_origin", + "setter": "set_y_sort_origin", + "getter": "get_y_sort_origin" + }, + { + "type": "int", + "name": "terrain_set", + "setter": "set_terrain_set", + "getter": "get_terrain_set" + }, + { + "type": "int", + "name": "terrain", + "setter": "set_terrain", + "getter": "get_terrain" + }, + { + "type": "float", + "name": "probability", + "setter": "set_probability", + "getter": "get_probability" + } + ] + }, + { + "name": "TileMap", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "VisibilityMode", + "is_bitfield": false, + "values": [ + { + "name": "VISIBILITY_MODE_DEFAULT", + "value": 0 + }, + { + "name": "VISIBILITY_MODE_FORCE_HIDE", + "value": 2 + }, + { + "name": "VISIBILITY_MODE_FORCE_SHOW", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "_use_tile_data_runtime_update", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "_tile_data_runtime_update", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "tile_data", + "type": "TileData" + } + ] + }, + { + "name": "set_tileset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 774531446, + "arguments": [ + { + "name": "tileset", + "type": "TileSet" + } + ] + }, + { + "name": "get_tileset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2678226422, + "return_value": { + "type": "TileSet" + } + }, + { + "name": "set_quadrant_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_quadrant_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_layers_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "move_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_layer_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_layer_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_layer_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_y_sort_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "y_sort_enabled", + "type": "bool" + } + ] + }, + { + "name": "is_layer_y_sort_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_y_sort_origin", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "y_sort_origin", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_layer_y_sort_origin", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_layer_z_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "z_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_layer_z_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_collision_animatable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_collision_animatable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collision_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3193440636, + "arguments": [ + { + "name": "collision_visibility_mode", + "type": "enum::TileMap.VisibilityMode" + } + ] + }, + { + "name": "get_collision_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2026313073, + "return_value": { + "type": "enum::TileMap.VisibilityMode" + } + }, + { + "name": "set_navigation_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3193440636, + "arguments": [ + { + "name": "navigation_visibility_mode", + "type": "enum::TileMap.VisibilityMode" + } + ] + }, + { + "name": "get_navigation_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2026313073, + "return_value": { + "type": "enum::TileMap.VisibilityMode" + } + }, + { + "name": "set_navigation_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4040184819, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "map", + "type": "RID" + } + ] + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 495598643, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1732664643, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "source_id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "erase_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311374912, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_source_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 551761942, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "use_proxies", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_cell_atlas_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1869815066, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "use_proxies", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_cell_alternative_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 551761942, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "use_proxies", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_cell_tile_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2849631287, + "return_value": { + "type": "TileData" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "use_proxies", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_coords_for_body_rid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 291584212, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "body", + "type": "RID" + } + ] + }, + { + "name": "get_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2833570986, + "return_value": { + "type": "TileMapPattern" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_array", + "type": "typedarray::Vector2i" + } + ] + }, + { + "name": "map_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1864516957, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "position_in_tilemap", + "type": "Vector2i" + }, + { + "name": "coords_in_pattern", + "type": "Vector2i" + }, + { + "name": "pattern", + "type": "TileMapPattern" + } + ] + }, + { + "name": "set_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1195853946, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2i" + }, + { + "name": "pattern", + "type": "TileMapPattern" + } + ] + }, + { + "name": "set_cells_terrain_connect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3072115677, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "cells", + "type": "typedarray::Vector2i" + }, + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain", + "type": "int", + "meta": "int32" + }, + { + "name": "ignore_empty_terrains", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_cells_terrain_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3072115677, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "path", + "type": "typedarray::Vector2i" + }, + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain", + "type": "int", + "meta": "int32" + }, + { + "name": "ignore_empty_terrains", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "fix_invalid_tiles", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "force_update", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_surrounding_cells", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2673526557, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_used_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_used_cells_by_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4152068407, + "return_value": { + "type": "typedarray::Vector2i" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "int32" + }, + { + "name": "source_id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_used_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2024035737, + "return_value": { + "type": "Rect2i" + } + }, + { + "name": "map_to_local", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 108438297, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "map_position", + "type": "Vector2i" + } + ] + }, + { + "name": "local_to_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 837806996, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "local_position", + "type": "Vector2" + } + ] + }, + { + "name": "get_neighbor_cell", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 986575103, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "neighbor", + "type": "enum::TileSet.CellNeighbor" + } + ] + } + ], + "signals": [ + { + "name": "changed" + } + ], + "properties": [ + { + "type": "TileSet", + "name": "tile_set", + "setter": "set_tileset", + "getter": "get_tileset" + }, + { + "type": "int", + "name": "cell_quadrant_size", + "setter": "set_quadrant_size", + "getter": "get_quadrant_size" + }, + { + "type": "bool", + "name": "collision_animatable", + "setter": "set_collision_animatable", + "getter": "is_collision_animatable" + }, + { + "type": "int", + "name": "collision_visibility_mode", + "setter": "set_collision_visibility_mode", + "getter": "get_collision_visibility_mode" + }, + { + "type": "int", + "name": "navigation_visibility_mode", + "setter": "set_navigation_visibility_mode", + "getter": "get_navigation_visibility_mode" + } + ] + }, + { + "name": "TileMapPattern", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "set_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 634000503, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "source_id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "has_cell", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900751641, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "remove_cell", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4153096796, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + }, + { + "name": "update_size", + "type": "bool" + } + ] + }, + { + "name": "get_cell_source_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_atlas_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050897911, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_cell_alternative_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_used_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Vector2i" + } + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "is_empty", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ] + }, + { + "name": "TileSet", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "TileShape", + "is_bitfield": false, + "values": [ + { + "name": "TILE_SHAPE_SQUARE", + "value": 0 + }, + { + "name": "TILE_SHAPE_ISOMETRIC", + "value": 1 + }, + { + "name": "TILE_SHAPE_HALF_OFFSET_SQUARE", + "value": 2 + }, + { + "name": "TILE_SHAPE_HEXAGON", + "value": 3 + } + ] + }, + { + "name": "TileLayout", + "is_bitfield": false, + "values": [ + { + "name": "TILE_LAYOUT_STACKED", + "value": 0 + }, + { + "name": "TILE_LAYOUT_STACKED_OFFSET", + "value": 1 + }, + { + "name": "TILE_LAYOUT_STAIRS_RIGHT", + "value": 2 + }, + { + "name": "TILE_LAYOUT_STAIRS_DOWN", + "value": 3 + }, + { + "name": "TILE_LAYOUT_DIAMOND_RIGHT", + "value": 4 + }, + { + "name": "TILE_LAYOUT_DIAMOND_DOWN", + "value": 5 + } + ] + }, + { + "name": "TileOffsetAxis", + "is_bitfield": false, + "values": [ + { + "name": "TILE_OFFSET_AXIS_HORIZONTAL", + "value": 0 + }, + { + "name": "TILE_OFFSET_AXIS_VERTICAL", + "value": 1 + } + ] + }, + { + "name": "CellNeighbor", + "is_bitfield": false, + "values": [ + { + "name": "CELL_NEIGHBOR_RIGHT_SIDE", + "value": 0 + }, + { + "name": "CELL_NEIGHBOR_RIGHT_CORNER", + "value": 1 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_RIGHT_SIDE", + "value": 2 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_RIGHT_CORNER", + "value": 3 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_SIDE", + "value": 4 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_CORNER", + "value": 5 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_LEFT_SIDE", + "value": 6 + }, + { + "name": "CELL_NEIGHBOR_BOTTOM_LEFT_CORNER", + "value": 7 + }, + { + "name": "CELL_NEIGHBOR_LEFT_SIDE", + "value": 8 + }, + { + "name": "CELL_NEIGHBOR_LEFT_CORNER", + "value": 9 + }, + { + "name": "CELL_NEIGHBOR_TOP_LEFT_SIDE", + "value": 10 + }, + { + "name": "CELL_NEIGHBOR_TOP_LEFT_CORNER", + "value": 11 + }, + { + "name": "CELL_NEIGHBOR_TOP_SIDE", + "value": 12 + }, + { + "name": "CELL_NEIGHBOR_TOP_CORNER", + "value": 13 + }, + { + "name": "CELL_NEIGHBOR_TOP_RIGHT_SIDE", + "value": 14 + }, + { + "name": "CELL_NEIGHBOR_TOP_RIGHT_CORNER", + "value": 15 + } + ] + }, + { + "name": "TerrainMode", + "is_bitfield": false, + "values": [ + { + "name": "TERRAIN_MODE_MATCH_CORNERS_AND_SIDES", + "value": 0 + }, + { + "name": "TERRAIN_MODE_MATCH_CORNERS", + "value": 1 + }, + { + "name": "TERRAIN_MODE_MATCH_SIDES", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_next_source_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 276991387, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "source", + "type": "TileSetSource" + }, + { + "name": "atlas_source_id_override", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_source_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "source_id", + "type": "int", + "meta": "int32" + }, + { + "name": "new_source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_source_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_source_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1763540252, + "return_value": { + "type": "TileSetSource" + }, + "arguments": [ + { + "name": "source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tile_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2131427112, + "arguments": [ + { + "name": "shape", + "type": "enum::TileSet.TileShape" + } + ] + }, + { + "name": "get_tile_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 716918169, + "return_value": { + "type": "enum::TileSet.TileShape" + } + }, + { + "name": "set_tile_layout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1071216679, + "arguments": [ + { + "name": "layout", + "type": "enum::TileSet.TileLayout" + } + ] + }, + { + "name": "get_tile_layout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194628839, + "return_value": { + "type": "enum::TileSet.TileLayout" + } + }, + { + "name": "set_tile_offset_axis", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3300198521, + "arguments": [ + { + "name": "alignment", + "type": "enum::TileSet.TileOffsetAxis" + } + ] + }, + { + "name": "get_tile_offset_axis", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 762494114, + "return_value": { + "type": "enum::TileSet.TileOffsetAxis" + } + }, + { + "name": "set_tile_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_tile_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_uv_clipping", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "uv_clipping", + "type": "bool" + } + ] + }, + { + "name": "is_uv_clipping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_occlusion_layers_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_occlusion_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_occlusion_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_occlusion_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_occlusion_layer_light_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "light_mask", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_occlusion_layer_light_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_occlusion_layer_sdf_collision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "sdf_collision", + "type": "bool" + } + ] + }, + { + "name": "get_occlusion_layer_sdf_collision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_physics_layers_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_physics_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_physics_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_physics_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_physics_layer_collision_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_physics_layer_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_physics_layer_collision_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_physics_layer_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_physics_layer_physics_material", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1018687357, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "physics_material", + "type": "PhysicsMaterial" + } + ] + }, + { + "name": "get_physics_layer_physics_material", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 788318639, + "return_value": { + "type": "PhysicsMaterial" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_terrain_sets_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_terrain_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_terrain_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_terrain_set", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_terrain_set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3943003916, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::TileSet.TerrainMode" + } + ] + }, + { + "name": "get_terrain_set_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2084469411, + "return_value": { + "type": "enum::TileSet.TerrainMode" + }, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_terrains_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_terrain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3023605688, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_terrain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1649997291, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_terrain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_terrain_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_terrain_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391810591, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_terrain_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3733378741, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_terrain_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2165839948, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "terrain_set", + "type": "int", + "meta": "int32" + }, + { + "name": "terrain_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_navigation_layers_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_navigation_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_navigation_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_navigation_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_navigation_layer_layers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layers", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_navigation_layer_layers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_navigation_layer_layer_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_navigation_layer_layer_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_custom_data_layers_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "add_custom_data_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1025054187, + "arguments": [ + { + "name": "to_position", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "move_custom_data_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "to_position", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_custom_data_layer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_custom_data_layer_by_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "layer_name", + "type": "String" + } + ] + }, + { + "name": "set_custom_data_layer_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layer_name", + "type": "String" + } + ] + }, + { + "name": "get_custom_data_layer_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_data_layer_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3492912874, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + }, + { + "name": "layer_type", + "type": "enum::Variant.Type" + } + ] + }, + { + "name": "get_custom_data_layer_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2990820875, + "return_value": { + "type": "enum::Variant.Type" + }, + "arguments": [ + { + "name": "layer_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_source_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "source_to", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_source_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_source_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_source_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_coords_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1769939278, + "arguments": [ + { + "name": "p_source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "source_to", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_to", + "type": "Vector2i" + } + ] + }, + { + "name": "get_coords_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2856536371, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + } + ] + }, + { + "name": "has_coords_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3957903770, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + } + ] + }, + { + "name": "remove_coords_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311374912, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + } + ] + }, + { + "name": "set_alternative_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3862385460, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "alternative_from", + "type": "int", + "meta": "int32" + }, + { + "name": "source_to", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_to", + "type": "Vector2i" + }, + { + "name": "alternative_to", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_alternative_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2303761075, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "alternative_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_alternative_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 180086755, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "alternative_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_alternative_level_tile_proxy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2328951467, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "alternative_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "map_tile_proxy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4267935328, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "source_from", + "type": "int", + "meta": "int32" + }, + { + "name": "coords_from", + "type": "Vector2i" + }, + { + "name": "alternative_from", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "cleanup_invalid_tile_proxies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "clear_tile_proxies", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3009264082, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "pattern", + "type": "TileMapPattern" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4207737510, + "return_value": { + "type": "TileMapPattern" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_pattern", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_patterns_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "tile_shape", + "setter": "set_tile_shape", + "getter": "get_tile_shape" + }, + { + "type": "int", + "name": "tile_layout", + "setter": "set_tile_layout", + "getter": "get_tile_layout" + }, + { + "type": "int", + "name": "tile_offset_axis", + "setter": "set_tile_offset_axis", + "getter": "get_tile_offset_axis" + }, + { + "type": "Vector2i", + "name": "tile_size", + "setter": "set_tile_size", + "getter": "get_tile_size" + }, + { + "type": "bool", + "name": "uv_clipping", + "setter": "set_uv_clipping", + "getter": "is_uv_clipping" + } + ] + }, + { + "name": "TileSetAtlasSource", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TileSetSource", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_margins", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "margins", + "type": "Vector2i" + } + ] + }, + { + "name": "get_margins", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_separation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "separation", + "type": "Vector2i" + } + ] + }, + { + "name": "get_separation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_texture_region_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "texture_region_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_texture_region_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_use_texture_padding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use_texture_padding", + "type": "bool" + } + ] + }, + { + "name": "get_use_texture_padding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "create_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1583819816, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "size", + "type": "Vector2i", + "default_value": "Vector2i(1, 1)" + } + ] + }, + { + "name": "remove_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "move_tile_in_atlas", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1375626516, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "new_atlas_coords", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + }, + { + "name": "new_size", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + } + ] + }, + { + "name": "get_tile_size_in_atlas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050897911, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "has_room_for_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4182444377, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "size", + "type": "Vector2i" + }, + { + "name": "animation_columns", + "type": "int", + "meta": "int32" + }, + { + "name": "animation_separation", + "type": "Vector2i" + }, + { + "name": "frames_count", + "type": "int", + "meta": "int32" + }, + { + "name": "ignored_tile", + "type": "Vector2i", + "default_value": "Vector2i(-1, -1)" + } + ] + }, + { + "name": "get_tiles_to_be_removed_on_change", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1240378054, + "return_value": { + "type": "PackedVector2Array" + }, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + }, + { + "name": "margins", + "type": "Vector2i" + }, + { + "name": "separation", + "type": "Vector2i" + }, + { + "name": "texture_region_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_tile_at_coords", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050897911, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "set_tile_animation_columns", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200960707, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frame_columns", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tile_animation_columns", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "set_tile_animation_separation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1941061099, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "separation", + "type": "Vector2i" + } + ] + }, + { + "name": "get_tile_animation_separation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3050897911, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "set_tile_animation_speed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2262553149, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tile_animation_speed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 719993801, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "set_tile_animation_frames_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200960707, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frames_count", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tile_animation_frames_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "set_tile_animation_frame_duration", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2843487787, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frame_index", + "type": "int", + "meta": "int32" + }, + { + "name": "duration", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_tile_animation_frame_duration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1802448425, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frame_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tile_animation_total_duration", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 719993801, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "create_alternative_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3531100812, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "alternative_id_override", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "remove_alternative_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3200960707, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_alternative_tile_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1499785778, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32" + }, + { + "name": "new_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_next_alternative_tile_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_tile_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3534028207, + "return_value": { + "type": "TileData" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_atlas_grid_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "get_tile_texture_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321423751, + "return_value": { + "type": "Rect2i" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frame", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "get_runtime_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "get_runtime_tile_texture_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 104874263, + "return_value": { + "type": "Rect2i" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "frame", + "type": "int", + "meta": "int32" + } + ] + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "Vector2i", + "name": "margins", + "setter": "set_margins", + "getter": "get_margins" + }, + { + "type": "Vector2i", + "name": "separation", + "setter": "set_separation", + "getter": "get_separation" + }, + { + "type": "Vector2i", + "name": "texture_region_size", + "setter": "set_texture_region_size", + "getter": "get_texture_region_size" + }, + { + "type": "bool", + "name": "use_texture_padding", + "setter": "set_use_texture_padding", + "getter": "get_use_texture_padding" + } + ] + }, + { + "name": "TileSetScenesCollectionSource", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "TileSetSource", + "api_type": "core", + "methods": [ + { + "name": "get_scene_tiles_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_scene_tile_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3744713108, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_scene_tile_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "create_scene_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2633389122, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "packed_scene", + "type": "PackedScene" + }, + { + "name": "id_override", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "set_scene_tile_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "new_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_scene_tile_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3435852839, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "packed_scene", + "type": "PackedScene" + } + ] + }, + { + "name": "get_scene_tile_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 511017218, + "return_value": { + "type": "PackedScene" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_scene_tile_display_placeholder", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "display_placeholder", + "type": "bool" + } + ] + }, + { + "name": "get_scene_tile_display_placeholder", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_scene_tile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_next_scene_tile_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "TileSetSource", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_tiles_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_tile_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 880721226, + "return_value": { + "type": "Vector2i" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3900751641, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_alternative_tiles_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2485466453, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + } + ] + }, + { + "name": "get_alternative_tile_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 89881719, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_alternative_tile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1073731340, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "atlas_coords", + "type": "Vector2i" + }, + { + "name": "alternative_tile", + "type": "int", + "meta": "int32" + } + ] + } + ] + }, + { + "name": "Time", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "Month", + "is_bitfield": false, + "values": [ + { + "name": "MONTH_JANUARY", + "value": 1 + }, + { + "name": "MONTH_FEBRUARY", + "value": 2 + }, + { + "name": "MONTH_MARCH", + "value": 3 + }, + { + "name": "MONTH_APRIL", + "value": 4 + }, + { + "name": "MONTH_MAY", + "value": 5 + }, + { + "name": "MONTH_JUNE", + "value": 6 + }, + { + "name": "MONTH_JULY", + "value": 7 + }, + { + "name": "MONTH_AUGUST", + "value": 8 + }, + { + "name": "MONTH_SEPTEMBER", + "value": 9 + }, + { + "name": "MONTH_OCTOBER", + "value": 10 + }, + { + "name": "MONTH_NOVEMBER", + "value": 11 + }, + { + "name": "MONTH_DECEMBER", + "value": 12 + } + ] + }, + { + "name": "Weekday", + "is_bitfield": false, + "values": [ + { + "name": "WEEKDAY_SUNDAY", + "value": 0 + }, + { + "name": "WEEKDAY_MONDAY", + "value": 1 + }, + { + "name": "WEEKDAY_TUESDAY", + "value": 2 + }, + { + "name": "WEEKDAY_WEDNESDAY", + "value": 3 + }, + { + "name": "WEEKDAY_THURSDAY", + "value": 4 + }, + { + "name": "WEEKDAY_FRIDAY", + "value": 5 + }, + { + "name": "WEEKDAY_SATURDAY", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "get_datetime_dict_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_date_dict_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_time_dict_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3485342025, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_datetime_string_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2311239925, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + }, + { + "name": "use_space", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_date_string_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_time_string_from_unix_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "unix_time_val", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_datetime_dict_from_datetime_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3253569256, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "datetime", + "type": "String" + }, + { + "name": "weekday", + "type": "bool" + } + ] + }, + { + "name": "get_datetime_string_from_datetime_dict", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1898123706, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "datetime", + "type": "Dictionary" + }, + { + "name": "use_space", + "type": "bool" + } + ] + }, + { + "name": "get_unix_time_from_datetime_dict", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3021115443, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "datetime", + "type": "Dictionary" + } + ] + }, + { + "name": "get_unix_time_from_datetime_string", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1321353865, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "datetime", + "type": "String" + } + ] + }, + { + "name": "get_offset_string_from_offset_minutes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "offset_minutes", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_datetime_dict_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205769976, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_date_dict_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205769976, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_time_dict_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 205769976, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_datetime_string_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1136425492, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + }, + { + "name": "use_space", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_date_string_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1162154673, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_time_string_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1162154673, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "utc", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_time_zone_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3102165223, + "return_value": { + "type": "Dictionary" + } + }, + { + "name": "get_unix_time_from_system", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "get_ticks_msec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_ticks_usec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + } + ] + }, + { + "name": "Timer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "TimerProcessCallback", + "is_bitfield": false, + "values": [ + { + "name": "TIMER_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "TIMER_PROCESS_IDLE", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_wait_time", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "time_sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_wait_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_one_shot", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_one_shot", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_autostart", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_autostart", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "start", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1392008558, + "arguments": [ + { + "name": "time_sec", + "type": "float", + "meta": "double", + "default_value": "-1" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_paused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "paused", + "type": "bool" + } + ] + }, + { + "name": "is_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_stopped", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_time_left", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_timer_process_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3469495063, + "arguments": [ + { + "name": "callback", + "type": "enum::Timer.TimerProcessCallback" + } + ] + }, + { + "name": "get_timer_process_callback", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2672570227, + "return_value": { + "type": "enum::Timer.TimerProcessCallback" + } + } + ], + "signals": [ + { + "name": "timeout" + } + ], + "properties": [ + { + "type": "int", + "name": "process_callback", + "setter": "set_timer_process_callback", + "getter": "get_timer_process_callback" + }, + { + "type": "float", + "name": "wait_time", + "setter": "set_wait_time", + "getter": "get_wait_time" + }, + { + "type": "bool", + "name": "one_shot", + "setter": "set_one_shot", + "getter": "is_one_shot" + }, + { + "type": "bool", + "name": "autostart", + "setter": "set_autostart", + "getter": "has_autostart" + }, + { + "type": "bool", + "name": "paused", + "setter": "set_paused", + "getter": "is_paused" + }, + { + "type": "float", + "name": "time_left", + "getter": "get_time_left" + } + ] + }, + { + "name": "TorusMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_inner_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_inner_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_outer_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_outer_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_ring_segments", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_ring_segments", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "float", + "name": "inner_radius", + "setter": "set_inner_radius", + "getter": "get_inner_radius" + }, + { + "type": "float", + "name": "outer_radius", + "setter": "set_outer_radius", + "getter": "get_outer_radius" + }, + { + "type": "int", + "name": "rings", + "setter": "set_rings", + "getter": "get_rings" + }, + { + "type": "int", + "name": "ring_segments", + "setter": "set_ring_segments", + "getter": "get_ring_segments" + } + ] + }, + { + "name": "TouchScreenButton", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "enums": [ + { + "name": "VisibilityMode", + "is_bitfield": false, + "values": [ + { + "name": "VISIBILITY_ALWAYS", + "value": 0 + }, + { + "name": "VISIBILITY_TOUCHSCREEN_ONLY", + "value": 1 + } + ] + } + ], + "methods": [ + { + "name": "set_texture_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_pressed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_bitmask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 698588216, + "arguments": [ + { + "name": "bitmask", + "type": "BitMap" + } + ] + }, + { + "name": "get_bitmask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2459671998, + "return_value": { + "type": "BitMap" + } + }, + { + "name": "set_shape", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 771364740, + "arguments": [ + { + "name": "shape", + "type": "Shape2D" + } + ] + }, + { + "name": "get_shape", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 522005891, + "return_value": { + "type": "Shape2D" + } + }, + { + "name": "set_shape_centered", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "bool", + "type": "bool" + } + ] + }, + { + "name": "is_shape_centered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_shape_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "bool", + "type": "bool" + } + ] + }, + { + "name": "is_shape_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "action", + "type": "String" + } + ] + }, + { + "name": "get_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_visibility_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3031128463, + "arguments": [ + { + "name": "mode", + "type": "enum::TouchScreenButton.VisibilityMode" + } + ] + }, + { + "name": "get_visibility_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2558996468, + "return_value": { + "type": "enum::TouchScreenButton.VisibilityMode" + } + }, + { + "name": "set_passby_press", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_passby_press_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "pressed" + }, + { + "name": "released" + } + ], + "properties": [ + { + "type": "Texture2D", + "name": "texture_normal", + "setter": "set_texture_normal", + "getter": "get_texture_normal" + }, + { + "type": "Texture2D", + "name": "texture_pressed", + "setter": "set_texture_pressed", + "getter": "get_texture_pressed" + }, + { + "type": "BitMap", + "name": "bitmask", + "setter": "set_bitmask", + "getter": "get_bitmask" + }, + { + "type": "Shape2D", + "name": "shape", + "setter": "set_shape", + "getter": "get_shape" + }, + { + "type": "bool", + "name": "shape_centered", + "setter": "set_shape_centered", + "getter": "is_shape_centered" + }, + { + "type": "bool", + "name": "shape_visible", + "setter": "set_shape_visible", + "getter": "is_shape_visible" + }, + { + "type": "bool", + "name": "passby_press", + "setter": "set_passby_press", + "getter": "is_passby_press_enabled" + }, + { + "type": "StringName", + "name": "action", + "setter": "set_action", + "getter": "get_action" + }, + { + "type": "int", + "name": "visibility_mode", + "setter": "set_visibility_mode", + "getter": "get_visibility_mode" + } + ] + }, + { + "name": "Translation", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_get_plural_message", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "src_plural_message", + "type": "StringName" + }, + { + "name": "n", + "type": "int", + "meta": "int32" + }, + { + "name": "context", + "type": "StringName" + } + ] + }, + { + "name": "_get_message", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName" + } + ] + }, + { + "name": "set_locale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "get_locale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "add_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 971803314, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "xlated_message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "add_plural_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 360316719, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "xlated_messages", + "type": "PackedStringArray" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_message", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 58037827, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_plural_message", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1333931916, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "src_plural_message", + "type": "StringName" + }, + { + "name": "n", + "type": "int", + "meta": "int32" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "erase_message", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3919944288, + "arguments": [ + { + "name": "src_message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_message_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_translated_message_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_message_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Dictionary", + "name": "messages", + "setter": "_set_messages", + "getter": "_get_messages" + }, + { + "type": "String", + "name": "locale", + "setter": "set_locale", + "getter": "get_locale" + } + ] + }, + { + "name": "TranslationServer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "set_locale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "get_locale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_tool_locale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + }, + { + "name": "compare_locales", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878152881, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "locale_a", + "type": "String" + }, + { + "name": "locale_b", + "type": "String" + } + ] + }, + { + "name": "standardize_locale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "get_all_languages", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_language_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_all_scripts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_script_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "script", + "type": "String" + } + ] + }, + { + "name": "get_all_countries", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "get_country_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "country", + "type": "String" + } + ] + }, + { + "name": "get_locale_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "translate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 58037827, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "message", + "type": "StringName" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "translate_plural", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1333931916, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "message", + "type": "StringName" + }, + { + "name": "plural_message", + "type": "StringName" + }, + { + "name": "n", + "type": "int", + "meta": "int32" + }, + { + "name": "context", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "add_translation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1466479800, + "arguments": [ + { + "name": "translation", + "type": "Translation" + } + ] + }, + { + "name": "remove_translation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1466479800, + "arguments": [ + { + "name": "translation", + "type": "Translation" + } + ] + }, + { + "name": "get_translation_object", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2065240175, + "return_value": { + "type": "Translation" + }, + "arguments": [ + { + "name": "locale", + "type": "String" + } + ] + }, + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_loaded_locales", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "is_pseudolocalization_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_pseudolocalization_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "reload_pseudolocalization", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "pseudolocalize", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1965194235, + "return_value": { + "type": "StringName" + }, + "arguments": [ + { + "name": "message", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "pseudolocalization_enabled", + "setter": "set_pseudolocalization_enabled", + "getter": "is_pseudolocalization_enabled" + } + ] + }, + { + "name": "Tree", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "enums": [ + { + "name": "SelectMode", + "is_bitfield": false, + "values": [ + { + "name": "SELECT_SINGLE", + "value": 0 + }, + { + "name": "SELECT_ROW", + "value": 1 + }, + { + "name": "SELECT_MULTI", + "value": 2 + } + ] + }, + { + "name": "DropModeFlags", + "is_bitfield": false, + "values": [ + { + "name": "DROP_MODE_DISABLED", + "value": 0 + }, + { + "name": "DROP_MODE_ON_ITEM", + "value": 1 + }, + { + "name": "DROP_MODE_INBETWEEN", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "clear", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "create_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 528467046, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "parent", + "type": "TreeItem", + "default_value": "null" + }, + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_root", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "set_column_custom_minimum_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "min_width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_column_expand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "expand", + "type": "bool" + } + ] + }, + { + "name": "set_column_expand_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "ratio", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_column_clip_content", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_column_expanding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_column_clipping_content", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_column_expand_ratio", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_column_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_hide_root", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_root_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_next_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 873446299, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "from", + "type": "TreeItem" + } + ] + }, + { + "name": "get_selected", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "set_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2662547442, + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_selected_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_pressed_button", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_select_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3223887270, + "arguments": [ + { + "name": "mode", + "type": "enum::Tree.SelectMode" + } + ] + }, + { + "name": "get_select_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 100748571, + "return_value": { + "type": "enum::Tree.SelectMode" + } + }, + { + "name": "deselect_all", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_columns", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "amount", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_columns", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_edited", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "get_edited_column", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "edit_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_custom_popup_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "get_item_area_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1235226180, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "column", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_item_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4193340126, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_column_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_drop_section_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_button_id_at_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3820158470, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "ensure_cursor_is_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_column_titles_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "are_column_titles_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_column_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_column_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_column_title_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1707680378, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_column_title_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4235602388, + "return_value": { + "type": "enum::Control.TextDirection" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_column_title_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_column_title_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_scroll", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "scroll_to_item", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1314737213, + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "center_on_item", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_h_scroll_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "h_scroll", + "type": "bool" + } + ] + }, + { + "name": "is_h_scroll_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_v_scroll_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "h_scroll", + "type": "bool" + } + ] + }, + { + "name": "is_v_scroll_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_hide_folding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "hide", + "type": "bool" + } + ] + }, + { + "name": "is_folding_hidden", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_enable_recursive_folding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_recursive_folding_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_drop_mode_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "flags", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_drop_mode_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_allow_rmb_select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "get_allow_rmb_select", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_allow_reselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "allow", + "type": "bool" + } + ] + }, + { + "name": "get_allow_reselect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "item_selected" + }, + { + "name": "cell_selected" + }, + { + "name": "multi_selected", + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "column", + "type": "int" + }, + { + "name": "selected", + "type": "bool" + } + ] + }, + { + "name": "item_mouse_selected", + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "empty_clicked", + "arguments": [ + { + "name": "position", + "type": "Vector2" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "item_edited" + }, + { + "name": "custom_item_clicked", + "arguments": [ + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "item_icon_double_clicked" + }, + { + "name": "item_collapsed", + "arguments": [ + { + "name": "item", + "type": "TreeItem" + } + ] + }, + { + "name": "check_propagated_to_item", + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "column", + "type": "int" + } + ] + }, + { + "name": "button_clicked", + "arguments": [ + { + "name": "item", + "type": "TreeItem" + }, + { + "name": "column", + "type": "int" + }, + { + "name": "id", + "type": "int" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "custom_popup_edited", + "arguments": [ + { + "name": "arrow_clicked", + "type": "bool" + } + ] + }, + { + "name": "item_activated" + }, + { + "name": "column_title_clicked", + "arguments": [ + { + "name": "column", + "type": "int" + }, + { + "name": "mouse_button_index", + "type": "int" + } + ] + }, + { + "name": "nothing_selected" + } + ], + "properties": [ + { + "type": "int", + "name": "columns", + "setter": "set_columns", + "getter": "get_columns" + }, + { + "type": "bool", + "name": "column_titles_visible", + "setter": "set_column_titles_visible", + "getter": "are_column_titles_visible" + }, + { + "type": "bool", + "name": "allow_reselect", + "setter": "set_allow_reselect", + "getter": "get_allow_reselect" + }, + { + "type": "bool", + "name": "allow_rmb_select", + "setter": "set_allow_rmb_select", + "getter": "get_allow_rmb_select" + }, + { + "type": "bool", + "name": "hide_folding", + "setter": "set_hide_folding", + "getter": "is_folding_hidden" + }, + { + "type": "bool", + "name": "enable_recursive_folding", + "setter": "set_enable_recursive_folding", + "getter": "is_recursive_folding_enabled" + }, + { + "type": "bool", + "name": "hide_root", + "setter": "set_hide_root", + "getter": "is_root_hidden" + }, + { + "type": "int", + "name": "drop_mode_flags", + "setter": "set_drop_mode_flags", + "getter": "get_drop_mode_flags" + }, + { + "type": "int", + "name": "select_mode", + "setter": "set_select_mode", + "getter": "get_select_mode" + }, + { + "type": "bool", + "name": "scroll_horizontal_enabled", + "setter": "set_h_scroll_enabled", + "getter": "is_h_scroll_enabled" + }, + { + "type": "bool", + "name": "scroll_vertical_enabled", + "setter": "set_v_scroll_enabled", + "getter": "is_v_scroll_enabled" + } + ] + }, + { + "name": "TreeItem", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "TreeCellMode", + "is_bitfield": false, + "values": [ + { + "name": "CELL_MODE_STRING", + "value": 0 + }, + { + "name": "CELL_MODE_CHECK", + "value": 1 + }, + { + "name": "CELL_MODE_RANGE", + "value": 2 + }, + { + "name": "CELL_MODE_ICON", + "value": 3 + }, + { + "name": "CELL_MODE_CUSTOM", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_cell_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 289920701, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "mode", + "type": "enum::TreeItem.TreeCellMode" + } + ] + }, + { + "name": "get_cell_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3406114978, + "return_value": { + "type": "enum::TreeItem.TreeCellMode" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_checked", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "checked", + "type": "bool" + } + ] + }, + { + "name": "set_indeterminate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "indeterminate", + "type": "bool" + } + ] + }, + { + "name": "is_checked", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_indeterminate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "propagate_check", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4023243586, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "emit_signal", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_text_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1707680378, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "direction", + "type": "enum::Control.TextDirection" + } + ] + }, + { + "name": "get_text_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4235602388, + "return_value": { + "type": "enum::Control.TextDirection" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_structured_text_bidi_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 868756907, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "parser", + "type": "enum::TextServer.StructuredTextParser" + } + ] + }, + { + "name": "get_structured_text_bidi_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3377823772, + "return_value": { + "type": "enum::TextServer.StructuredTextParser" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_structured_text_bidi_override_options", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 537221740, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "args", + "type": "Array" + } + ] + }, + { + "name": "get_structured_text_bidi_override_options", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 663333327, + "return_value": { + "type": "Array" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_language", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "language", + "type": "String" + } + ] + }, + { + "name": "get_language", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_suffix", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "get_suffix", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_icon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 666127730, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3536238170, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_icon_region", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1356297692, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "region", + "type": "Rect2" + } + ] + }, + { + "name": "get_icon_region", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3327874267, + "return_value": { + "type": "Rect2" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_icon_max_width", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "width", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_icon_max_width", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_icon_modulate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "modulate", + "type": "Color" + } + ] + }, + { + "name": "get_icon_modulate", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1602489585, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339986948, + "return_value": { + "type": "float", + "meta": "double" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_range_config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1547181014, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "min", + "type": "float", + "meta": "double" + }, + { + "name": "max", + "type": "float", + "meta": "double" + }, + { + "name": "step", + "type": "float", + "meta": "double" + }, + { + "name": "expr", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_range_config", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3554694381, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_metadata", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2152698145, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "meta", + "type": "Variant" + } + ] + }, + { + "name": "get_metadata", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 272420368, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "object", + "type": "Object" + }, + { + "name": "callback", + "type": "StringName" + } + ] + }, + { + "name": "set_collapsed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_collapsed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_collapsed_recursive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_any_collapsed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2595650253, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "only_visible", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "uncollapse_tree", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_custom_minimum_height", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "height", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_custom_minimum_height", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_selectable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "selectable", + "type": "bool" + } + ] + }, + { + "name": "is_selectable", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "is_selected", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "select", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "deselect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_editable", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2878471219, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "get_custom_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_custom_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_font", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2637609184, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "get_custom_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4244553094, + "return_value": { + "type": "Font" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_font_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_custom_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 894174518, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + }, + { + "name": "just_outline", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "clear_custom_bg_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_custom_bg_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457211756, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_custom_as_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_custom_set_as_button", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1507727907, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button", + "type": "Texture2D" + }, + { + "name": "id", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "disabled", + "type": "bool", + "default_value": "false" + }, + { + "name": "tooltip_text", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_button_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_button_tooltip_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1391810591, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_button_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_button_by_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3175239445, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_button", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2584904275, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 176101966, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + }, + { + "name": "button", + "type": "Texture2D" + } + ] + }, + { + "name": "erase_button", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_button_disabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1383440665, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + }, + { + "name": "disabled", + "type": "bool" + } + ] + }, + { + "name": "set_button_color", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3733378741, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "is_button_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2522259332, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "button_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_tooltip_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "tooltip", + "type": "String" + } + ] + }, + { + "name": "get_tooltip_text", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_text_alignment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3276431499, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "text_alignment", + "type": "enum::HorizontalAlignment" + } + ] + }, + { + "name": "get_text_alignment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4171562184, + "return_value": { + "type": "enum::HorizontalAlignment" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_expand_right", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_expand_right", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "column", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_disable_folding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_folding_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "create_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 954243986, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32", + "default_value": "-1" + } + ] + }, + { + "name": "get_tree", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2243340556, + "return_value": { + "type": "Tree" + } + }, + { + "name": "get_next", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "get_prev", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2768121250, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "get_parent", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "get_first_child", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1514277247, + "return_value": { + "type": "TreeItem" + } + }, + { + "name": "get_next_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1666920593, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "wrap", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_prev_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1666920593, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "wrap", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 306700752, + "return_value": { + "type": "TreeItem" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_child_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_children", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "typedarray::TreeItem" + } + }, + { + "name": "get_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "move_before", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1819951137, + "arguments": [ + { + "name": "item", + "type": "TreeItem" + } + ] + }, + { + "name": "move_after", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1819951137, + "arguments": [ + { + "name": "item", + "type": "TreeItem" + } + ] + }, + { + "name": "remove_child", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1819951137, + "arguments": [ + { + "name": "child", + "type": "TreeItem" + } + ] + }, + { + "name": "call_recursive", + "is_const": false, + "is_vararg": true, + "is_static": false, + "is_virtual": false, + "hash": 2866548813, + "arguments": [ + { + "name": "method", + "type": "StringName" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "collapsed", + "setter": "set_collapsed", + "getter": "is_collapsed" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + }, + { + "type": "bool", + "name": "disable_folding", + "setter": "set_disable_folding", + "getter": "is_folding_disabled" + }, + { + "type": "int", + "name": "custom_minimum_height", + "setter": "set_custom_minimum_height", + "getter": "get_custom_minimum_height" + } + ] + }, + { + "name": "TriangleMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core" + }, + { + "name": "TubeTrailMesh", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PrimitiveMesh", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "radius", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_radial_steps", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "radial_steps", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_radial_steps", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_sections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "sections", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_sections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_section_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "section_length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_section_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_section_rings", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "section_rings", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_section_rings", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_cap_top", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "cap_top", + "type": "bool" + } + ] + }, + { + "name": "is_cap_top", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_cap_bottom", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "cap_bottom", + "type": "bool" + } + ] + }, + { + "name": "is_cap_bottom", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_curve", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 270443179, + "arguments": [ + { + "name": "curve", + "type": "Curve" + } + ] + }, + { + "name": "get_curve", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2460114913, + "return_value": { + "type": "Curve" + } + } + ], + "properties": [ + { + "type": "float", + "name": "radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "int", + "name": "radial_steps", + "setter": "set_radial_steps", + "getter": "get_radial_steps" + }, + { + "type": "int", + "name": "sections", + "setter": "set_sections", + "getter": "get_sections" + }, + { + "type": "float", + "name": "section_length", + "setter": "set_section_length", + "getter": "get_section_length" + }, + { + "type": "int", + "name": "section_rings", + "setter": "set_section_rings", + "getter": "get_section_rings" + }, + { + "type": "bool", + "name": "cap_top", + "setter": "set_cap_top", + "getter": "is_cap_top" + }, + { + "type": "bool", + "name": "cap_bottom", + "setter": "set_cap_bottom", + "getter": "is_cap_bottom" + }, + { + "type": "Curve", + "name": "curve", + "setter": "set_curve", + "getter": "get_curve" + } + ] + }, + { + "name": "Tween", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "TweenProcessMode", + "is_bitfield": false, + "values": [ + { + "name": "TWEEN_PROCESS_PHYSICS", + "value": 0 + }, + { + "name": "TWEEN_PROCESS_IDLE", + "value": 1 + } + ] + }, + { + "name": "TweenPauseMode", + "is_bitfield": false, + "values": [ + { + "name": "TWEEN_PAUSE_BOUND", + "value": 0 + }, + { + "name": "TWEEN_PAUSE_STOP", + "value": 1 + }, + { + "name": "TWEEN_PAUSE_PROCESS", + "value": 2 + } + ] + }, + { + "name": "TransitionType", + "is_bitfield": false, + "values": [ + { + "name": "TRANS_LINEAR", + "value": 0 + }, + { + "name": "TRANS_SINE", + "value": 1 + }, + { + "name": "TRANS_QUINT", + "value": 2 + }, + { + "name": "TRANS_QUART", + "value": 3 + }, + { + "name": "TRANS_QUAD", + "value": 4 + }, + { + "name": "TRANS_EXPO", + "value": 5 + }, + { + "name": "TRANS_ELASTIC", + "value": 6 + }, + { + "name": "TRANS_CUBIC", + "value": 7 + }, + { + "name": "TRANS_CIRC", + "value": 8 + }, + { + "name": "TRANS_BOUNCE", + "value": 9 + }, + { + "name": "TRANS_BACK", + "value": 10 + } + ] + }, + { + "name": "EaseType", + "is_bitfield": false, + "values": [ + { + "name": "EASE_IN", + "value": 0 + }, + { + "name": "EASE_OUT", + "value": 1 + }, + { + "name": "EASE_IN_OUT", + "value": 2 + }, + { + "name": "EASE_OUT_IN", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "tween_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4049770449, + "return_value": { + "type": "PropertyTweener" + }, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "NodePath" + }, + { + "name": "final_val", + "type": "Variant" + }, + { + "name": "duration", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "tween_interval", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 413360199, + "return_value": { + "type": "IntervalTweener" + }, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "tween_callback", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1540176488, + "return_value": { + "type": "CallbackTweener" + }, + "arguments": [ + { + "name": "callback", + "type": "Callable" + } + ] + }, + { + "name": "tween_method", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2337877153, + "return_value": { + "type": "MethodTweener" + }, + "arguments": [ + { + "name": "method", + "type": "Callable" + }, + { + "name": "from", + "type": "Variant" + }, + { + "name": "to", + "type": "Variant" + }, + { + "name": "duration", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "custom_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 330693286, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "pause", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "kill", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_total_elapsed_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "is_running", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_valid", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "bind_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2946786331, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "node", + "type": "Node" + } + ] + }, + { + "name": "set_process_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 855258840, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Tween.TweenProcessMode" + } + ] + }, + { + "name": "set_pause_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3363368837, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Tween.TweenPauseMode" + } + ] + }, + { + "name": "set_parallel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1942052223, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "parallel", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "set_loops", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2670836414, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "loops", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "set_speed_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3961971106, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "speed", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_trans", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3965963875, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "trans", + "type": "enum::Tween.TransitionType" + } + ] + }, + { + "name": "set_ease", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1208117252, + "return_value": { + "type": "Tween" + }, + "arguments": [ + { + "name": "ease", + "type": "enum::Tween.EaseType" + } + ] + }, + { + "name": "parallel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3426978995, + "return_value": { + "type": "Tween" + } + }, + { + "name": "chain", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3426978995, + "return_value": { + "type": "Tween" + } + }, + { + "name": "interpolate_value", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3452526450, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "initial_value", + "type": "Variant" + }, + { + "name": "delta_value", + "type": "Variant" + }, + { + "name": "elapsed_time", + "type": "float", + "meta": "double" + }, + { + "name": "duration", + "type": "float", + "meta": "double" + }, + { + "name": "trans_type", + "type": "enum::Tween.TransitionType" + }, + { + "name": "ease_type", + "type": "enum::Tween.EaseType" + } + ] + } + ], + "signals": [ + { + "name": "step_finished", + "arguments": [ + { + "name": "idx", + "type": "int" + } + ] + }, + { + "name": "loop_finished", + "arguments": [ + { + "name": "loop_count", + "type": "int" + } + ] + }, + { + "name": "finished" + } + ] + }, + { + "name": "Tweener", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "signals": [ + { + "name": "finished" + } + ] + }, + { + "name": "UDPServer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "listen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4025329869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "uint16" + }, + { + "name": "bind_address", + "type": "String", + "default_value": "\"*\"" + } + ] + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "is_connection_available", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_listening", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "take_connection", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 808734560, + "return_value": { + "type": "PacketPeerUDP" + } + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_max_pending_connections", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_pending_connections", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_pending_connections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "max_pending_connections", + "setter": "set_max_pending_connections", + "getter": "get_max_pending_connections" + } + ] + }, + { + "name": "UPNP", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "UPNPResult", + "is_bitfield": false, + "values": [ + { + "name": "UPNP_RESULT_SUCCESS", + "value": 0 + }, + { + "name": "UPNP_RESULT_NOT_AUTHORIZED", + "value": 1 + }, + { + "name": "UPNP_RESULT_PORT_MAPPING_NOT_FOUND", + "value": 2 + }, + { + "name": "UPNP_RESULT_INCONSISTENT_PARAMETERS", + "value": 3 + }, + { + "name": "UPNP_RESULT_NO_SUCH_ENTRY_IN_ARRAY", + "value": 4 + }, + { + "name": "UPNP_RESULT_ACTION_FAILED", + "value": 5 + }, + { + "name": "UPNP_RESULT_SRC_IP_WILDCARD_NOT_PERMITTED", + "value": 6 + }, + { + "name": "UPNP_RESULT_EXT_PORT_WILDCARD_NOT_PERMITTED", + "value": 7 + }, + { + "name": "UPNP_RESULT_INT_PORT_WILDCARD_NOT_PERMITTED", + "value": 8 + }, + { + "name": "UPNP_RESULT_REMOTE_HOST_MUST_BE_WILDCARD", + "value": 9 + }, + { + "name": "UPNP_RESULT_EXT_PORT_MUST_BE_WILDCARD", + "value": 10 + }, + { + "name": "UPNP_RESULT_NO_PORT_MAPS_AVAILABLE", + "value": 11 + }, + { + "name": "UPNP_RESULT_CONFLICT_WITH_OTHER_MECHANISM", + "value": 12 + }, + { + "name": "UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING", + "value": 13 + }, + { + "name": "UPNP_RESULT_SAME_PORT_VALUES_REQUIRED", + "value": 14 + }, + { + "name": "UPNP_RESULT_ONLY_PERMANENT_LEASE_SUPPORTED", + "value": 15 + }, + { + "name": "UPNP_RESULT_INVALID_GATEWAY", + "value": 16 + }, + { + "name": "UPNP_RESULT_INVALID_PORT", + "value": 17 + }, + { + "name": "UPNP_RESULT_INVALID_PROTOCOL", + "value": 18 + }, + { + "name": "UPNP_RESULT_INVALID_DURATION", + "value": 19 + }, + { + "name": "UPNP_RESULT_INVALID_ARGS", + "value": 20 + }, + { + "name": "UPNP_RESULT_INVALID_RESPONSE", + "value": 21 + }, + { + "name": "UPNP_RESULT_INVALID_PARAM", + "value": 22 + }, + { + "name": "UPNP_RESULT_HTTP_ERROR", + "value": 23 + }, + { + "name": "UPNP_RESULT_SOCKET_ERROR", + "value": 24 + }, + { + "name": "UPNP_RESULT_MEM_ALLOC_ERROR", + "value": 25 + }, + { + "name": "UPNP_RESULT_NO_GATEWAY", + "value": 26 + }, + { + "name": "UPNP_RESULT_NO_DEVICES", + "value": 27 + }, + { + "name": "UPNP_RESULT_UNKNOWN_ERROR", + "value": 28 + } + ] + } + ], + "methods": [ + { + "name": "get_device_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_device", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2193290270, + "return_value": { + "type": "UPNPDevice" + }, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 986715920, + "arguments": [ + { + "name": "device", + "type": "UPNPDevice" + } + ] + }, + { + "name": "set_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3015133723, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "device", + "type": "UPNPDevice" + } + ] + }, + { + "name": "remove_device", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_devices", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_gateway", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2276800779, + "return_value": { + "type": "UPNPDevice" + } + }, + { + "name": "discover", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1575334765, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "timeout", + "type": "int", + "meta": "int32", + "default_value": "2000" + }, + { + "name": "ttl", + "type": "int", + "meta": "int32", + "default_value": "2" + }, + { + "name": "device_filter", + "type": "String", + "default_value": "\"InternetGatewayDevice\"" + } + ] + }, + { + "name": "query_external_address", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "add_port_mapping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3358934458, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "port_internal", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "desc", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "proto", + "type": "String", + "default_value": "\"UDP\"" + }, + { + "name": "duration", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "delete_port_mapping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 760296170, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "proto", + "type": "String", + "default_value": "\"UDP\"" + } + ] + }, + { + "name": "set_discover_multicast_if", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "m_if", + "type": "String" + } + ] + }, + { + "name": "get_discover_multicast_if", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_discover_local_port", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_discover_local_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_discover_ipv6", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "ipv6", + "type": "bool" + } + ] + }, + { + "name": "is_discover_ipv6", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "String", + "name": "discover_multicast_if", + "setter": "set_discover_multicast_if", + "getter": "get_discover_multicast_if" + }, + { + "type": "int", + "name": "discover_local_port", + "setter": "set_discover_local_port", + "getter": "get_discover_local_port" + }, + { + "type": "bool", + "name": "discover_ipv6", + "setter": "set_discover_ipv6", + "getter": "is_discover_ipv6" + } + ] + }, + { + "name": "UPNPDevice", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "IGDStatus", + "is_bitfield": false, + "values": [ + { + "name": "IGD_STATUS_OK", + "value": 0 + }, + { + "name": "IGD_STATUS_HTTP_ERROR", + "value": 1 + }, + { + "name": "IGD_STATUS_HTTP_EMPTY", + "value": 2 + }, + { + "name": "IGD_STATUS_NO_URLS", + "value": 3 + }, + { + "name": "IGD_STATUS_NO_IGD", + "value": 4 + }, + { + "name": "IGD_STATUS_DISCONNECTED", + "value": 5 + }, + { + "name": "IGD_STATUS_UNKNOWN_DEVICE", + "value": 6 + }, + { + "name": "IGD_STATUS_INVALID_CONTROL", + "value": 7 + }, + { + "name": "IGD_STATUS_MALLOC_ERROR", + "value": 8 + }, + { + "name": "IGD_STATUS_UNKNOWN_ERROR", + "value": 9 + } + ] + } + ], + "methods": [ + { + "name": "is_valid_gateway", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "query_external_address", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "add_port_mapping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3358934458, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "port_internal", + "type": "int", + "meta": "int32", + "default_value": "0" + }, + { + "name": "desc", + "type": "String", + "default_value": "\"\"" + }, + { + "name": "proto", + "type": "String", + "default_value": "\"UDP\"" + }, + { + "name": "duration", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + }, + { + "name": "delete_port_mapping", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 760296170, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "proto", + "type": "String", + "default_value": "\"UDP\"" + } + ] + }, + { + "name": "set_description_url", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "url", + "type": "String" + } + ] + }, + { + "name": "get_description_url", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_service_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "get_service_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_igd_control_url", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "url", + "type": "String" + } + ] + }, + { + "name": "get_igd_control_url", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_igd_service_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "type", + "type": "String" + } + ] + }, + { + "name": "get_igd_service_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_igd_our_addr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "addr", + "type": "String" + } + ] + }, + { + "name": "get_igd_our_addr", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_igd_status", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 519504122, + "arguments": [ + { + "name": "status", + "type": "enum::UPNPDevice.IGDStatus" + } + ] + }, + { + "name": "get_igd_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 180887011, + "return_value": { + "type": "enum::UPNPDevice.IGDStatus" + } + } + ], + "properties": [ + { + "type": "String", + "name": "description_url", + "setter": "set_description_url", + "getter": "get_description_url" + }, + { + "type": "String", + "name": "service_type", + "setter": "set_service_type", + "getter": "get_service_type" + }, + { + "type": "String", + "name": "igd_control_url", + "setter": "set_igd_control_url", + "getter": "get_igd_control_url" + }, + { + "type": "String", + "name": "igd_service_type", + "setter": "set_igd_service_type", + "getter": "get_igd_service_type" + }, + { + "type": "String", + "name": "igd_our_addr", + "setter": "set_igd_our_addr", + "getter": "get_igd_our_addr" + }, + { + "type": "int", + "name": "igd_status", + "setter": "set_igd_status", + "getter": "get_igd_status" + } + ] + }, + { + "name": "UndoRedo", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "MergeMode", + "is_bitfield": false, + "values": [ + { + "name": "MERGE_DISABLE", + "value": 0 + }, + { + "name": "MERGE_ENDS", + "value": 1 + }, + { + "name": "MERGE_ALL", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "create_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 183245820, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "merge_mode", + "type": "enum::UndoRedo.MergeMode", + "default_value": "0" + } + ] + }, + { + "name": "commit_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "execute", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "is_committing_action", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "add_do_method", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "add_undo_method", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1611583062, + "arguments": [ + { + "name": "callable", + "type": "Callable" + } + ] + }, + { + "name": "add_do_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017172818, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_undo_property", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1017172818, + "arguments": [ + { + "name": "object", + "type": "Object" + }, + { + "name": "property", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + }, + { + "name": "add_do_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975164845, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "add_undo_reference", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3975164845, + "arguments": [ + { + "name": "object", + "type": "Object" + } + ] + }, + { + "name": "start_force_keep_in_merge_ends", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "end_force_keep_in_merge_ends", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_history_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_current_action", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_action_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 990163283, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_history", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3216645846, + "arguments": [ + { + "name": "increase_version", + "type": "bool", + "default_value": "true" + } + ] + }, + { + "name": "get_current_action_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "has_undo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_redo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_version", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "redo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "undo", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "version_changed" + } + ] + }, + { + "name": "UniformSetCacheRD", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core" + }, + { + "name": "VBoxContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "BoxContainer", + "api_type": "core" + }, + { + "name": "VFlowContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "FlowContainer", + "api_type": "core" + }, + { + "name": "VScrollBar", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "ScrollBar", + "api_type": "core" + }, + { + "name": "VSeparator", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Separator", + "api_type": "core" + }, + { + "name": "VSlider", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Slider", + "api_type": "core" + }, + { + "name": "VSplitContainer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "SplitContainer", + "api_type": "core" + }, + { + "name": "VehicleBody3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "RigidBody3D", + "api_type": "core", + "methods": [ + { + "name": "set_engine_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "engine_force", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_engine_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_brake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "brake", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_brake", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_steering", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "steering", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_steering", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "engine_force", + "setter": "set_engine_force", + "getter": "get_engine_force" + }, + { + "type": "float", + "name": "brake", + "setter": "set_brake", + "getter": "get_brake" + }, + { + "type": "float", + "name": "steering", + "setter": "set_steering", + "getter": "get_steering" + } + ] + }, + { + "name": "VehicleWheel3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_radius", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_radius", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_suspension_rest_length", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_suspension_rest_length", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_suspension_travel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_suspension_travel", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_suspension_stiffness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_suspension_stiffness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_suspension_max_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_suspension_max_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping_compression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping_compression", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_damping_relaxation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_damping_relaxation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_as_traction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_used_as_traction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_as_steering", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_used_as_steering", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_friction_slip", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "length", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_friction_slip", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "is_in_contact", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_contact_body", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 151077316, + "return_value": { + "type": "Node3D" + } + }, + { + "name": "set_roll_influence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "roll_influence", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_roll_influence", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_skidinfo", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_rpm", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_engine_force", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "engine_force", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_engine_force", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_brake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "brake", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_brake", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_steering", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "steering", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_steering", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "engine_force", + "setter": "set_engine_force", + "getter": "get_engine_force" + }, + { + "type": "float", + "name": "brake", + "setter": "set_brake", + "getter": "get_brake" + }, + { + "type": "float", + "name": "steering", + "setter": "set_steering", + "getter": "get_steering" + }, + { + "type": "bool", + "name": "use_as_traction", + "setter": "set_use_as_traction", + "getter": "is_used_as_traction" + }, + { + "type": "bool", + "name": "use_as_steering", + "setter": "set_use_as_steering", + "getter": "is_used_as_steering" + }, + { + "type": "float", + "name": "wheel_roll_influence", + "setter": "set_roll_influence", + "getter": "get_roll_influence" + }, + { + "type": "float", + "name": "wheel_radius", + "setter": "set_radius", + "getter": "get_radius" + }, + { + "type": "float", + "name": "wheel_rest_length", + "setter": "set_suspension_rest_length", + "getter": "get_suspension_rest_length" + }, + { + "type": "float", + "name": "wheel_friction_slip", + "setter": "set_friction_slip", + "getter": "get_friction_slip" + }, + { + "type": "float", + "name": "suspension_travel", + "setter": "set_suspension_travel", + "getter": "get_suspension_travel" + }, + { + "type": "float", + "name": "suspension_stiffness", + "setter": "set_suspension_stiffness", + "getter": "get_suspension_stiffness" + }, + { + "type": "float", + "name": "suspension_max_force", + "setter": "set_suspension_max_force", + "getter": "get_suspension_max_force" + }, + { + "type": "float", + "name": "damping_compression", + "setter": "set_damping_compression", + "getter": "get_damping_compression" + }, + { + "type": "float", + "name": "damping_relaxation", + "setter": "set_damping_relaxation", + "getter": "get_damping_relaxation" + } + ] + }, + { + "name": "VideoStream", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_instantiate_playback", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "VideoStreamPlayback" + } + }, + { + "name": "set_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "get_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2841200299, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "file", + "setter": "set_file", + "getter": "get_file" + } + ] + }, + { + "name": "VideoStreamPlayback", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "_stop", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_play", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_is_playing", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_set_paused", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "paused", + "type": "bool" + } + ] + }, + { + "name": "_is_paused", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_length", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_get_playback_position", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "_seek", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "time", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_set_audio_track", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_texture", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "_update", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "delta", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_get_channels", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_mix_rate", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "mix_audio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1369271885, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "num_frames", + "type": "int", + "meta": "int32" + }, + { + "name": "buffer", + "type": "PackedFloat32Array", + "default_value": "PackedFloat32Array()" + }, + { + "name": "offset", + "type": "int", + "meta": "int32", + "default_value": "0" + } + ] + } + ] + }, + { + "name": "VideoStreamPlayer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Control", + "api_type": "core", + "methods": [ + { + "name": "set_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2317102564, + "arguments": [ + { + "name": "stream", + "type": "VideoStream" + } + ] + }, + { + "name": "get_stream", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 438621487, + "return_value": { + "type": "VideoStream" + } + }, + { + "name": "play", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "stop", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_playing", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_paused", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "paused", + "type": "bool" + } + ] + }, + { + "name": "is_paused", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_volume", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "volume", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_volume_db", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "db", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_volume_db", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_audio_track", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "track", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_audio_track", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_stream_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_stream_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "position", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_stream_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_autoplay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "has_autoplay", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_expand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_expand", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_buffering_msec", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "msec", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_buffering_msec", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_bus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "bus", + "type": "StringName" + } + ] + }, + { + "name": "get_bus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_video_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "signals": [ + { + "name": "finished" + } + ], + "properties": [ + { + "type": "int", + "name": "audio_track", + "setter": "set_audio_track", + "getter": "get_audio_track" + }, + { + "type": "VideoStream", + "name": "stream", + "setter": "set_stream", + "getter": "get_stream" + }, + { + "type": "float", + "name": "volume_db", + "setter": "set_volume_db", + "getter": "get_volume_db" + }, + { + "type": "float", + "name": "volume", + "setter": "set_volume", + "getter": "get_volume" + }, + { + "type": "bool", + "name": "autoplay", + "setter": "set_autoplay", + "getter": "has_autoplay" + }, + { + "type": "bool", + "name": "paused", + "setter": "set_paused", + "getter": "is_paused" + }, + { + "type": "bool", + "name": "expand", + "setter": "set_expand", + "getter": "has_expand" + }, + { + "type": "int", + "name": "buffering_msec", + "setter": "set_buffering_msec", + "getter": "get_buffering_msec" + }, + { + "type": "float", + "name": "stream_position", + "setter": "set_stream_position", + "getter": "get_stream_position" + }, + { + "type": "StringName", + "name": "bus", + "setter": "set_bus", + "getter": "get_bus" + } + ] + }, + { + "name": "VideoStreamTheora", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VideoStream", + "api_type": "core" + }, + { + "name": "Viewport", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node", + "api_type": "core", + "enums": [ + { + "name": "PositionalShadowAtlasQuadrantSubdiv", + "is_bitfield": false, + "values": [ + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_DISABLED", + "value": 0 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_1", + "value": 1 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_4", + "value": 2 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_16", + "value": 3 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_64", + "value": 4 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_256", + "value": 5 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_1024", + "value": 6 + }, + { + "name": "SHADOW_ATLAS_QUADRANT_SUBDIV_MAX", + "value": 7 + } + ] + }, + { + "name": "Scaling3DMode", + "is_bitfield": false, + "values": [ + { + "name": "SCALING_3D_MODE_BILINEAR", + "value": 0 + }, + { + "name": "SCALING_3D_MODE_FSR", + "value": 1 + }, + { + "name": "SCALING_3D_MODE_MAX", + "value": 2 + } + ] + }, + { + "name": "MSAA", + "is_bitfield": false, + "values": [ + { + "name": "MSAA_DISABLED", + "value": 0 + }, + { + "name": "MSAA_2X", + "value": 1 + }, + { + "name": "MSAA_4X", + "value": 2 + }, + { + "name": "MSAA_8X", + "value": 3 + }, + { + "name": "MSAA_MAX", + "value": 4 + } + ] + }, + { + "name": "ScreenSpaceAA", + "is_bitfield": false, + "values": [ + { + "name": "SCREEN_SPACE_AA_DISABLED", + "value": 0 + }, + { + "name": "SCREEN_SPACE_AA_FXAA", + "value": 1 + }, + { + "name": "SCREEN_SPACE_AA_MAX", + "value": 2 + } + ] + }, + { + "name": "RenderInfo", + "is_bitfield": false, + "values": [ + { + "name": "RENDER_INFO_OBJECTS_IN_FRAME", + "value": 0 + }, + { + "name": "RENDER_INFO_PRIMITIVES_IN_FRAME", + "value": 1 + }, + { + "name": "RENDER_INFO_DRAW_CALLS_IN_FRAME", + "value": 2 + }, + { + "name": "RENDER_INFO_MAX", + "value": 3 + } + ] + }, + { + "name": "RenderInfoType", + "is_bitfield": false, + "values": [ + { + "name": "RENDER_INFO_TYPE_VISIBLE", + "value": 0 + }, + { + "name": "RENDER_INFO_TYPE_SHADOW", + "value": 1 + }, + { + "name": "RENDER_INFO_TYPE_MAX", + "value": 2 + } + ] + }, + { + "name": "DebugDraw", + "is_bitfield": false, + "values": [ + { + "name": "DEBUG_DRAW_DISABLED", + "value": 0 + }, + { + "name": "DEBUG_DRAW_UNSHADED", + "value": 1 + }, + { + "name": "DEBUG_DRAW_LIGHTING", + "value": 2 + }, + { + "name": "DEBUG_DRAW_OVERDRAW", + "value": 3 + }, + { + "name": "DEBUG_DRAW_WIREFRAME", + "value": 4 + }, + { + "name": "DEBUG_DRAW_NORMAL_BUFFER", + "value": 5 + }, + { + "name": "DEBUG_DRAW_VOXEL_GI_ALBEDO", + "value": 6 + }, + { + "name": "DEBUG_DRAW_VOXEL_GI_LIGHTING", + "value": 7 + }, + { + "name": "DEBUG_DRAW_VOXEL_GI_EMISSION", + "value": 8 + }, + { + "name": "DEBUG_DRAW_SHADOW_ATLAS", + "value": 9 + }, + { + "name": "DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS", + "value": 10 + }, + { + "name": "DEBUG_DRAW_SCENE_LUMINANCE", + "value": 11 + }, + { + "name": "DEBUG_DRAW_SSAO", + "value": 12 + }, + { + "name": "DEBUG_DRAW_SSIL", + "value": 13 + }, + { + "name": "DEBUG_DRAW_PSSM_SPLITS", + "value": 14 + }, + { + "name": "DEBUG_DRAW_DECAL_ATLAS", + "value": 15 + }, + { + "name": "DEBUG_DRAW_SDFGI", + "value": 16 + }, + { + "name": "DEBUG_DRAW_SDFGI_PROBES", + "value": 17 + }, + { + "name": "DEBUG_DRAW_GI_BUFFER", + "value": 18 + }, + { + "name": "DEBUG_DRAW_DISABLE_LOD", + "value": 19 + }, + { + "name": "DEBUG_DRAW_CLUSTER_OMNI_LIGHTS", + "value": 20 + }, + { + "name": "DEBUG_DRAW_CLUSTER_SPOT_LIGHTS", + "value": 21 + }, + { + "name": "DEBUG_DRAW_CLUSTER_DECALS", + "value": 22 + }, + { + "name": "DEBUG_DRAW_CLUSTER_REFLECTION_PROBES", + "value": 23 + }, + { + "name": "DEBUG_DRAW_OCCLUDERS", + "value": 24 + }, + { + "name": "DEBUG_DRAW_MOTION_VECTORS", + "value": 25 + } + ] + }, + { + "name": "DefaultCanvasItemTextureFilter", + "is_bitfield": false, + "values": [ + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST", + "value": 0 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR", + "value": 1 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS", + "value": 2 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS", + "value": 3 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX", + "value": 4 + } + ] + }, + { + "name": "DefaultCanvasItemTextureRepeat", + "is_bitfield": false, + "values": [ + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_DISABLED", + "value": 0 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_ENABLED", + "value": 1 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MIRROR", + "value": 2 + }, + { + "name": "DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX", + "value": 3 + } + ] + }, + { + "name": "SDFOversize", + "is_bitfield": false, + "values": [ + { + "name": "SDF_OVERSIZE_100_PERCENT", + "value": 0 + }, + { + "name": "SDF_OVERSIZE_120_PERCENT", + "value": 1 + }, + { + "name": "SDF_OVERSIZE_150_PERCENT", + "value": 2 + }, + { + "name": "SDF_OVERSIZE_200_PERCENT", + "value": 3 + }, + { + "name": "SDF_OVERSIZE_MAX", + "value": 4 + } + ] + }, + { + "name": "SDFScale", + "is_bitfield": false, + "values": [ + { + "name": "SDF_SCALE_100_PERCENT", + "value": 0 + }, + { + "name": "SDF_SCALE_50_PERCENT", + "value": 1 + }, + { + "name": "SDF_SCALE_25_PERCENT", + "value": 2 + }, + { + "name": "SDF_SCALE_MAX", + "value": 3 + } + ] + }, + { + "name": "VRSMode", + "is_bitfield": false, + "values": [ + { + "name": "VRS_DISABLED", + "value": 0 + }, + { + "name": "VRS_TEXTURE", + "value": 1 + }, + { + "name": "VRS_XR", + "value": 2 + }, + { + "name": "VRS_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_world_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2736080068, + "arguments": [ + { + "name": "world_2d", + "type": "World2D" + } + ] + }, + { + "name": "get_world_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339128592, + "return_value": { + "type": "World2D" + } + }, + { + "name": "find_world_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2339128592, + "return_value": { + "type": "World2D" + } + }, + { + "name": "set_canvas_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_canvas_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "set_global_canvas_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2761652528, + "arguments": [ + { + "name": "xform", + "type": "Transform2D" + } + ] + }, + { + "name": "get_global_canvas_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_final_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_screen_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3814499831, + "return_value": { + "type": "Transform2D" + } + }, + { + "name": "get_visible_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "set_transparent_background", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "has_transparent_background", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_msaa_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3330258708, + "arguments": [ + { + "name": "msaa", + "type": "enum::Viewport.MSAA" + } + ] + }, + { + "name": "get_msaa_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2542055527, + "return_value": { + "type": "enum::Viewport.MSAA" + } + }, + { + "name": "set_msaa_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3330258708, + "arguments": [ + { + "name": "msaa", + "type": "enum::Viewport.MSAA" + } + ] + }, + { + "name": "get_msaa_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2542055527, + "return_value": { + "type": "enum::Viewport.MSAA" + } + }, + { + "name": "set_screen_space_aa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3544169389, + "arguments": [ + { + "name": "screen_space_aa", + "type": "enum::Viewport.ScreenSpaceAA" + } + ] + }, + { + "name": "get_screen_space_aa", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1390814124, + "return_value": { + "type": "enum::Viewport.ScreenSpaceAA" + } + }, + { + "name": "set_use_taa", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_taa", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_debanding", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_debanding", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_occlusion_culling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_occlusion_culling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_debug_draw", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1970246205, + "arguments": [ + { + "name": "debug_draw", + "type": "enum::Viewport.DebugDraw" + } + ] + }, + { + "name": "get_debug_draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 579191299, + "return_value": { + "type": "enum::Viewport.DebugDraw" + } + }, + { + "name": "get_render_info", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 481977019, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::Viewport.RenderInfoType" + }, + { + "name": "info", + "type": "enum::Viewport.RenderInfo" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1746695840, + "return_value": { + "type": "ViewportTexture" + } + }, + { + "name": "set_physics_object_picking", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_physics_object_picking", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_physics_object_picking_sort", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_physics_object_picking_sort", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_viewport_rid", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "push_text_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "text", + "type": "String" + } + ] + }, + { + "name": "push_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3644664830, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "in_local_coords", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "push_unhandled_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3644664830, + "arguments": [ + { + "name": "event", + "type": "InputEvent" + }, + { + "name": "in_local_coords", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "get_camera_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3551466917, + "return_value": { + "type": "Camera2D" + } + }, + { + "name": "set_as_audio_listener_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_audio_listener_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_mouse_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "warp_mouse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "gui_get_drag_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + }, + { + "name": "gui_is_dragging", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "gui_is_drag_successful", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "gui_release_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "gui_get_focus_owner", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 829782337, + "return_value": { + "type": "Control" + } + }, + { + "name": "set_disable_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_input_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_positional_shadow_atlas_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_positional_shadow_atlas_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_positional_shadow_atlas_16_bits", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_positional_shadow_atlas_16_bits", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snap_controls_to_pixels", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_snap_controls_to_pixels_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snap_2d_transforms_to_pixel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_snap_2d_transforms_to_pixel_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_snap_2d_vertices_to_pixel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_snap_2d_vertices_to_pixel_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_positional_shadow_atlas_quadrant_subdiv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2596956071, + "arguments": [ + { + "name": "quadrant", + "type": "int", + "meta": "int32" + }, + { + "name": "subdiv", + "type": "enum::Viewport.PositionalShadowAtlasQuadrantSubdiv" + } + ] + }, + { + "name": "get_positional_shadow_atlas_quadrant_subdiv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2676778355, + "return_value": { + "type": "enum::Viewport.PositionalShadowAtlasQuadrantSubdiv" + }, + "arguments": [ + { + "name": "quadrant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_input_as_handled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "is_input_handled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_handle_input_locally", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_handling_input_locally", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_canvas_item_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2815160100, + "arguments": [ + { + "name": "mode", + "type": "enum::Viewport.DefaultCanvasItemTextureFilter" + } + ] + }, + { + "name": "get_default_canvas_item_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 896601198, + "return_value": { + "type": "enum::Viewport.DefaultCanvasItemTextureFilter" + } + }, + { + "name": "set_embedding_subwindows", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_embedding_subwindows", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_canvas_cull_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_canvas_cull_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_canvas_cull_mask_bit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_canvas_cull_mask_bit", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "set_default_canvas_item_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1658513413, + "arguments": [ + { + "name": "mode", + "type": "enum::Viewport.DefaultCanvasItemTextureRepeat" + } + ] + }, + { + "name": "get_default_canvas_item_texture_repeat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4049774160, + "return_value": { + "type": "enum::Viewport.DefaultCanvasItemTextureRepeat" + } + }, + { + "name": "set_sdf_oversize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2574159017, + "arguments": [ + { + "name": "oversize", + "type": "enum::Viewport.SDFOversize" + } + ] + }, + { + "name": "get_sdf_oversize", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2631427510, + "return_value": { + "type": "enum::Viewport.SDFOversize" + } + }, + { + "name": "set_sdf_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1402773951, + "arguments": [ + { + "name": "scale", + "type": "enum::Viewport.SDFScale" + } + ] + }, + { + "name": "get_sdf_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3162688184, + "return_value": { + "type": "enum::Viewport.SDFScale" + } + }, + { + "name": "set_mesh_lod_threshold", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "pixels", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_mesh_lod_threshold", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_world_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1400875337, + "arguments": [ + { + "name": "world_3d", + "type": "World3D" + } + ] + }, + { + "name": "get_world_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 317588385, + "return_value": { + "type": "World3D" + } + }, + { + "name": "find_world_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 317588385, + "return_value": { + "type": "World3D" + } + }, + { + "name": "set_use_own_world_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_own_world_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_camera_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285090890, + "return_value": { + "type": "Camera3D" + } + }, + { + "name": "set_as_audio_listener_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_audio_listener_3d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_disable_3d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "disable", + "type": "bool" + } + ] + }, + { + "name": "is_3d_disabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_xr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "use", + "type": "bool" + } + ] + }, + { + "name": "is_using_xr", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_scaling_3d_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1531597597, + "arguments": [ + { + "name": "scaling_3d_mode", + "type": "enum::Viewport.Scaling3DMode" + } + ] + }, + { + "name": "get_scaling_3d_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2597660574, + "return_value": { + "type": "enum::Viewport.Scaling3DMode" + } + }, + { + "name": "set_scaling_3d_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_scaling_3d_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_fsr_sharpness", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "fsr_sharpness", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_fsr_sharpness", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_texture_mipmap_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "texture_mipmap_bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_texture_mipmap_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_vrs_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2749867817, + "arguments": [ + { + "name": "mode", + "type": "enum::Viewport.VRSMode" + } + ] + }, + { + "name": "get_vrs_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 349660525, + "return_value": { + "type": "enum::Viewport.VRSMode" + } + }, + { + "name": "set_vrs_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "get_vrs_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + } + ], + "signals": [ + { + "name": "size_changed" + }, + { + "name": "gui_focus_changed", + "arguments": [ + { + "name": "node", + "type": "Control" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "disable_3d", + "setter": "set_disable_3d", + "getter": "is_3d_disabled" + }, + { + "type": "bool", + "name": "use_xr", + "setter": "set_use_xr", + "getter": "is_using_xr" + }, + { + "type": "bool", + "name": "own_world_3d", + "setter": "set_use_own_world_3d", + "getter": "is_using_own_world_3d" + }, + { + "type": "World3D", + "name": "world_3d", + "setter": "set_world_3d", + "getter": "get_world_3d" + }, + { + "type": "World2D", + "name": "world_2d", + "setter": "set_world_2d", + "getter": "get_world_2d" + }, + { + "type": "bool", + "name": "transparent_bg", + "setter": "set_transparent_background", + "getter": "has_transparent_background" + }, + { + "type": "bool", + "name": "handle_input_locally", + "setter": "set_handle_input_locally", + "getter": "is_handling_input_locally" + }, + { + "type": "bool", + "name": "snap_2d_transforms_to_pixel", + "setter": "set_snap_2d_transforms_to_pixel", + "getter": "is_snap_2d_transforms_to_pixel_enabled" + }, + { + "type": "bool", + "name": "snap_2d_vertices_to_pixel", + "setter": "set_snap_2d_vertices_to_pixel", + "getter": "is_snap_2d_vertices_to_pixel_enabled" + }, + { + "type": "int", + "name": "msaa_2d", + "setter": "set_msaa_2d", + "getter": "get_msaa_2d" + }, + { + "type": "int", + "name": "msaa_3d", + "setter": "set_msaa_3d", + "getter": "get_msaa_3d" + }, + { + "type": "int", + "name": "screen_space_aa", + "setter": "set_screen_space_aa", + "getter": "get_screen_space_aa" + }, + { + "type": "bool", + "name": "use_taa", + "setter": "set_use_taa", + "getter": "is_using_taa" + }, + { + "type": "bool", + "name": "use_debanding", + "setter": "set_use_debanding", + "getter": "is_using_debanding" + }, + { + "type": "bool", + "name": "use_occlusion_culling", + "setter": "set_use_occlusion_culling", + "getter": "is_using_occlusion_culling" + }, + { + "type": "float", + "name": "mesh_lod_threshold", + "setter": "set_mesh_lod_threshold", + "getter": "get_mesh_lod_threshold" + }, + { + "type": "int", + "name": "debug_draw", + "setter": "set_debug_draw", + "getter": "get_debug_draw" + }, + { + "type": "int", + "name": "scaling_3d_mode", + "setter": "set_scaling_3d_mode", + "getter": "get_scaling_3d_mode" + }, + { + "type": "float", + "name": "scaling_3d_scale", + "setter": "set_scaling_3d_scale", + "getter": "get_scaling_3d_scale" + }, + { + "type": "float", + "name": "texture_mipmap_bias", + "setter": "set_texture_mipmap_bias", + "getter": "get_texture_mipmap_bias" + }, + { + "type": "float", + "name": "fsr_sharpness", + "setter": "set_fsr_sharpness", + "getter": "get_fsr_sharpness" + }, + { + "type": "int", + "name": "vrs_mode", + "setter": "set_vrs_mode", + "getter": "get_vrs_mode" + }, + { + "type": "Texture2D", + "name": "vrs_texture", + "setter": "set_vrs_texture", + "getter": "get_vrs_texture" + }, + { + "type": "int", + "name": "canvas_item_default_texture_filter", + "setter": "set_default_canvas_item_texture_filter", + "getter": "get_default_canvas_item_texture_filter" + }, + { + "type": "int", + "name": "canvas_item_default_texture_repeat", + "setter": "set_default_canvas_item_texture_repeat", + "getter": "get_default_canvas_item_texture_repeat" + }, + { + "type": "bool", + "name": "audio_listener_enable_2d", + "setter": "set_as_audio_listener_2d", + "getter": "is_audio_listener_2d" + }, + { + "type": "bool", + "name": "audio_listener_enable_3d", + "setter": "set_as_audio_listener_3d", + "getter": "is_audio_listener_3d" + }, + { + "type": "bool", + "name": "physics_object_picking", + "setter": "set_physics_object_picking", + "getter": "get_physics_object_picking" + }, + { + "type": "bool", + "name": "physics_object_picking_sort", + "setter": "set_physics_object_picking_sort", + "getter": "get_physics_object_picking_sort" + }, + { + "type": "bool", + "name": "gui_disable_input", + "setter": "set_disable_input", + "getter": "is_input_disabled" + }, + { + "type": "bool", + "name": "gui_snap_controls_to_pixels", + "setter": "set_snap_controls_to_pixels", + "getter": "is_snap_controls_to_pixels_enabled" + }, + { + "type": "bool", + "name": "gui_embed_subwindows", + "setter": "set_embedding_subwindows", + "getter": "is_embedding_subwindows" + }, + { + "type": "int", + "name": "sdf_oversize", + "setter": "set_sdf_oversize", + "getter": "get_sdf_oversize" + }, + { + "type": "int", + "name": "sdf_scale", + "setter": "set_sdf_scale", + "getter": "get_sdf_scale" + }, + { + "type": "int", + "name": "positional_shadow_atlas_size", + "setter": "set_positional_shadow_atlas_size", + "getter": "get_positional_shadow_atlas_size" + }, + { + "type": "bool", + "name": "positional_shadow_atlas_16_bits", + "setter": "set_positional_shadow_atlas_16_bits", + "getter": "get_positional_shadow_atlas_16_bits" + }, + { + "type": "int", + "name": "positional_shadow_atlas_quad_0", + "setter": "set_positional_shadow_atlas_quadrant_subdiv", + "getter": "get_positional_shadow_atlas_quadrant_subdiv", + "index": 0 + }, + { + "type": "int", + "name": "positional_shadow_atlas_quad_1", + "setter": "set_positional_shadow_atlas_quadrant_subdiv", + "getter": "get_positional_shadow_atlas_quadrant_subdiv", + "index": 1 + }, + { + "type": "int", + "name": "positional_shadow_atlas_quad_2", + "setter": "set_positional_shadow_atlas_quadrant_subdiv", + "getter": "get_positional_shadow_atlas_quadrant_subdiv", + "index": 2 + }, + { + "type": "int", + "name": "positional_shadow_atlas_quad_3", + "setter": "set_positional_shadow_atlas_quadrant_subdiv", + "getter": "get_positional_shadow_atlas_quadrant_subdiv", + "index": 3 + }, + { + "type": "Transform2D", + "name": "canvas_transform", + "setter": "set_canvas_transform", + "getter": "get_canvas_transform" + }, + { + "type": "Transform2D", + "name": "global_canvas_transform", + "setter": "set_global_canvas_transform", + "getter": "get_global_canvas_transform" + }, + { + "type": "int", + "name": "canvas_cull_mask", + "setter": "set_canvas_cull_mask", + "getter": "get_canvas_cull_mask" + } + ] + }, + { + "name": "ViewportTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Texture2D", + "api_type": "core", + "methods": [ + { + "name": "set_viewport_path_in_scene", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_viewport_path_in_scene", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4075236667, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "NodePath", + "name": "viewport_path", + "setter": "set_viewport_path_in_scene", + "getter": "get_viewport_path_in_scene" + } + ] + }, + { + "name": "VisibleOnScreenEnabler2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisibleOnScreenNotifier2D", + "api_type": "core", + "enums": [ + { + "name": "EnableMode", + "is_bitfield": false, + "values": [ + { + "name": "ENABLE_MODE_INHERIT", + "value": 0 + }, + { + "name": "ENABLE_MODE_ALWAYS", + "value": 1 + }, + { + "name": "ENABLE_MODE_WHEN_PAUSED", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_enable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961788752, + "arguments": [ + { + "name": "mode", + "type": "enum::VisibleOnScreenEnabler2D.EnableMode" + } + ] + }, + { + "name": "get_enable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2650445576, + "return_value": { + "type": "enum::VisibleOnScreenEnabler2D.EnableMode" + } + }, + { + "name": "set_enable_node_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_enable_node_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 277076166, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "int", + "name": "enable_mode", + "setter": "set_enable_mode", + "getter": "get_enable_mode" + }, + { + "type": "NodePath", + "name": "enable_node_path", + "setter": "set_enable_node_path", + "getter": "get_enable_node_path" + } + ] + }, + { + "name": "VisibleOnScreenEnabler3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisibleOnScreenNotifier3D", + "api_type": "core", + "enums": [ + { + "name": "EnableMode", + "is_bitfield": false, + "values": [ + { + "name": "ENABLE_MODE_INHERIT", + "value": 0 + }, + { + "name": "ENABLE_MODE_ALWAYS", + "value": 1 + }, + { + "name": "ENABLE_MODE_WHEN_PAUSED", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_enable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 320303646, + "arguments": [ + { + "name": "mode", + "type": "enum::VisibleOnScreenEnabler3D.EnableMode" + } + ] + }, + { + "name": "get_enable_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3352990031, + "return_value": { + "type": "enum::VisibleOnScreenEnabler3D.EnableMode" + } + }, + { + "name": "set_enable_node_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1348162250, + "arguments": [ + { + "name": "path", + "type": "NodePath" + } + ] + }, + { + "name": "get_enable_node_path", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 277076166, + "return_value": { + "type": "NodePath" + } + } + ], + "properties": [ + { + "type": "int", + "name": "enable_mode", + "setter": "set_enable_mode", + "getter": "get_enable_mode" + }, + { + "type": "NodePath", + "name": "enable_node_path", + "setter": "set_enable_node_path", + "getter": "get_enable_node_path" + } + ] + }, + { + "name": "VisibleOnScreenNotifier2D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node2D", + "api_type": "core", + "methods": [ + { + "name": "set_rect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2046264180, + "arguments": [ + { + "name": "rect", + "type": "Rect2" + } + ] + }, + { + "name": "get_rect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1639390495, + "return_value": { + "type": "Rect2" + } + }, + { + "name": "is_on_screen", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "screen_entered" + }, + { + "name": "screen_exited" + } + ], + "properties": [ + { + "type": "Rect2", + "name": "rect", + "setter": "set_rect", + "getter": "get_rect" + } + ] + }, + { + "name": "VisibleOnScreenNotifier3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "methods": [ + { + "name": "set_aabb", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 259215842, + "arguments": [ + { + "name": "rect", + "type": "AABB" + } + ] + }, + { + "name": "is_on_screen", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "signals": [ + { + "name": "screen_entered" + }, + { + "name": "screen_exited" + } + ], + "properties": [ + { + "type": "AABB", + "name": "aabb", + "setter": "set_aabb", + "getter": "get_aabb" + } + ] + }, + { + "name": "VisualInstance3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "_get_aabb", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "AABB" + } + }, + { + "name": "set_base", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2722037293, + "arguments": [ + { + "name": "base", + "type": "RID" + } + ] + }, + { + "name": "get_base", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_instance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_layer_mask", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "mask", + "type": "int", + "meta": "uint32" + } + ] + }, + { + "name": "get_layer_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "set_layer_mask_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 300928843, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_layer_mask_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "layer_number", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_sorting_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "offset", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_sorting_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_sorting_use_aabb_center", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_sorting_use_aabb_center", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_aabb", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + } + ], + "properties": [ + { + "type": "int", + "name": "layers", + "setter": "set_layer_mask", + "getter": "get_layer_mask" + }, + { + "type": "float", + "name": "sorting_offset", + "setter": "set_sorting_offset", + "getter": "get_sorting_offset" + }, + { + "type": "bool", + "name": "sorting_use_aabb_center", + "setter": "set_sorting_use_aabb_center", + "getter": "is_sorting_use_aabb_center" + } + ] + }, + { + "name": "VisualShader", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shader", + "api_type": "core", + "constants": [ + { + "name": "NODE_ID_INVALID", + "value": -1 + }, + { + "name": "NODE_ID_OUTPUT", + "value": 0 + } + ], + "enums": [ + { + "name": "Type", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_VERTEX", + "value": 0 + }, + { + "name": "TYPE_FRAGMENT", + "value": 1 + }, + { + "name": "TYPE_LIGHT", + "value": 2 + }, + { + "name": "TYPE_START", + "value": 3 + }, + { + "name": "TYPE_PROCESS", + "value": 4 + }, + { + "name": "TYPE_COLLIDE", + "value": 5 + }, + { + "name": "TYPE_START_CUSTOM", + "value": 6 + }, + { + "name": "TYPE_PROCESS_CUSTOM", + "value": 7 + }, + { + "name": "TYPE_SKY", + "value": 8 + }, + { + "name": "TYPE_FOG", + "value": 9 + }, + { + "name": "TYPE_MAX", + "value": 10 + } + ] + }, + { + "name": "VaryingMode", + "is_bitfield": false, + "values": [ + { + "name": "VARYING_MODE_VERTEX_TO_FRAG_LIGHT", + "value": 0 + }, + { + "name": "VARYING_MODE_FRAG_TO_LIGHT", + "value": 1 + }, + { + "name": "VARYING_MODE_MAX", + "value": 2 + } + ] + }, + { + "name": "VaryingType", + "is_bitfield": false, + "values": [ + { + "name": "VARYING_TYPE_FLOAT", + "value": 0 + }, + { + "name": "VARYING_TYPE_INT", + "value": 1 + }, + { + "name": "VARYING_TYPE_UINT", + "value": 2 + }, + { + "name": "VARYING_TYPE_VECTOR_2D", + "value": 3 + }, + { + "name": "VARYING_TYPE_VECTOR_3D", + "value": 4 + }, + { + "name": "VARYING_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "VARYING_TYPE_BOOLEAN", + "value": 6 + }, + { + "name": "VARYING_TYPE_TRANSFORM", + "value": 7 + }, + { + "name": "VARYING_TYPE_MAX", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3978014962, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + } + ] + }, + { + "name": "add_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1560769431, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "node", + "type": "VisualShaderNode" + }, + { + "name": "position", + "type": "Vector2" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3784670312, + "return_value": { + "type": "VisualShaderNode" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_node_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2726660721, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "position", + "type": "Vector2" + } + ] + }, + { + "name": "get_node_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2175036082, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_list", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2370592410, + "return_value": { + "type": "PackedInt32Array" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, + { + "name": "get_valid_node_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 629467342, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, + { + "name": "remove_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844050912, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "replace_node", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3144735253, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "new_class", + "type": "StringName" + } + ] + }, + { + "name": "is_node_connection", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3922381898, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "from_node", + "type": "int", + "meta": "int32" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "int", + "meta": "int32" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "can_connect_nodes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3922381898, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "from_node", + "type": "int", + "meta": "int32" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "int", + "meta": "int32" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "connect_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3081049573, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "from_node", + "type": "int", + "meta": "int32" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "int", + "meta": "int32" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "disconnect_nodes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2268060358, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "from_node", + "type": "int", + "meta": "int32" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "int", + "meta": "int32" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "connect_nodes_forced", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2268060358, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + }, + { + "name": "from_node", + "type": "int", + "meta": "int32" + }, + { + "name": "from_port", + "type": "int", + "meta": "int32" + }, + { + "name": "to_node", + "type": "int", + "meta": "int32" + }, + { + "name": "to_port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_node_connections", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1441964831, + "return_value": { + "type": "typedarray::Dictionary" + }, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, + { + "name": "set_graph_offset", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "offset", + "type": "Vector2" + } + ] + }, + { + "name": "get_graph_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "add_varying", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2084110726, + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "mode", + "type": "enum::VisualShader.VaryingMode" + }, + { + "name": "type", + "type": "enum::VisualShader.VaryingType" + } + ] + }, + { + "name": "remove_varying", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "has_varying", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "Vector2", + "name": "graph_offset", + "setter": "set_graph_offset", + "getter": "get_graph_offset" + } + ] + }, + { + "name": "VisualShaderNode", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "Resource", + "api_type": "core", + "enums": [ + { + "name": "PortType", + "is_bitfield": false, + "values": [ + { + "name": "PORT_TYPE_SCALAR", + "value": 0 + }, + { + "name": "PORT_TYPE_SCALAR_INT", + "value": 1 + }, + { + "name": "PORT_TYPE_SCALAR_UINT", + "value": 2 + }, + { + "name": "PORT_TYPE_VECTOR_2D", + "value": 3 + }, + { + "name": "PORT_TYPE_VECTOR_3D", + "value": 4 + }, + { + "name": "PORT_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "PORT_TYPE_BOOLEAN", + "value": 6 + }, + { + "name": "PORT_TYPE_TRANSFORM", + "value": 7 + }, + { + "name": "PORT_TYPE_SAMPLER", + "value": 8 + }, + { + "name": "PORT_TYPE_MAX", + "value": 9 + } + ] + } + ], + "methods": [ + { + "name": "set_output_port_for_preview", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_output_port_for_preview", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_input_port_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 150923387, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "value", + "type": "Variant" + }, + { + "name": "prev_value", + "type": "Variant", + "default_value": "null" + } + ] + }, + { + "name": "get_input_port_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4227898402, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_input_port_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_default_input_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_default_input_values", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 381264803, + "arguments": [ + { + "name": "values", + "type": "Array" + } + ] + }, + { + "name": "get_default_input_values", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "Array" + } + } + ], + "properties": [ + { + "type": "int", + "name": "output_port_for_preview", + "setter": "set_output_port_for_preview", + "getter": "get_output_port_for_preview" + }, + { + "type": "Array", + "name": "default_input_values", + "setter": "set_default_input_values", + "getter": "get_default_input_values" + }, + { + "type": "Array", + "name": "expanded_output_ports", + "setter": "_set_output_ports_expanded", + "getter": "_get_output_ports_expanded" + } + ] + }, + { + "name": "VisualShaderNodeBillboard", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "BillboardType", + "is_bitfield": false, + "values": [ + { + "name": "BILLBOARD_TYPE_DISABLED", + "value": 0 + }, + { + "name": "BILLBOARD_TYPE_ENABLED", + "value": 1 + }, + { + "name": "BILLBOARD_TYPE_FIXED_Y", + "value": 2 + }, + { + "name": "BILLBOARD_TYPE_PARTICLES", + "value": 3 + }, + { + "name": "BILLBOARD_TYPE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_billboard_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1227463289, + "arguments": [ + { + "name": "billboard_type", + "type": "enum::VisualShaderNodeBillboard.BillboardType" + } + ] + }, + { + "name": "get_billboard_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3724188517, + "return_value": { + "type": "enum::VisualShaderNodeBillboard.BillboardType" + } + }, + { + "name": "set_keep_scale_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_keep_scale_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "int", + "name": "billboard_type", + "setter": "set_billboard_type", + "getter": "get_billboard_type" + }, + { + "type": "bool", + "name": "keep_scale", + "setter": "set_keep_scale_enabled", + "getter": "is_keep_scale_enabled" + } + ] + }, + { + "name": "VisualShaderNodeBooleanConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "constant", + "type": "bool" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeBooleanParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "value", + "type": "bool" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "bool", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeClamp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_FLOAT", + "value": 0 + }, + { + "name": "OP_TYPE_INT", + "value": 1 + }, + { + "name": "OP_TYPE_UINT", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 3 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 4 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "OP_TYPE_MAX", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 405010749, + "arguments": [ + { + "name": "op_type", + "type": "enum::VisualShaderNodeClamp.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 233276050, + "return_value": { + "type": "enum::VisualShaderNodeClamp.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeColorConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "constant", + "type": "Color" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "Color", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeColorFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_GRAYSCALE", + "value": 0 + }, + { + "name": "FUNC_HSV2RGB", + "value": 1 + }, + { + "name": "FUNC_RGB2HSV", + "value": 2 + }, + { + "name": "FUNC_SEPIA", + "value": 3 + }, + { + "name": "FUNC_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3973396138, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeColorFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 554863321, + "return_value": { + "type": "enum::VisualShaderNodeColorFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeColorOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_SCREEN", + "value": 0 + }, + { + "name": "OP_DIFFERENCE", + "value": 1 + }, + { + "name": "OP_DARKEN", + "value": 2 + }, + { + "name": "OP_LIGHTEN", + "value": 3 + }, + { + "name": "OP_OVERLAY", + "value": 4 + }, + { + "name": "OP_DODGE", + "value": 5 + }, + { + "name": "OP_BURN", + "value": 6 + }, + { + "name": "OP_SOFT_LIGHT", + "value": 7 + }, + { + "name": "OP_HARD_LIGHT", + "value": 8 + }, + { + "name": "OP_MAX", + "value": 9 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4260370673, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeColorOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1950956529, + "return_value": { + "type": "enum::VisualShaderNodeColorOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeColorParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2920490490, + "arguments": [ + { + "name": "value", + "type": "Color" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3444240500, + "return_value": { + "type": "Color" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "Color", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeComment", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeResizableBase", + "api_type": "core", + "methods": [ + { + "name": "set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_description", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "description", + "type": "String" + } + ] + }, + { + "name": "get_description", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "title", + "setter": "set_title", + "getter": "get_title" + }, + { + "type": "String", + "name": "description", + "setter": "set_description", + "getter": "get_description" + } + ] + }, + { + "name": "VisualShaderNodeCompare", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "ComparisonType", + "is_bitfield": false, + "values": [ + { + "name": "CTYPE_SCALAR", + "value": 0 + }, + { + "name": "CTYPE_SCALAR_INT", + "value": 1 + }, + { + "name": "CTYPE_SCALAR_UINT", + "value": 2 + }, + { + "name": "CTYPE_VECTOR_2D", + "value": 3 + }, + { + "name": "CTYPE_VECTOR_3D", + "value": 4 + }, + { + "name": "CTYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "CTYPE_BOOLEAN", + "value": 6 + }, + { + "name": "CTYPE_TRANSFORM", + "value": 7 + }, + { + "name": "CTYPE_MAX", + "value": 8 + } + ] + }, + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_EQUAL", + "value": 0 + }, + { + "name": "FUNC_NOT_EQUAL", + "value": 1 + }, + { + "name": "FUNC_GREATER_THAN", + "value": 2 + }, + { + "name": "FUNC_GREATER_THAN_EQUAL", + "value": 3 + }, + { + "name": "FUNC_LESS_THAN", + "value": 4 + }, + { + "name": "FUNC_LESS_THAN_EQUAL", + "value": 5 + }, + { + "name": "FUNC_MAX", + "value": 6 + } + ] + }, + { + "name": "Condition", + "is_bitfield": false, + "values": [ + { + "name": "COND_ALL", + "value": 0 + }, + { + "name": "COND_ANY", + "value": 1 + }, + { + "name": "COND_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_comparison_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 516558320, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeCompare.ComparisonType" + } + ] + }, + { + "name": "get_comparison_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3495315961, + "return_value": { + "type": "enum::VisualShaderNodeCompare.ComparisonType" + } + }, + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2370951349, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeCompare.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4089164265, + "return_value": { + "type": "enum::VisualShaderNodeCompare.Function" + } + }, + { + "name": "set_condition", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 918742392, + "arguments": [ + { + "name": "condition", + "type": "enum::VisualShaderNodeCompare.Condition" + } + ] + }, + { + "name": "get_condition", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3281078941, + "return_value": { + "type": "enum::VisualShaderNodeCompare.Condition" + } + } + ], + "properties": [ + { + "type": "int", + "name": "type", + "setter": "set_comparison_type", + "getter": "get_comparison_type" + }, + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + }, + { + "type": "int", + "name": "condition", + "setter": "set_condition", + "getter": "get_condition" + } + ] + }, + { + "name": "VisualShaderNodeConstant", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeCubemap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Source", + "is_bitfield": false, + "values": [ + { + "name": "SOURCE_TEXTURE", + "value": 0 + }, + { + "name": "SOURCE_PORT", + "value": 1 + }, + { + "name": "SOURCE_MAX", + "value": 2 + } + ] + }, + { + "name": "TextureType", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_DATA", + "value": 0 + }, + { + "name": "TYPE_COLOR", + "value": 1 + }, + { + "name": "TYPE_NORMAL_MAP", + "value": 2 + }, + { + "name": "TYPE_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1625400621, + "arguments": [ + { + "name": "value", + "type": "enum::VisualShaderNodeCubemap.Source" + } + ] + }, + { + "name": "get_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2222048781, + "return_value": { + "type": "enum::VisualShaderNodeCubemap.Source" + } + }, + { + "name": "set_cube_map", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2219800736, + "arguments": [ + { + "name": "value", + "type": "Cubemap" + } + ] + }, + { + "name": "get_cube_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1772111058, + "return_value": { + "type": "Cubemap" + } + }, + { + "name": "set_texture_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1899718876, + "arguments": [ + { + "name": "value", + "type": "enum::VisualShaderNodeCubemap.TextureType" + } + ] + }, + { + "name": "get_texture_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3356498888, + "return_value": { + "type": "enum::VisualShaderNodeCubemap.TextureType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "source", + "setter": "set_source", + "getter": "get_source" + }, + { + "type": "Cubemap", + "name": "cube_map", + "setter": "set_cube_map", + "getter": "get_cube_map" + }, + { + "type": "int", + "name": "texture_type", + "setter": "set_texture_type", + "getter": "get_texture_type" + } + ] + }, + { + "name": "VisualShaderNodeCubemapParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeTextureParameter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeCurveTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeResizableBase", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 181872837, + "arguments": [ + { + "name": "texture", + "type": "CurveTexture" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2800800579, + "return_value": { + "type": "CurveTexture" + } + } + ], + "properties": [ + { + "type": "CurveTexture", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "VisualShaderNodeCurveXYZTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeResizableBase", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 8031783, + "arguments": [ + { + "name": "texture", + "type": "CurveXYZTexture" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1950275015, + "return_value": { + "type": "CurveXYZTexture" + } + } + ], + "properties": [ + { + "type": "CurveXYZTexture", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "VisualShaderNodeCustom", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_description", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_category", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_get_return_icon_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::VisualShaderNode.PortType" + } + }, + { + "name": "_get_input_port_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_input_port_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::VisualShaderNode.PortType" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_input_port_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_output_port_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_output_port_type", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::VisualShaderNode.PortType" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_output_port_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "input_vars", + "type": "typedarray::String" + }, + { + "name": "output_vars", + "type": "typedarray::String" + }, + { + "name": "mode", + "type": "enum::Shader.Mode" + }, + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, + { + "name": "_get_func_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + }, + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + }, + { + "name": "_get_global_code", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + } + ] + }, + { + "name": "_is_highend", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_is_available", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::Shader.Mode" + }, + { + "name": "type", + "type": "enum::VisualShader.Type" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "initialized", + "setter": "_set_initialized", + "getter": "_is_initialized" + } + ] + }, + { + "name": "VisualShaderNodeDerivativeFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 3 + }, + { + "name": "OP_TYPE_MAX", + "value": 4 + } + ] + }, + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_SUM", + "value": 0 + }, + { + "name": "FUNC_X", + "value": 1 + }, + { + "name": "FUNC_Y", + "value": 2 + }, + { + "name": "FUNC_MAX", + "value": 3 + } + ] + }, + { + "name": "Precision", + "is_bitfield": false, + "values": [ + { + "name": "PRECISION_NONE", + "value": 0 + }, + { + "name": "PRECISION_COARSE", + "value": 1 + }, + { + "name": "PRECISION_FINE", + "value": 2 + }, + { + "name": "PRECISION_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 377800221, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeDerivativeFunc.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3997800514, + "return_value": { + "type": "enum::VisualShaderNodeDerivativeFunc.OpType" + } + }, + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1944704156, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeDerivativeFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2389093396, + "return_value": { + "type": "enum::VisualShaderNodeDerivativeFunc.Function" + } + }, + { + "name": "set_precision", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 797270566, + "arguments": [ + { + "name": "precision", + "type": "enum::VisualShaderNodeDerivativeFunc.Precision" + } + ] + }, + { + "name": "get_precision", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3822547323, + "return_value": { + "type": "enum::VisualShaderNodeDerivativeFunc.Precision" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + }, + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + }, + { + "type": "int", + "name": "precision", + "setter": "set_precision", + "getter": "get_precision" + } + ] + }, + { + "name": "VisualShaderNodeDeterminant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeDistanceFade", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeDotProduct", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeExpression", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeGroupBase", + "api_type": "core", + "methods": [ + { + "name": "set_expression", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "expression", + "type": "String" + } + ] + }, + { + "name": "get_expression", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "String", + "name": "expression", + "setter": "set_expression", + "getter": "get_expression" + } + ] + }, + { + "name": "VisualShaderNodeFaceForward", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VisualShaderNodeFloatConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "constant", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "float", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeFloatFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_SIN", + "value": 0 + }, + { + "name": "FUNC_COS", + "value": 1 + }, + { + "name": "FUNC_TAN", + "value": 2 + }, + { + "name": "FUNC_ASIN", + "value": 3 + }, + { + "name": "FUNC_ACOS", + "value": 4 + }, + { + "name": "FUNC_ATAN", + "value": 5 + }, + { + "name": "FUNC_SINH", + "value": 6 + }, + { + "name": "FUNC_COSH", + "value": 7 + }, + { + "name": "FUNC_TANH", + "value": 8 + }, + { + "name": "FUNC_LOG", + "value": 9 + }, + { + "name": "FUNC_EXP", + "value": 10 + }, + { + "name": "FUNC_SQRT", + "value": 11 + }, + { + "name": "FUNC_ABS", + "value": 12 + }, + { + "name": "FUNC_SIGN", + "value": 13 + }, + { + "name": "FUNC_FLOOR", + "value": 14 + }, + { + "name": "FUNC_ROUND", + "value": 15 + }, + { + "name": "FUNC_CEIL", + "value": 16 + }, + { + "name": "FUNC_FRACT", + "value": 17 + }, + { + "name": "FUNC_SATURATE", + "value": 18 + }, + { + "name": "FUNC_NEGATE", + "value": 19 + }, + { + "name": "FUNC_ACOSH", + "value": 20 + }, + { + "name": "FUNC_ASINH", + "value": 21 + }, + { + "name": "FUNC_ATANH", + "value": 22 + }, + { + "name": "FUNC_DEGREES", + "value": 23 + }, + { + "name": "FUNC_EXP2", + "value": 24 + }, + { + "name": "FUNC_INVERSE_SQRT", + "value": 25 + }, + { + "name": "FUNC_LOG2", + "value": 26 + }, + { + "name": "FUNC_RADIANS", + "value": 27 + }, + { + "name": "FUNC_RECIPROCAL", + "value": 28 + }, + { + "name": "FUNC_ROUNDEVEN", + "value": 29 + }, + { + "name": "FUNC_TRUNC", + "value": 30 + }, + { + "name": "FUNC_ONEMINUS", + "value": 31 + }, + { + "name": "FUNC_MAX", + "value": 32 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 536026177, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeFloatFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2033948868, + "return_value": { + "type": "enum::VisualShaderNodeFloatFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeFloatOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_ADD", + "value": 0 + }, + { + "name": "OP_SUB", + "value": 1 + }, + { + "name": "OP_MUL", + "value": 2 + }, + { + "name": "OP_DIV", + "value": 3 + }, + { + "name": "OP_MOD", + "value": 4 + }, + { + "name": "OP_POW", + "value": 5 + }, + { + "name": "OP_MAX", + "value": 6 + }, + { + "name": "OP_MIN", + "value": 7 + }, + { + "name": "OP_ATAN2", + "value": 8 + }, + { + "name": "OP_STEP", + "value": 9 + }, + { + "name": "OP_ENUM_SIZE", + "value": 10 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2488468047, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeFloatOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1867979390, + "return_value": { + "type": "enum::VisualShaderNodeFloatOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeFloatParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "enums": [ + { + "name": "Hint", + "is_bitfield": false, + "values": [ + { + "name": "HINT_NONE", + "value": 0 + }, + { + "name": "HINT_RANGE", + "value": 1 + }, + { + "name": "HINT_RANGE_STEP", + "value": 2 + }, + { + "name": "HINT_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3712586466, + "arguments": [ + { + "name": "hint", + "type": "enum::VisualShaderNodeFloatParameter.Hint" + } + ] + }, + { + "name": "get_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3042240429, + "return_value": { + "type": "enum::VisualShaderNodeFloatParameter.Hint" + } + }, + { + "name": "set_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "value", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "int", + "name": "hint", + "setter": "set_hint", + "getter": "get_hint" + }, + { + "type": "float", + "name": "min", + "setter": "set_min", + "getter": "get_min" + }, + { + "type": "float", + "name": "max", + "setter": "set_max", + "getter": "get_max" + }, + { + "type": "float", + "name": "step", + "setter": "set_step", + "getter": "get_step" + }, + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "float", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeFresnel", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeGlobalExpression", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeExpression", + "api_type": "core" + }, + { + "name": "VisualShaderNodeGroupBase", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNodeResizableBase", + "api_type": "core", + "methods": [ + { + "name": "set_inputs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "inputs", + "type": "String" + } + ] + }, + { + "name": "get_inputs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_outputs", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "outputs", + "type": "String" + } + ] + }, + { + "name": "get_outputs", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_valid_port_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "add_input_port", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "remove_input_port", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_input_port_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_input_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_input_ports", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_output_port", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2285447957, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "remove_output_port", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_output_port_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "has_output_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "clear_output_ports", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_input_port_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_input_port_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_output_port_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 501894301, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "set_output_port_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3937882851, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + }, + { + "name": "type", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_free_input_port_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_free_output_port_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "VisualShaderNodeIf", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeInput", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_input_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_input_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_input_real_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "signals": [ + { + "name": "input_type_changed" + } + ], + "properties": [ + { + "type": "StringName", + "name": "input_name", + "setter": "set_input_name", + "getter": "get_input_name" + } + ] + }, + { + "name": "VisualShaderNodeIntConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "constant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeIntFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_ABS", + "value": 0 + }, + { + "name": "FUNC_NEGATE", + "value": 1 + }, + { + "name": "FUNC_SIGN", + "value": 2 + }, + { + "name": "FUNC_BITWISE_NOT", + "value": 3 + }, + { + "name": "FUNC_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 424195284, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeIntFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2753496911, + "return_value": { + "type": "enum::VisualShaderNodeIntFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeIntOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_ADD", + "value": 0 + }, + { + "name": "OP_SUB", + "value": 1 + }, + { + "name": "OP_MUL", + "value": 2 + }, + { + "name": "OP_DIV", + "value": 3 + }, + { + "name": "OP_MOD", + "value": 4 + }, + { + "name": "OP_MAX", + "value": 5 + }, + { + "name": "OP_MIN", + "value": 6 + }, + { + "name": "OP_BITWISE_AND", + "value": 7 + }, + { + "name": "OP_BITWISE_OR", + "value": 8 + }, + { + "name": "OP_BITWISE_XOR", + "value": 9 + }, + { + "name": "OP_BITWISE_LEFT_SHIFT", + "value": 10 + }, + { + "name": "OP_BITWISE_RIGHT_SHIFT", + "value": 11 + }, + { + "name": "OP_ENUM_SIZE", + "value": 12 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1677909323, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeIntOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1236987913, + "return_value": { + "type": "enum::VisualShaderNodeIntOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeIntParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "enums": [ + { + "name": "Hint", + "is_bitfield": false, + "values": [ + { + "name": "HINT_NONE", + "value": 0 + }, + { + "name": "HINT_RANGE", + "value": 1 + }, + { + "name": "HINT_RANGE_STEP", + "value": 2 + }, + { + "name": "HINT_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_hint", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2540512075, + "arguments": [ + { + "name": "hint", + "type": "enum::VisualShaderNodeIntParameter.Hint" + } + ] + }, + { + "name": "get_hint", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4250814924, + "return_value": { + "type": "enum::VisualShaderNodeIntParameter.Hint" + } + }, + { + "name": "set_min", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_min", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_max", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_step", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_step", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "hint", + "setter": "set_hint", + "getter": "get_hint" + }, + { + "type": "int", + "name": "min", + "setter": "set_min", + "getter": "get_min" + }, + { + "type": "int", + "name": "max", + "setter": "set_max", + "getter": "get_max" + }, + { + "type": "int", + "name": "step", + "setter": "set_step", + "getter": "get_step" + }, + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "int", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeIs", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_IS_INF", + "value": 0 + }, + { + "name": "FUNC_IS_NAN", + "value": 1 + }, + { + "name": "FUNC_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1438374690, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeIs.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 580678557, + "return_value": { + "type": "enum::VisualShaderNodeIs.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeLinearSceneDepth", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeMix", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_2D_SCALAR", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 3 + }, + { + "name": "OP_TYPE_VECTOR_3D_SCALAR", + "value": 4 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "OP_TYPE_VECTOR_4D_SCALAR", + "value": 6 + }, + { + "name": "OP_TYPE_MAX", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3397501671, + "arguments": [ + { + "name": "op_type", + "type": "enum::VisualShaderNodeMix.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4013957297, + "return_value": { + "type": "enum::VisualShaderNodeMix.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeMultiplyAdd", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 3 + }, + { + "name": "OP_TYPE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1409862380, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeMultiplyAdd.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2823201991, + "return_value": { + "type": "enum::VisualShaderNodeMultiplyAdd.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeOuterProduct", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeOutput", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeParameter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Qualifier", + "is_bitfield": false, + "values": [ + { + "name": "QUAL_NONE", + "value": 0 + }, + { + "name": "QUAL_GLOBAL", + "value": 1 + }, + { + "name": "QUAL_INSTANCE", + "value": 2 + }, + { + "name": "QUAL_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_parameter_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_parameter_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_qualifier", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1276489447, + "arguments": [ + { + "name": "qualifier", + "type": "enum::VisualShaderNodeParameter.Qualifier" + } + ] + }, + { + "name": "get_qualifier", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3558406205, + "return_value": { + "type": "enum::VisualShaderNodeParameter.Qualifier" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "parameter_name", + "setter": "set_parameter_name", + "getter": "get_parameter_name" + }, + { + "type": "int", + "name": "qualifier", + "setter": "set_qualifier", + "getter": "get_qualifier" + } + ] + }, + { + "name": "VisualShaderNodeParameterRef", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_parameter_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_parameter_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "parameter_name", + "setter": "set_parameter_name", + "getter": "get_parameter_name" + }, + { + "type": "int", + "name": "param_type", + "setter": "_set_parameter_type", + "getter": "_get_parameter_type" + } + ] + }, + { + "name": "VisualShaderNodeParticleAccelerator", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_LINEAR", + "value": 0 + }, + { + "name": "MODE_RADIAL", + "value": 1 + }, + { + "name": "MODE_TANGENTIAL", + "value": 2 + }, + { + "name": "MODE_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3457585749, + "arguments": [ + { + "name": "mode", + "type": "enum::VisualShaderNodeParticleAccelerator.Mode" + } + ] + }, + { + "name": "get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2660365633, + "return_value": { + "type": "enum::VisualShaderNodeParticleAccelerator.Mode" + } + } + ], + "properties": [ + { + "type": "int", + "name": "mode", + "setter": "set_mode", + "getter": "get_mode" + } + ] + }, + { + "name": "VisualShaderNodeParticleBoxEmitter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParticleEmitter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeParticleConeVelocity", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeParticleEmit", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "EmitFlags", + "is_bitfield": false, + "values": [ + { + "name": "EMIT_FLAG_POSITION", + "value": 1 + }, + { + "name": "EMIT_FLAG_ROT_SCALE", + "value": 2 + }, + { + "name": "EMIT_FLAG_VELOCITY", + "value": 4 + }, + { + "name": "EMIT_FLAG_COLOR", + "value": 8 + }, + { + "name": "EMIT_FLAG_CUSTOM", + "value": 16 + } + ] + } + ], + "methods": [ + { + "name": "set_flags", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3960756792, + "arguments": [ + { + "name": "flags", + "type": "enum::VisualShaderNodeParticleEmit.EmitFlags" + } + ] + }, + { + "name": "get_flags", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 171277835, + "return_value": { + "type": "enum::VisualShaderNodeParticleEmit.EmitFlags" + } + } + ], + "properties": [ + { + "type": "int", + "name": "flags", + "setter": "set_flags", + "getter": "get_flags" + } + ] + }, + { + "name": "VisualShaderNodeParticleEmitter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_mode_2d", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_mode_2d", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "mode_2d", + "setter": "set_mode_2d", + "getter": "is_mode_2d" + } + ] + }, + { + "name": "VisualShaderNodeParticleMeshEmitter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParticleEmitter", + "api_type": "core", + "methods": [ + { + "name": "set_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 194775623, + "arguments": [ + { + "name": "mesh", + "type": "Mesh" + } + ] + }, + { + "name": "get_mesh", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1808005922, + "return_value": { + "type": "Mesh" + } + }, + { + "name": "set_use_all_surfaces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_use_all_surfaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_surface_index", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "surface_index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_surface_index", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "Mesh", + "name": "mesh", + "setter": "set_mesh", + "getter": "get_mesh" + }, + { + "type": "bool", + "name": "use_all_surfaces", + "setter": "set_use_all_surfaces", + "getter": "is_use_all_surfaces" + }, + { + "type": "int", + "name": "surface_index", + "setter": "set_surface_index", + "getter": "get_surface_index" + } + ] + }, + { + "name": "VisualShaderNodeParticleMultiplyByAxisAngle", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_degrees_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_degrees_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "degrees_mode", + "setter": "set_degrees_mode", + "getter": "is_degrees_mode" + } + ] + }, + { + "name": "VisualShaderNodeParticleOutput", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeOutput", + "api_type": "core" + }, + { + "name": "VisualShaderNodeParticleRandomness", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 3 + }, + { + "name": "OP_TYPE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2060089061, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeParticleRandomness.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3597061078, + "return_value": { + "type": "enum::VisualShaderNodeParticleRandomness.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeParticleRingEmitter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParticleEmitter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeParticleSphereEmitter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParticleEmitter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeProximityFade", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeRandomRange", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeRemap", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeResizableBase", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "size", + "type": "Vector2" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "size", + "setter": "set_size", + "getter": "get_size" + } + ] + }, + { + "name": "VisualShaderNodeSDFRaymarch", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeSDFToScreenUV", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeSample3D", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Source", + "is_bitfield": false, + "values": [ + { + "name": "SOURCE_TEXTURE", + "value": 0 + }, + { + "name": "SOURCE_PORT", + "value": 1 + }, + { + "name": "SOURCE_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3315130991, + "arguments": [ + { + "name": "value", + "type": "enum::VisualShaderNodeSample3D.Source" + } + ] + }, + { + "name": "get_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1079494121, + "return_value": { + "type": "enum::VisualShaderNodeSample3D.Source" + } + } + ], + "properties": [ + { + "type": "int", + "name": "source", + "setter": "set_source", + "getter": "get_source" + } + ] + }, + { + "name": "VisualShaderNodeScreenUVToSDF", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeSmoothStep", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_2D_SCALAR", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 3 + }, + { + "name": "OP_TYPE_VECTOR_3D_SCALAR", + "value": 4 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "OP_TYPE_VECTOR_4D_SCALAR", + "value": 6 + }, + { + "name": "OP_TYPE_MAX", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2427426148, + "arguments": [ + { + "name": "op_type", + "type": "enum::VisualShaderNodeSmoothStep.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 359640855, + "return_value": { + "type": "enum::VisualShaderNodeSmoothStep.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeStep", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_SCALAR", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_2D_SCALAR", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 3 + }, + { + "name": "OP_TYPE_VECTOR_3D_SCALAR", + "value": 4 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "OP_TYPE_VECTOR_4D_SCALAR", + "value": 6 + }, + { + "name": "OP_TYPE_MAX", + "value": 7 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 715172489, + "arguments": [ + { + "name": "op_type", + "type": "enum::VisualShaderNodeStep.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3274022781, + "return_value": { + "type": "enum::VisualShaderNodeStep.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeSwitch", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_FLOAT", + "value": 0 + }, + { + "name": "OP_TYPE_INT", + "value": 1 + }, + { + "name": "OP_TYPE_UINT", + "value": 2 + }, + { + "name": "OP_TYPE_VECTOR_2D", + "value": 3 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 4 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 5 + }, + { + "name": "OP_TYPE_BOOLEAN", + "value": 6 + }, + { + "name": "OP_TYPE_TRANSFORM", + "value": 7 + }, + { + "name": "OP_TYPE_MAX", + "value": 8 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 510471861, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeSwitch.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2517845071, + "return_value": { + "type": "enum::VisualShaderNodeSwitch.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeTexture", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Source", + "is_bitfield": false, + "values": [ + { + "name": "SOURCE_TEXTURE", + "value": 0 + }, + { + "name": "SOURCE_SCREEN", + "value": 1 + }, + { + "name": "SOURCE_2D_TEXTURE", + "value": 2 + }, + { + "name": "SOURCE_2D_NORMAL", + "value": 3 + }, + { + "name": "SOURCE_DEPTH", + "value": 4 + }, + { + "name": "SOURCE_PORT", + "value": 5 + }, + { + "name": "SOURCE_3D_NORMAL", + "value": 6 + }, + { + "name": "SOURCE_ROUGHNESS", + "value": 7 + }, + { + "name": "SOURCE_MAX", + "value": 8 + } + ] + }, + { + "name": "TextureType", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_DATA", + "value": 0 + }, + { + "name": "TYPE_COLOR", + "value": 1 + }, + { + "name": "TYPE_NORMAL_MAP", + "value": 2 + }, + { + "name": "TYPE_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 905262939, + "arguments": [ + { + "name": "value", + "type": "enum::VisualShaderNodeTexture.Source" + } + ] + }, + { + "name": "get_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2896297444, + "return_value": { + "type": "enum::VisualShaderNodeTexture.Source" + } + }, + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4051416890, + "arguments": [ + { + "name": "value", + "type": "Texture2D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3635182373, + "return_value": { + "type": "Texture2D" + } + }, + { + "name": "set_texture_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 986314081, + "arguments": [ + { + "name": "value", + "type": "enum::VisualShaderNodeTexture.TextureType" + } + ] + }, + { + "name": "get_texture_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3290430153, + "return_value": { + "type": "enum::VisualShaderNodeTexture.TextureType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "source", + "setter": "set_source", + "getter": "get_source" + }, + { + "type": "Texture2D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + }, + { + "type": "int", + "name": "texture_type", + "setter": "set_texture_type", + "getter": "get_texture_type" + } + ] + }, + { + "name": "VisualShaderNodeTexture2DArray", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeSample3D", + "api_type": "core", + "methods": [ + { + "name": "set_texture_array", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2206200446, + "arguments": [ + { + "name": "value", + "type": "Texture2DArray" + } + ] + }, + { + "name": "get_texture_array", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 146117123, + "return_value": { + "type": "Texture2DArray" + } + } + ], + "properties": [ + { + "type": "Texture2DArray", + "name": "texture_array", + "setter": "set_texture_array", + "getter": "get_texture_array" + } + ] + }, + { + "name": "VisualShaderNodeTexture2DArrayParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeTextureParameter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTexture2DParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeTextureParameter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTexture3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeSample3D", + "api_type": "core", + "methods": [ + { + "name": "set_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1188404210, + "arguments": [ + { + "name": "value", + "type": "Texture3D" + } + ] + }, + { + "name": "get_texture", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373985333, + "return_value": { + "type": "Texture3D" + } + } + ], + "properties": [ + { + "type": "Texture3D", + "name": "texture", + "setter": "set_texture", + "getter": "get_texture" + } + ] + }, + { + "name": "VisualShaderNodeTexture3DParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeTextureParameter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTextureParameter", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "enums": [ + { + "name": "TextureType", + "is_bitfield": false, + "values": [ + { + "name": "TYPE_DATA", + "value": 0 + }, + { + "name": "TYPE_COLOR", + "value": 1 + }, + { + "name": "TYPE_NORMAL_MAP", + "value": 2 + }, + { + "name": "TYPE_ANISOTROPY", + "value": 3 + }, + { + "name": "TYPE_MAX", + "value": 4 + } + ] + }, + { + "name": "ColorDefault", + "is_bitfield": false, + "values": [ + { + "name": "COLOR_DEFAULT_WHITE", + "value": 0 + }, + { + "name": "COLOR_DEFAULT_BLACK", + "value": 1 + }, + { + "name": "COLOR_DEFAULT_TRANSPARENT", + "value": 2 + }, + { + "name": "COLOR_DEFAULT_MAX", + "value": 3 + } + ] + }, + { + "name": "TextureFilter", + "is_bitfield": false, + "values": [ + { + "name": "FILTER_DEFAULT", + "value": 0 + }, + { + "name": "FILTER_NEAREST", + "value": 1 + }, + { + "name": "FILTER_LINEAR", + "value": 2 + }, + { + "name": "FILTER_NEAREST_MIPMAP", + "value": 3 + }, + { + "name": "FILTER_LINEAR_MIPMAP", + "value": 4 + }, + { + "name": "FILTER_NEAREST_MIPMAP_ANISOTROPIC", + "value": 5 + }, + { + "name": "FILTER_LINEAR_MIPMAP_ANISOTROPIC", + "value": 6 + }, + { + "name": "FILTER_MAX", + "value": 7 + } + ] + }, + { + "name": "TextureRepeat", + "is_bitfield": false, + "values": [ + { + "name": "REPEAT_DEFAULT", + "value": 0 + }, + { + "name": "REPEAT_ENABLED", + "value": 1 + }, + { + "name": "REPEAT_DISABLED", + "value": 2 + }, + { + "name": "REPEAT_MAX", + "value": 3 + } + ] + }, + { + "name": "TextureSource", + "is_bitfield": false, + "values": [ + { + "name": "SOURCE_NONE", + "value": 0 + }, + { + "name": "SOURCE_SCREEN", + "value": 1 + }, + { + "name": "SOURCE_DEPTH", + "value": 2 + }, + { + "name": "SOURCE_NORMAL_ROUGHNESS", + "value": 3 + }, + { + "name": "SOURCE_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_texture_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2227296876, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeTextureParameter.TextureType" + } + ] + }, + { + "name": "get_texture_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 367922070, + "return_value": { + "type": "enum::VisualShaderNodeTextureParameter.TextureType" + } + }, + { + "name": "set_color_default", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4217624432, + "arguments": [ + { + "name": "color", + "type": "enum::VisualShaderNodeTextureParameter.ColorDefault" + } + ] + }, + { + "name": "get_color_default", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3837060134, + "return_value": { + "type": "enum::VisualShaderNodeTextureParameter.ColorDefault" + } + }, + { + "name": "set_texture_filter", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2147684752, + "arguments": [ + { + "name": "filter", + "type": "enum::VisualShaderNodeTextureParameter.TextureFilter" + } + ] + }, + { + "name": "get_texture_filter", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4184490817, + "return_value": { + "type": "enum::VisualShaderNodeTextureParameter.TextureFilter" + } + }, + { + "name": "set_texture_repeat", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2036143070, + "arguments": [ + { + "name": "repeat", + "type": "enum::VisualShaderNodeTextureParameter.TextureRepeat" + } + ] + }, + { + "name": "get_texture_repeat", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1690132794, + "return_value": { + "type": "enum::VisualShaderNodeTextureParameter.TextureRepeat" + } + }, + { + "name": "set_texture_source", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1212687372, + "arguments": [ + { + "name": "source", + "type": "enum::VisualShaderNodeTextureParameter.TextureSource" + } + ] + }, + { + "name": "get_texture_source", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2039092262, + "return_value": { + "type": "enum::VisualShaderNodeTextureParameter.TextureSource" + } + } + ], + "properties": [ + { + "type": "int", + "name": "texture_type", + "setter": "set_texture_type", + "getter": "get_texture_type" + }, + { + "type": "int", + "name": "color_default", + "setter": "set_color_default", + "getter": "get_color_default" + }, + { + "type": "int", + "name": "texture_filter", + "setter": "set_texture_filter", + "getter": "get_texture_filter" + }, + { + "type": "int", + "name": "texture_repeat", + "setter": "set_texture_repeat", + "getter": "get_texture_repeat" + }, + { + "type": "int", + "name": "texture_source", + "setter": "set_texture_source", + "getter": "get_texture_source" + } + ] + }, + { + "name": "VisualShaderNodeTextureParameterTriplanar", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeTextureParameter", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTextureSDF", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTextureSDFNormal", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTransformCompose", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTransformConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "constant", + "type": "Transform3D" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + } + ], + "properties": [ + { + "type": "Transform3D", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeTransformDecompose", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeTransformFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_INVERSE", + "value": 0 + }, + { + "name": "FUNC_TRANSPOSE", + "value": 1 + }, + { + "name": "FUNC_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2900990409, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeTransformFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2839926569, + "return_value": { + "type": "enum::VisualShaderNodeTransformFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeTransformOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_AxB", + "value": 0 + }, + { + "name": "OP_BxA", + "value": 1 + }, + { + "name": "OP_AxB_COMP", + "value": 2 + }, + { + "name": "OP_BxA_COMP", + "value": 3 + }, + { + "name": "OP_ADD", + "value": 4 + }, + { + "name": "OP_A_MINUS_B", + "value": 5 + }, + { + "name": "OP_B_MINUS_A", + "value": 6 + }, + { + "name": "OP_A_DIV_B", + "value": 7 + }, + { + "name": "OP_B_DIV_A", + "value": 8 + }, + { + "name": "OP_MAX", + "value": 9 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2287310733, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeTransformOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1238663601, + "return_value": { + "type": "enum::VisualShaderNodeTransformOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeTransformParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "value", + "type": "Transform3D" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "Transform3D", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeTransformVecMult", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_AxB", + "value": 0 + }, + { + "name": "OP_BxA", + "value": 1 + }, + { + "name": "OP_3x3_AxB", + "value": 2 + }, + { + "name": "OP_3x3_BxA", + "value": 3 + }, + { + "name": "OP_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1785665912, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeTransformVecMult.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1622088722, + "return_value": { + "type": "enum::VisualShaderNodeTransformVecMult.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeUIntConstant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "constant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeUIntFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_NEGATE", + "value": 0 + }, + { + "name": "FUNC_BITWISE_NOT", + "value": 1 + }, + { + "name": "FUNC_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2273148961, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeUIntFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4187123296, + "return_value": { + "type": "enum::VisualShaderNodeUIntFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeUIntOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_ADD", + "value": 0 + }, + { + "name": "OP_SUB", + "value": 1 + }, + { + "name": "OP_MUL", + "value": 2 + }, + { + "name": "OP_DIV", + "value": 3 + }, + { + "name": "OP_MOD", + "value": 4 + }, + { + "name": "OP_MAX", + "value": 5 + }, + { + "name": "OP_MIN", + "value": 6 + }, + { + "name": "OP_BITWISE_AND", + "value": 7 + }, + { + "name": "OP_BITWISE_OR", + "value": 8 + }, + { + "name": "OP_BITWISE_XOR", + "value": 9 + }, + { + "name": "OP_BITWISE_LEFT_SHIFT", + "value": 10 + }, + { + "name": "OP_BITWISE_RIGHT_SHIFT", + "value": 11 + }, + { + "name": "OP_ENUM_SIZE", + "value": 12 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3463048345, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeUIntOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 256631461, + "return_value": { + "type": "enum::VisualShaderNodeUIntOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeUIntParameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "value", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "int", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeUVFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_PANNING", + "value": 0 + }, + { + "name": "FUNC_SCALING", + "value": 1 + }, + { + "name": "FUNC_MAX", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 765791915, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeUVFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3772902164, + "return_value": { + "type": "enum::VisualShaderNodeUVFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeUVPolarCoord", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNode", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVarying", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "methods": [ + { + "name": "set_varying_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_varying_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_varying_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3565867981, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShader.VaryingType" + } + ] + }, + { + "name": "get_varying_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 523183580, + "return_value": { + "type": "enum::VisualShader.VaryingType" + } + } + ], + "properties": [ + { + "type": "StringName", + "name": "varying_name", + "setter": "set_varying_name", + "getter": "get_varying_name" + }, + { + "type": "int", + "name": "varying_type", + "setter": "set_varying_type", + "getter": "get_varying_type" + } + ] + }, + { + "name": "VisualShaderNodeVaryingGetter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVarying", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVaryingSetter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVarying", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVec2Constant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "constant", + "type": "Vector2" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeVec2Parameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "value", + "type": "Vector2" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "Vector2", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeVec3Constant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "constant", + "type": "Vector3" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "Vector3", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeVec3Parameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "value", + "type": "Vector3" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "Vector3", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeVec4Constant", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeConstant", + "api_type": "core", + "methods": [ + { + "name": "set_constant", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1727505552, + "arguments": [ + { + "name": "constant", + "type": "Quaternion" + } + ] + }, + { + "name": "get_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1222331677, + "return_value": { + "type": "Quaternion" + } + } + ], + "properties": [ + { + "type": "Quaternion", + "name": "constant", + "setter": "set_constant", + "getter": "get_constant" + } + ] + }, + { + "name": "VisualShaderNodeVec4Parameter", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeParameter", + "api_type": "core", + "methods": [ + { + "name": "set_default_value_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_default_value_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_default_value", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 643568085, + "arguments": [ + { + "name": "value", + "type": "Vector4" + } + ] + }, + { + "name": "get_default_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2435802345, + "return_value": { + "type": "Vector4" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "default_value_enabled", + "setter": "set_default_value_enabled", + "getter": "is_default_value_enabled" + }, + { + "type": "Vector4", + "name": "default_value", + "setter": "set_default_value", + "getter": "get_default_value" + } + ] + }, + { + "name": "VisualShaderNodeVectorBase", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "VisualShaderNode", + "api_type": "core", + "enums": [ + { + "name": "OpType", + "is_bitfield": false, + "values": [ + { + "name": "OP_TYPE_VECTOR_2D", + "value": 0 + }, + { + "name": "OP_TYPE_VECTOR_3D", + "value": 1 + }, + { + "name": "OP_TYPE_VECTOR_4D", + "value": 2 + }, + { + "name": "OP_TYPE_MAX", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_op_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1692596998, + "arguments": [ + { + "name": "type", + "type": "enum::VisualShaderNodeVectorBase.OpType" + } + ] + }, + { + "name": "get_op_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2568738462, + "return_value": { + "type": "enum::VisualShaderNodeVectorBase.OpType" + } + } + ], + "properties": [ + { + "type": "int", + "name": "op_type", + "setter": "set_op_type", + "getter": "get_op_type" + } + ] + }, + { + "name": "VisualShaderNodeVectorCompose", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVectorDecompose", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVectorDistance", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVectorFunc", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core", + "enums": [ + { + "name": "Function", + "is_bitfield": false, + "values": [ + { + "name": "FUNC_NORMALIZE", + "value": 0 + }, + { + "name": "FUNC_SATURATE", + "value": 1 + }, + { + "name": "FUNC_NEGATE", + "value": 2 + }, + { + "name": "FUNC_RECIPROCAL", + "value": 3 + }, + { + "name": "FUNC_ABS", + "value": 4 + }, + { + "name": "FUNC_ACOS", + "value": 5 + }, + { + "name": "FUNC_ACOSH", + "value": 6 + }, + { + "name": "FUNC_ASIN", + "value": 7 + }, + { + "name": "FUNC_ASINH", + "value": 8 + }, + { + "name": "FUNC_ATAN", + "value": 9 + }, + { + "name": "FUNC_ATANH", + "value": 10 + }, + { + "name": "FUNC_CEIL", + "value": 11 + }, + { + "name": "FUNC_COS", + "value": 12 + }, + { + "name": "FUNC_COSH", + "value": 13 + }, + { + "name": "FUNC_DEGREES", + "value": 14 + }, + { + "name": "FUNC_EXP", + "value": 15 + }, + { + "name": "FUNC_EXP2", + "value": 16 + }, + { + "name": "FUNC_FLOOR", + "value": 17 + }, + { + "name": "FUNC_FRACT", + "value": 18 + }, + { + "name": "FUNC_INVERSE_SQRT", + "value": 19 + }, + { + "name": "FUNC_LOG", + "value": 20 + }, + { + "name": "FUNC_LOG2", + "value": 21 + }, + { + "name": "FUNC_RADIANS", + "value": 22 + }, + { + "name": "FUNC_ROUND", + "value": 23 + }, + { + "name": "FUNC_ROUNDEVEN", + "value": 24 + }, + { + "name": "FUNC_SIGN", + "value": 25 + }, + { + "name": "FUNC_SIN", + "value": 26 + }, + { + "name": "FUNC_SINH", + "value": 27 + }, + { + "name": "FUNC_SQRT", + "value": 28 + }, + { + "name": "FUNC_TAN", + "value": 29 + }, + { + "name": "FUNC_TANH", + "value": 30 + }, + { + "name": "FUNC_TRUNC", + "value": 31 + }, + { + "name": "FUNC_ONEMINUS", + "value": 32 + }, + { + "name": "FUNC_MAX", + "value": 33 + } + ] + } + ], + "methods": [ + { + "name": "set_function", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 629964457, + "arguments": [ + { + "name": "func", + "type": "enum::VisualShaderNodeVectorFunc.Function" + } + ] + }, + { + "name": "get_function", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4047776843, + "return_value": { + "type": "enum::VisualShaderNodeVectorFunc.Function" + } + } + ], + "properties": [ + { + "type": "int", + "name": "function", + "setter": "set_function", + "getter": "get_function" + } + ] + }, + { + "name": "VisualShaderNodeVectorLen", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VisualShaderNodeVectorOp", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core", + "enums": [ + { + "name": "Operator", + "is_bitfield": false, + "values": [ + { + "name": "OP_ADD", + "value": 0 + }, + { + "name": "OP_SUB", + "value": 1 + }, + { + "name": "OP_MUL", + "value": 2 + }, + { + "name": "OP_DIV", + "value": 3 + }, + { + "name": "OP_MOD", + "value": 4 + }, + { + "name": "OP_POW", + "value": 5 + }, + { + "name": "OP_MAX", + "value": 6 + }, + { + "name": "OP_MIN", + "value": 7 + }, + { + "name": "OP_CROSS", + "value": 8 + }, + { + "name": "OP_ATAN2", + "value": 9 + }, + { + "name": "OP_REFLECT", + "value": 10 + }, + { + "name": "OP_STEP", + "value": 11 + }, + { + "name": "OP_ENUM_SIZE", + "value": 12 + } + ] + } + ], + "methods": [ + { + "name": "set_operator", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3371507302, + "arguments": [ + { + "name": "op", + "type": "enum::VisualShaderNodeVectorOp.Operator" + } + ] + }, + { + "name": "get_operator", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 11793929, + "return_value": { + "type": "enum::VisualShaderNodeVectorOp.Operator" + } + } + ], + "properties": [ + { + "type": "int", + "name": "operator", + "setter": "set_operator", + "getter": "get_operator" + } + ] + }, + { + "name": "VisualShaderNodeVectorRefract", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "VisualShaderNodeVectorBase", + "api_type": "core" + }, + { + "name": "VoxelGI", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "VisualInstance3D", + "api_type": "core", + "enums": [ + { + "name": "Subdiv", + "is_bitfield": false, + "values": [ + { + "name": "SUBDIV_64", + "value": 0 + }, + { + "name": "SUBDIV_128", + "value": 1 + }, + { + "name": "SUBDIV_256", + "value": 2 + }, + { + "name": "SUBDIV_512", + "value": 3 + }, + { + "name": "SUBDIV_MAX", + "value": 4 + } + ] + } + ], + "methods": [ + { + "name": "set_probe_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1637849675, + "arguments": [ + { + "name": "data", + "type": "VoxelGIData" + } + ] + }, + { + "name": "get_probe_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1730645405, + "return_value": { + "type": "VoxelGIData" + } + }, + { + "name": "set_subdiv", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240898472, + "arguments": [ + { + "name": "subdiv", + "type": "enum::VoxelGI.Subdiv" + } + ] + }, + { + "name": "get_subdiv", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4261647950, + "return_value": { + "type": "enum::VoxelGI.Subdiv" + } + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "size", + "type": "Vector3" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817810567, + "arguments": [ + { + "name": "camera_attributes", + "type": "CameraAttributes" + } + ] + }, + { + "name": "get_camera_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3921283215, + "return_value": { + "type": "CameraAttributes" + } + }, + { + "name": "bake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2781551026, + "arguments": [ + { + "name": "from_node", + "type": "Node", + "default_value": "null" + }, + { + "name": "create_visual_debug", + "type": "bool", + "default_value": "false" + } + ] + }, + { + "name": "debug_bake", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + } + ], + "properties": [ + { + "type": "int", + "name": "subdiv", + "setter": "set_subdiv", + "getter": "get_subdiv" + }, + { + "type": "Vector3", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "CameraAttributesPractical,CameraAttributesPhysical", + "name": "camera_attributes", + "setter": "set_camera_attributes", + "getter": "get_camera_attributes" + }, + { + "type": "VoxelGIData", + "name": "data", + "setter": "set_probe_data", + "getter": "get_probe_data" + } + ] + }, + { + "name": "VoxelGIData", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "allocate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4041601946, + "arguments": [ + { + "name": "to_cell_xform", + "type": "Transform3D" + }, + { + "name": "aabb", + "type": "AABB" + }, + { + "name": "octree_size", + "type": "Vector3" + }, + { + "name": "octree_cells", + "type": "PackedByteArray" + }, + { + "name": "data_cells", + "type": "PackedByteArray" + }, + { + "name": "distance_field", + "type": "PackedByteArray" + }, + { + "name": "level_counts", + "type": "PackedInt32Array" + } + ] + }, + { + "name": "get_bounds", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1068685055, + "return_value": { + "type": "AABB" + } + }, + { + "name": "get_octree_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_to_cell_xform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_octree_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "get_data_cells", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2362200018, + "return_value": { + "type": "PackedByteArray" + } + }, + { + "name": "get_level_counts", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1930428628, + "return_value": { + "type": "PackedInt32Array" + } + }, + { + "name": "set_dynamic_range", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "dynamic_range", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_dynamic_range", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_energy", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "energy", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_energy", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_normal_bias", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "bias", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_normal_bias", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_propagation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "propagation", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_propagation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_interior", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "interior", + "type": "bool" + } + ] + }, + { + "name": "is_interior", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_use_two_bounces", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_two_bounces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "dynamic_range", + "setter": "set_dynamic_range", + "getter": "get_dynamic_range" + }, + { + "type": "float", + "name": "energy", + "setter": "set_energy", + "getter": "get_energy" + }, + { + "type": "float", + "name": "bias", + "setter": "set_bias", + "getter": "get_bias" + }, + { + "type": "float", + "name": "normal_bias", + "setter": "set_normal_bias", + "getter": "get_normal_bias" + }, + { + "type": "float", + "name": "propagation", + "setter": "set_propagation", + "getter": "get_propagation" + }, + { + "type": "bool", + "name": "use_two_bounces", + "setter": "set_use_two_bounces", + "getter": "is_using_two_bounces" + }, + { + "type": "bool", + "name": "interior", + "setter": "set_interior", + "getter": "is_interior" + } + ] + }, + { + "name": "WeakRef", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "get_ref", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1214101251, + "return_value": { + "type": "Variant" + } + } + ] + }, + { + "name": "WebRTCDataChannel", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "PacketPeer", + "api_type": "core", + "enums": [ + { + "name": "WriteMode", + "is_bitfield": false, + "values": [ + { + "name": "WRITE_MODE_TEXT", + "value": 0 + }, + { + "name": "WRITE_MODE_BINARY", + "value": 1 + } + ] + }, + { + "name": "ChannelState", + "is_bitfield": false, + "values": [ + { + "name": "STATE_CONNECTING", + "value": 0 + }, + { + "name": "STATE_OPEN", + "value": 1 + }, + { + "name": "STATE_CLOSING", + "value": 2 + }, + { + "name": "STATE_CLOSED", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "was_string_packet", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_write_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1999768052, + "arguments": [ + { + "name": "write_mode", + "type": "enum::WebRTCDataChannel.WriteMode" + } + ] + }, + { + "name": "get_write_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2848495172, + "return_value": { + "type": "enum::WebRTCDataChannel.WriteMode" + } + }, + { + "name": "get_ready_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3501143017, + "return_value": { + "type": "enum::WebRTCDataChannel.ChannelState" + } + }, + { + "name": "get_label", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_ordered", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_id", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_max_packet_life_time", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_max_retransmits", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_protocol", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_negotiated", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_buffered_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "int", + "name": "write_mode", + "setter": "set_write_mode", + "getter": "get_write_mode" + } + ] + }, + { + "name": "WebRTCDataChannelExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "WebRTCDataChannel", + "api_type": "core", + "methods": [ + { + "name": "_get_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "r_buffer", + "type": "const uint8_t **" + }, + { + "name": "r_buffer_size", + "type": "int32_t*" + } + ] + }, + { + "name": "_put_packet", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_buffer", + "type": "const uint8_t*" + }, + { + "name": "p_buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "_get_available_packet_count", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_max_packet_size", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_poll", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "_close", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_set_write_mode", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "p_write_mode", + "type": "enum::WebRTCDataChannel.WriteMode" + } + ] + }, + { + "name": "_get_write_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::WebRTCDataChannel.WriteMode" + } + }, + { + "name": "_was_string_packet", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_ready_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::WebRTCDataChannel.ChannelState" + } + }, + { + "name": "_get_label", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_is_ordered", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_max_packet_life_time", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_max_retransmits", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_protocol", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "String" + } + }, + { + "name": "_is_negotiated", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_get_buffered_amount", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ] + }, + { + "name": "WebRTCMultiplayerPeer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerPeer", + "api_type": "core", + "methods": [ + { + "name": "create_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2865356025, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "channels_config", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "create_client", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1777354631, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "channels_config", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "create_mesh", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1777354631, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "channels_config", + "type": "Array", + "default_value": "[]" + } + ] + }, + { + "name": "add_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2555866323, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "peer", + "type": "WebRTCPeerConnection" + }, + { + "name": "peer_id", + "type": "int", + "meta": "int32" + }, + { + "name": "unreliable_lifetime", + "type": "int", + "meta": "int32", + "default_value": "1" + } + ] + }, + { + "name": "remove_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3067735520, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_peer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3554694381, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_peers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2382534195, + "return_value": { + "type": "Dictionary" + } + } + ] + }, + { + "name": "WebRTCPeerConnection", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "ConnectionState", + "is_bitfield": false, + "values": [ + { + "name": "STATE_NEW", + "value": 0 + }, + { + "name": "STATE_CONNECTING", + "value": 1 + }, + { + "name": "STATE_CONNECTED", + "value": 2 + }, + { + "name": "STATE_DISCONNECTED", + "value": 3 + }, + { + "name": "STATE_FAILED", + "value": 4 + }, + { + "name": "STATE_CLOSED", + "value": 5 + } + ] + }, + { + "name": "GatheringState", + "is_bitfield": false, + "values": [ + { + "name": "GATHERING_STATE_NEW", + "value": 0 + }, + { + "name": "GATHERING_STATE_GATHERING", + "value": 1 + }, + { + "name": "GATHERING_STATE_COMPLETE", + "value": 2 + } + ] + }, + { + "name": "SignalingState", + "is_bitfield": false, + "values": [ + { + "name": "SIGNALING_STATE_STABLE", + "value": 0 + }, + { + "name": "SIGNALING_STATE_HAVE_LOCAL_OFFER", + "value": 1 + }, + { + "name": "SIGNALING_STATE_HAVE_REMOTE_OFFER", + "value": 2 + }, + { + "name": "SIGNALING_STATE_HAVE_LOCAL_PRANSWER", + "value": 3 + }, + { + "name": "SIGNALING_STATE_HAVE_REMOTE_PRANSWER", + "value": 4 + }, + { + "name": "SIGNALING_STATE_CLOSED", + "value": 5 + } + ] + } + ], + "methods": [ + { + "name": "set_default_extension", + "is_const": false, + "is_vararg": false, + "is_static": true, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "extension_class", + "type": "StringName" + } + ] + }, + { + "name": "initialize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2625064318, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "configuration", + "type": "Dictionary", + "default_value": "{}" + } + ] + }, + { + "name": "create_data_channel", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3997447457, + "return_value": { + "type": "WebRTCDataChannel" + }, + "arguments": [ + { + "name": "label", + "type": "String" + }, + { + "name": "options", + "type": "Dictionary", + "default_value": "{}" + } + ] + }, + { + "name": "create_offer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "set_local_description", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "type", + "type": "String" + }, + { + "name": "sdp", + "type": "String" + } + ] + }, + { + "name": "set_remote_description", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 852856452, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "type", + "type": "String" + }, + { + "name": "sdp", + "type": "String" + } + ] + }, + { + "name": "add_ice_candidate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3958950400, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "media", + "type": "String" + }, + { + "name": "index", + "type": "int", + "meta": "int32" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_connection_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2275710506, + "return_value": { + "type": "enum::WebRTCPeerConnection.ConnectionState" + } + }, + { + "name": "get_gathering_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4262591401, + "return_value": { + "type": "enum::WebRTCPeerConnection.GatheringState" + } + }, + { + "name": "get_signaling_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3342956226, + "return_value": { + "type": "enum::WebRTCPeerConnection.SignalingState" + } + } + ], + "signals": [ + { + "name": "session_description_created", + "arguments": [ + { + "name": "type", + "type": "String" + }, + { + "name": "sdp", + "type": "String" + } + ] + }, + { + "name": "ice_candidate_created", + "arguments": [ + { + "name": "media", + "type": "String" + }, + { + "name": "index", + "type": "int" + }, + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "data_channel_received", + "arguments": [ + { + "name": "channel", + "type": "WebRTCDataChannel" + } + ] + } + ] + }, + { + "name": "WebRTCPeerConnectionExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "WebRTCPeerConnection", + "api_type": "core", + "methods": [ + { + "name": "_get_connection_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::WebRTCPeerConnection.ConnectionState" + } + }, + { + "name": "_get_gathering_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::WebRTCPeerConnection.GatheringState" + } + }, + { + "name": "_get_signaling_state", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::WebRTCPeerConnection.SignalingState" + } + }, + { + "name": "_initialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_config", + "type": "Dictionary" + } + ] + }, + { + "name": "_create_data_channel", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Object" + }, + "arguments": [ + { + "name": "p_label", + "type": "String" + }, + { + "name": "p_config", + "type": "Dictionary" + } + ] + }, + { + "name": "_create_offer", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "_set_remote_description", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_type", + "type": "String" + }, + { + "name": "p_sdp", + "type": "String" + } + ] + }, + { + "name": "_set_local_description", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_type", + "type": "String" + }, + { + "name": "p_sdp", + "type": "String" + } + ] + }, + { + "name": "_add_ice_candidate", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "p_sdp_mid_name", + "type": "String" + }, + { + "name": "p_sdp_mline_index", + "type": "int", + "meta": "int32" + }, + { + "name": "p_sdp_name", + "type": "String" + } + ] + }, + { + "name": "_poll", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "_close", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + } + ] + }, + { + "name": "WebSocketMultiplayerPeer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "MultiplayerPeer", + "api_type": "core", + "methods": [ + { + "name": "create_client", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3097527179, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "url", + "type": "String" + }, + { + "name": "tls_client_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "create_server", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 337374795, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "port", + "type": "int", + "meta": "int32" + }, + { + "name": "bind_address", + "type": "String", + "default_value": "\"*\"" + }, + { + "name": "tls_server_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "get_peer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1381378851, + "return_value": { + "type": "WebSocketPeer" + }, + "arguments": [ + { + "name": "peer_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_peer_address", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_peer_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_supported_protocols", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_supported_protocols", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "protocols", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_handshake_headers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_handshake_headers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "protocols", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_inbound_buffer_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_inbound_buffer_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outbound_buffer_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outbound_buffer_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_handshake_timeout", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_handshake_timeout", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "timeout", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "set_max_queued_packets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "max_queued_packets", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_queued_packets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "PackedStringArray", + "name": "supported_protocols", + "setter": "set_supported_protocols", + "getter": "get_supported_protocols" + }, + { + "type": "PackedStringArray", + "name": "handshake_headers", + "setter": "set_handshake_headers", + "getter": "get_handshake_headers" + }, + { + "type": "int", + "name": "inbound_buffer_size", + "setter": "set_inbound_buffer_size", + "getter": "get_inbound_buffer_size" + }, + { + "type": "int", + "name": "outbound_buffer_size", + "setter": "set_outbound_buffer_size", + "getter": "get_outbound_buffer_size" + }, + { + "type": "float", + "name": "handshake_timeout", + "setter": "set_handshake_timeout", + "getter": "get_handshake_timeout" + }, + { + "type": "int", + "name": "max_queued_packets", + "setter": "set_max_queued_packets", + "getter": "get_max_queued_packets" + } + ] + }, + { + "name": "WebSocketPeer", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "PacketPeer", + "api_type": "core", + "enums": [ + { + "name": "WriteMode", + "is_bitfield": false, + "values": [ + { + "name": "WRITE_MODE_TEXT", + "value": 0 + }, + { + "name": "WRITE_MODE_BINARY", + "value": 1 + } + ] + }, + { + "name": "State", + "is_bitfield": false, + "values": [ + { + "name": "STATE_CONNECTING", + "value": 0 + }, + { + "name": "STATE_OPEN", + "value": 1 + }, + { + "name": "STATE_CLOSING", + "value": 2 + }, + { + "name": "STATE_CLOSED", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "connect_to_url", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3097527179, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "url", + "type": "String" + }, + { + "name": "tls_client_options", + "type": "TLSOptions", + "default_value": "null" + } + ] + }, + { + "name": "accept_stream", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 255125695, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "stream", + "type": "StreamPeer" + } + ] + }, + { + "name": "send", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3440492527, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "message", + "type": "PackedByteArray" + }, + { + "name": "write_mode", + "type": "enum::WebSocketPeer.WriteMode", + "default_value": "1" + } + ] + }, + { + "name": "send_text", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "message", + "type": "String" + } + ] + }, + { + "name": "was_string_packet", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "poll", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1047156615, + "arguments": [ + { + "name": "code", + "type": "int", + "meta": "int32", + "default_value": "1000" + }, + { + "name": "reason", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_connected_host", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_connected_port", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint16" + } + }, + { + "name": "get_selected_protocol", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_requested_url", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_no_delay", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_current_outbound_buffered_amount", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_ready_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 346482985, + "return_value": { + "type": "enum::WebSocketPeer.State" + } + }, + { + "name": "get_close_code", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_close_reason", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_supported_protocols", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_supported_protocols", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "protocols", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_handshake_headers", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1139954409, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "set_handshake_headers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4015028928, + "arguments": [ + { + "name": "protocols", + "type": "PackedStringArray" + } + ] + }, + { + "name": "get_inbound_buffer_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_inbound_buffer_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_outbound_buffer_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_outbound_buffer_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "set_max_queued_packets", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "buffer_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_max_queued_packets", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + } + ], + "properties": [ + { + "type": "PackedStringArray", + "name": "supported_protocols", + "setter": "set_supported_protocols", + "getter": "get_supported_protocols" + }, + { + "type": "PackedStringArray", + "name": "handshake_headers", + "setter": "set_handshake_headers", + "getter": "get_handshake_headers" + }, + { + "type": "int", + "name": "inbound_buffer_size", + "setter": "set_inbound_buffer_size", + "getter": "get_inbound_buffer_size" + }, + { + "type": "int", + "name": "outbound_buffer_size", + "setter": "set_outbound_buffer_size", + "getter": "get_outbound_buffer_size" + }, + { + "type": "int", + "name": "max_queued_packets", + "setter": "set_max_queued_packets", + "getter": "get_max_queued_packets" + } + ] + }, + { + "name": "WebXRInterface", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "XRInterface", + "api_type": "core", + "enums": [ + { + "name": "TargetRayMode", + "is_bitfield": false, + "values": [ + { + "name": "TARGET_RAY_MODE_UNKNOWN", + "value": 0 + }, + { + "name": "TARGET_RAY_MODE_GAZE", + "value": 1 + }, + { + "name": "TARGET_RAY_MODE_TRACKED_POINTER", + "value": 2 + }, + { + "name": "TARGET_RAY_MODE_SCREEN", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "is_session_supported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "session_mode", + "type": "String" + } + ] + }, + { + "name": "set_session_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "session_mode", + "type": "String" + } + ] + }, + { + "name": "get_session_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_required_features", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "required_features", + "type": "String" + } + ] + }, + { + "name": "get_required_features", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_optional_features", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "optional_features", + "type": "String" + } + ] + }, + { + "name": "get_optional_features", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_reference_space_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_requested_reference_space_types", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "requested_reference_space_types", + "type": "String" + } + ] + }, + { + "name": "get_requested_reference_space_types", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "is_input_source_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "input_source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_input_source_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 636011756, + "return_value": { + "type": "XRPositionalTracker" + }, + "arguments": [ + { + "name": "input_source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_input_source_target_ray_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2852387453, + "return_value": { + "type": "enum::WebXRInterface.TargetRayMode" + }, + "arguments": [ + { + "name": "input_source_id", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_visibility_state", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + } + ], + "signals": [ + { + "name": "session_supported", + "arguments": [ + { + "name": "session_mode", + "type": "String" + }, + { + "name": "supported", + "type": "bool" + } + ] + }, + { + "name": "session_started" + }, + { + "name": "session_ended" + }, + { + "name": "session_failed", + "arguments": [ + { + "name": "message", + "type": "String" + } + ] + }, + { + "name": "selectstart", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "select", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "selectend", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "squeezestart", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "squeeze", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "squeezeend", + "arguments": [ + { + "name": "input_source_id", + "type": "int" + } + ] + }, + { + "name": "visibility_state_changed" + }, + { + "name": "reference_space_reset" + } + ], + "properties": [ + { + "type": "String", + "name": "session_mode", + "setter": "set_session_mode", + "getter": "get_session_mode" + }, + { + "type": "String", + "name": "required_features", + "setter": "set_required_features", + "getter": "get_required_features" + }, + { + "type": "String", + "name": "optional_features", + "setter": "set_optional_features", + "getter": "get_optional_features" + }, + { + "type": "String", + "name": "requested_reference_space_types", + "setter": "set_requested_reference_space_types", + "getter": "get_requested_reference_space_types" + }, + { + "type": "String", + "name": "reference_space_type", + "getter": "get_reference_space_type" + }, + { + "type": "String", + "name": "visibility_state", + "getter": "get_visibility_state" + } + ] + }, + { + "name": "Window", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Viewport", + "api_type": "core", + "constants": [ + { + "name": "NOTIFICATION_VISIBILITY_CHANGED", + "value": 30 + }, + { + "name": "NOTIFICATION_THEME_CHANGED", + "value": 32 + } + ], + "enums": [ + { + "name": "Mode", + "is_bitfield": false, + "values": [ + { + "name": "MODE_WINDOWED", + "value": 0 + }, + { + "name": "MODE_MINIMIZED", + "value": 1 + }, + { + "name": "MODE_MAXIMIZED", + "value": 2 + }, + { + "name": "MODE_FULLSCREEN", + "value": 3 + }, + { + "name": "MODE_EXCLUSIVE_FULLSCREEN", + "value": 4 + } + ] + }, + { + "name": "Flags", + "is_bitfield": false, + "values": [ + { + "name": "FLAG_RESIZE_DISABLED", + "value": 0 + }, + { + "name": "FLAG_BORDERLESS", + "value": 1 + }, + { + "name": "FLAG_ALWAYS_ON_TOP", + "value": 2 + }, + { + "name": "FLAG_TRANSPARENT", + "value": 3 + }, + { + "name": "FLAG_NO_FOCUS", + "value": 4 + }, + { + "name": "FLAG_POPUP", + "value": 5 + }, + { + "name": "FLAG_EXTEND_TO_TITLE", + "value": 6 + }, + { + "name": "FLAG_MOUSE_PASSTHROUGH", + "value": 7 + }, + { + "name": "FLAG_MAX", + "value": 8 + } + ] + }, + { + "name": "ContentScaleMode", + "is_bitfield": false, + "values": [ + { + "name": "CONTENT_SCALE_MODE_DISABLED", + "value": 0 + }, + { + "name": "CONTENT_SCALE_MODE_CANVAS_ITEMS", + "value": 1 + }, + { + "name": "CONTENT_SCALE_MODE_VIEWPORT", + "value": 2 + } + ] + }, + { + "name": "ContentScaleAspect", + "is_bitfield": false, + "values": [ + { + "name": "CONTENT_SCALE_ASPECT_IGNORE", + "value": 0 + }, + { + "name": "CONTENT_SCALE_ASPECT_KEEP", + "value": 1 + }, + { + "name": "CONTENT_SCALE_ASPECT_KEEP_WIDTH", + "value": 2 + }, + { + "name": "CONTENT_SCALE_ASPECT_KEEP_HEIGHT", + "value": 3 + }, + { + "name": "CONTENT_SCALE_ASPECT_EXPAND", + "value": 4 + } + ] + }, + { + "name": "LayoutDirection", + "is_bitfield": false, + "values": [ + { + "name": "LAYOUT_DIRECTION_INHERITED", + "value": 0 + }, + { + "name": "LAYOUT_DIRECTION_LOCALE", + "value": 1 + }, + { + "name": "LAYOUT_DIRECTION_LTR", + "value": 2 + }, + { + "name": "LAYOUT_DIRECTION_RTL", + "value": 3 + } + ] + }, + { + "name": "WindowInitialPosition", + "is_bitfield": false, + "values": [ + { + "name": "WINDOW_INITIAL_POSITION_ABSOLUTE", + "value": 0 + }, + { + "name": "WINDOW_INITIAL_POSITION_CENTER_PRIMARY_SCREEN", + "value": 1 + }, + { + "name": "WINDOW_INITIAL_POSITION_CENTER_MAIN_WINDOW_SCREEN", + "value": 2 + }, + { + "name": "WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN", + "value": 3 + } + ] + } + ], + "methods": [ + { + "name": "set_title", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "title", + "type": "String" + } + ] + }, + { + "name": "get_title", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_initial_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4084468099, + "arguments": [ + { + "name": "initial_position", + "type": "enum::Window.WindowInitialPosition" + } + ] + }, + { + "name": "get_initial_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4294066647, + "return_value": { + "type": "enum::Window.WindowInitialPosition" + } + }, + { + "name": "set_current_screen", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "index", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_current_screen", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "get_position", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "reset_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_position_with_decorations", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "get_size_with_decorations", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_max_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "max_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_max_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_min_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "min_size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_min_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3095236531, + "arguments": [ + { + "name": "mode", + "type": "enum::Window.Mode" + } + ] + }, + { + "name": "get_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2566346114, + "return_value": { + "type": "enum::Window.Mode" + } + }, + { + "name": "set_flag", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3426449779, + "arguments": [ + { + "name": "flag", + "type": "enum::Window.Flags" + }, + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "get_flag", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3062752289, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "flag", + "type": "enum::Window.Flags" + } + ] + }, + { + "name": "is_maximize_allowed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "request_attention", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "move_to_foreground", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_visible", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "visible", + "type": "bool" + } + ] + }, + { + "name": "is_visible", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "hide", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "show", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_transient", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "transient", + "type": "bool" + } + ] + }, + { + "name": "is_transient", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_exclusive", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "exclusive", + "type": "bool" + } + ] + }, + { + "name": "is_exclusive", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "can_draw", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "has_focus", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "grab_focus", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_ime_active", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "active", + "type": "bool" + } + ] + }, + { + "name": "set_ime_position", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "position", + "type": "Vector2i" + } + ] + }, + { + "name": "is_embedded", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_contents_minimum_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_content_scale_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1130785943, + "arguments": [ + { + "name": "size", + "type": "Vector2i" + } + ] + }, + { + "name": "get_content_scale_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3690982128, + "return_value": { + "type": "Vector2i" + } + }, + { + "name": "set_content_scale_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2937716473, + "arguments": [ + { + "name": "mode", + "type": "enum::Window.ContentScaleMode" + } + ] + }, + { + "name": "get_content_scale_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 161585230, + "return_value": { + "type": "enum::Window.ContentScaleMode" + } + }, + { + "name": "set_content_scale_aspect", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2370399418, + "arguments": [ + { + "name": "aspect", + "type": "enum::Window.ContentScaleAspect" + } + ] + }, + { + "name": "get_content_scale_aspect", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4158790715, + "return_value": { + "type": "enum::Window.ContentScaleAspect" + } + }, + { + "name": "set_content_scale_factor", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "factor", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_content_scale_factor", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_use_font_oversampling", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_using_font_oversampling", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_mouse_passthrough_polygon", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1509147220, + "arguments": [ + { + "name": "polygon", + "type": "PackedVector2Array" + } + ] + }, + { + "name": "get_mouse_passthrough_polygon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2961356807, + "return_value": { + "type": "PackedVector2Array" + } + }, + { + "name": "set_wrap_controls", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_wrapping_controls", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "child_controls_changed", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "set_theme", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2326690814, + "arguments": [ + { + "name": "theme", + "type": "Theme" + } + ] + }, + { + "name": "get_theme", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3846893731, + "return_value": { + "type": "Theme" + } + }, + { + "name": "set_theme_type_variation", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "theme_type", + "type": "StringName" + } + ] + }, + { + "name": "get_theme_type_variation", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "begin_bulk_theme_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "end_bulk_theme_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "add_theme_icon_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1373065600, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "texture", + "type": "Texture2D" + } + ] + }, + { + "name": "add_theme_stylebox_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4188838905, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "stylebox", + "type": "StyleBox" + } + ] + }, + { + "name": "add_theme_font_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3518018674, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "font", + "type": "Font" + } + ] + }, + { + "name": "add_theme_font_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "font_size", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "add_theme_color_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4260178595, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "color", + "type": "Color" + } + ] + }, + { + "name": "add_theme_constant_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2415702435, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "constant", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "remove_theme_icon_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_stylebox_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_font_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_font_size_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_color_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "remove_theme_constant_override", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_theme_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2336455395, + "return_value": { + "type": "Texture2D" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2759935355, + "return_value": { + "type": "StyleBox" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 387378635, + "return_value": { + "type": "Font" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229578101, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2377051548, + "return_value": { + "type": "Color" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 229578101, + "return_value": { + "type": "int", + "meta": "int32" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_icon_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_stylebox_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_font_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_font_size_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_color_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_constant_override", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "has_theme_icon", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_stylebox", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_color", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "has_theme_constant", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1187511791, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "theme_type", + "type": "StringName", + "default_value": "\"\"" + } + ] + }, + { + "name": "get_theme_default_base_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "get_theme_default_font", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229501585, + "return_value": { + "type": "Font" + } + }, + { + "name": "get_theme_default_font_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "set_layout_direction", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3094704184, + "arguments": [ + { + "name": "direction", + "type": "enum::Window.LayoutDirection" + } + ] + }, + { + "name": "get_layout_direction", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3909617982, + "return_value": { + "type": "enum::Window.LayoutDirection" + } + }, + { + "name": "is_layout_rtl", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_auto_translate", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "is_auto_translating", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "popup", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1680304321, + "arguments": [ + { + "name": "rect", + "type": "Rect2i", + "default_value": "Rect2i(0, 0, 0, 0)" + } + ] + }, + { + "name": "popup_on_parent", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1763793166, + "arguments": [ + { + "name": "parent_rect", + "type": "Rect2i" + } + ] + }, + { + "name": "popup_centered_ratio", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1912078273, + "arguments": [ + { + "name": "ratio", + "type": "float", + "meta": "float", + "default_value": "0.8" + } + ] + }, + { + "name": "popup_centered", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3447975422, + "arguments": [ + { + "name": "minsize", + "type": "Vector2i", + "default_value": "Vector2i(0, 0)" + } + ] + }, + { + "name": "popup_centered_clamped", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3728566557, + "arguments": [ + { + "name": "minsize", + "type": "Vector2i", + "default_value": "Vector2i(0, 0)" + }, + { + "name": "fallback_ratio", + "type": "float", + "meta": "float", + "default_value": "0.75" + } + ] + } + ], + "signals": [ + { + "name": "window_input", + "arguments": [ + { + "name": "event", + "type": "InputEvent" + } + ] + }, + { + "name": "files_dropped", + "arguments": [ + { + "name": "files", + "type": "PackedStringArray" + } + ] + }, + { + "name": "mouse_entered" + }, + { + "name": "mouse_exited" + }, + { + "name": "focus_entered" + }, + { + "name": "focus_exited" + }, + { + "name": "close_requested" + }, + { + "name": "go_back_requested" + }, + { + "name": "visibility_changed" + }, + { + "name": "about_to_popup" + }, + { + "name": "theme_changed" + }, + { + "name": "dpi_changed" + }, + { + "name": "titlebar_changed" + } + ], + "properties": [ + { + "type": "int", + "name": "initial_position", + "setter": "set_initial_position", + "getter": "get_initial_position" + }, + { + "type": "String", + "name": "title", + "setter": "set_title", + "getter": "get_title" + }, + { + "type": "Vector2i", + "name": "position", + "setter": "set_position", + "getter": "get_position" + }, + { + "type": "Vector2i", + "name": "size", + "setter": "set_size", + "getter": "get_size" + }, + { + "type": "int", + "name": "mode", + "setter": "set_mode", + "getter": "get_mode" + }, + { + "type": "int", + "name": "current_screen", + "setter": "set_current_screen", + "getter": "get_current_screen" + }, + { + "type": "PackedVector2Array", + "name": "mouse_passthrough_polygon", + "setter": "set_mouse_passthrough_polygon", + "getter": "get_mouse_passthrough_polygon" + }, + { + "type": "bool", + "name": "visible", + "setter": "set_visible", + "getter": "is_visible" + }, + { + "type": "bool", + "name": "wrap_controls", + "setter": "set_wrap_controls", + "getter": "is_wrapping_controls" + }, + { + "type": "bool", + "name": "transient", + "setter": "set_transient", + "getter": "is_transient" + }, + { + "type": "bool", + "name": "exclusive", + "setter": "set_exclusive", + "getter": "is_exclusive" + }, + { + "type": "bool", + "name": "unresizable", + "setter": "set_flag", + "getter": "get_flag", + "index": 0 + }, + { + "type": "bool", + "name": "borderless", + "setter": "set_flag", + "getter": "get_flag", + "index": 1 + }, + { + "type": "bool", + "name": "always_on_top", + "setter": "set_flag", + "getter": "get_flag", + "index": 2 + }, + { + "type": "bool", + "name": "transparent", + "setter": "set_flag", + "getter": "get_flag", + "index": 3 + }, + { + "type": "bool", + "name": "unfocusable", + "setter": "set_flag", + "getter": "get_flag", + "index": 4 + }, + { + "type": "bool", + "name": "popup_window", + "setter": "set_flag", + "getter": "get_flag", + "index": 5 + }, + { + "type": "bool", + "name": "extend_to_title", + "setter": "set_flag", + "getter": "get_flag", + "index": 6 + }, + { + "type": "bool", + "name": "mouse_passthrough", + "setter": "set_flag", + "getter": "get_flag", + "index": 7 + }, + { + "type": "Vector2i", + "name": "min_size", + "setter": "set_min_size", + "getter": "get_min_size" + }, + { + "type": "Vector2i", + "name": "max_size", + "setter": "set_max_size", + "getter": "get_max_size" + }, + { + "type": "Vector2i", + "name": "content_scale_size", + "setter": "set_content_scale_size", + "getter": "get_content_scale_size" + }, + { + "type": "int", + "name": "content_scale_mode", + "setter": "set_content_scale_mode", + "getter": "get_content_scale_mode" + }, + { + "type": "int", + "name": "content_scale_aspect", + "setter": "set_content_scale_aspect", + "getter": "get_content_scale_aspect" + }, + { + "type": "float", + "name": "content_scale_factor", + "setter": "set_content_scale_factor", + "getter": "get_content_scale_factor" + }, + { + "type": "bool", + "name": "auto_translate", + "setter": "set_auto_translate", + "getter": "is_auto_translating" + }, + { + "type": "Theme", + "name": "theme", + "setter": "set_theme", + "getter": "get_theme" + }, + { + "type": "String", + "name": "theme_type_variation", + "setter": "set_theme_type_variation", + "getter": "get_theme_type_variation" + } + ] + }, + { + "name": "WorkerThreadPool", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Object", + "api_type": "core", + "methods": [ + { + "name": "add_task", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3976347598, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "action", + "type": "Callable" + }, + { + "name": "high_priority", + "type": "bool", + "default_value": "false" + }, + { + "name": "description", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "is_task_completed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "task_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "wait_for_task_completion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "task_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "add_group_task", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2377228549, + "return_value": { + "type": "int", + "meta": "int64" + }, + "arguments": [ + { + "name": "action", + "type": "Callable" + }, + { + "name": "elements", + "type": "int", + "meta": "int32" + }, + { + "name": "tasks_needed", + "type": "int", + "meta": "int32", + "default_value": "-1" + }, + { + "name": "high_priority", + "type": "bool", + "default_value": "false" + }, + { + "name": "description", + "type": "String", + "default_value": "\"\"" + } + ] + }, + { + "name": "is_group_task_completed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1116898809, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "group_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "get_group_processed_element_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 923996154, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "group_id", + "type": "int", + "meta": "int64" + } + ] + }, + { + "name": "wait_for_group_task_completion", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1286410249, + "arguments": [ + { + "name": "group_id", + "type": "int", + "meta": "int64" + } + ] + } + ] + }, + { + "name": "World2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_canvas", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_direct_space_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2506717822, + "return_value": { + "type": "PhysicsDirectSpaceState2D" + } + } + ], + "properties": [ + { + "type": "RID", + "name": "canvas", + "getter": "get_canvas" + }, + { + "type": "RID", + "name": "space", + "getter": "get_space" + }, + { + "type": "RID", + "name": "navigation_map", + "getter": "get_navigation_map" + }, + { + "type": "PhysicsDirectSpaceState2D", + "name": "direct_space_state", + "getter": "get_direct_space_state" + } + ] + }, + { + "name": "World3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "get_space", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_navigation_map", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_scenario", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2944877500, + "return_value": { + "type": "RID" + } + }, + { + "name": "set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4143518816, + "arguments": [ + { + "name": "env", + "type": "Environment" + } + ] + }, + { + "name": "get_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082064660, + "return_value": { + "type": "Environment" + } + }, + { + "name": "set_fallback_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4143518816, + "arguments": [ + { + "name": "env", + "type": "Environment" + } + ] + }, + { + "name": "get_fallback_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082064660, + "return_value": { + "type": "Environment" + } + }, + { + "name": "set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817810567, + "arguments": [ + { + "name": "attributes", + "type": "CameraAttributes" + } + ] + }, + { + "name": "get_camera_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3921283215, + "return_value": { + "type": "CameraAttributes" + } + }, + { + "name": "get_direct_space_state", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2069328350, + "return_value": { + "type": "PhysicsDirectSpaceState3D" + } + } + ], + "properties": [ + { + "type": "Environment", + "name": "environment", + "setter": "set_environment", + "getter": "get_environment" + }, + { + "type": "Environment", + "name": "fallback_environment", + "setter": "set_fallback_environment", + "getter": "get_fallback_environment" + }, + { + "type": "CameraAttributesPractical,CameraAttributesPhysical", + "name": "camera_attributes", + "setter": "set_camera_attributes", + "getter": "get_camera_attributes" + }, + { + "type": "RID", + "name": "space", + "getter": "get_space" + }, + { + "type": "RID", + "name": "navigation_map", + "getter": "get_navigation_map" + }, + { + "type": "RID", + "name": "scenario", + "getter": "get_scenario" + }, + { + "type": "PhysicsDirectSpaceState3D", + "name": "direct_space_state", + "getter": "get_direct_space_state" + } + ] + }, + { + "name": "WorldBoundaryShape2D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape2D", + "api_type": "core", + "methods": [ + { + "name": "set_normal", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 743155724, + "arguments": [ + { + "name": "normal", + "type": "Vector2" + } + ] + }, + { + "name": "get_normal", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3341600327, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "set_distance", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "distance", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_distance", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + } + ], + "properties": [ + { + "type": "Vector2", + "name": "normal", + "setter": "set_normal", + "getter": "get_normal" + }, + { + "type": "float", + "name": "distance", + "setter": "set_distance", + "getter": "get_distance" + } + ] + }, + { + "name": "WorldBoundaryShape3D", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Shape3D", + "api_type": "core", + "methods": [ + { + "name": "set_plane", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3505987427, + "arguments": [ + { + "name": "plane", + "type": "Plane" + } + ] + }, + { + "name": "get_plane", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2753500971, + "return_value": { + "type": "Plane" + } + } + ], + "properties": [ + { + "type": "Plane", + "name": "plane", + "setter": "set_plane", + "getter": "get_plane" + } + ] + }, + { + "name": "WorldEnvironment", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node", + "api_type": "core", + "methods": [ + { + "name": "set_environment", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4143518816, + "arguments": [ + { + "name": "env", + "type": "Environment" + } + ] + }, + { + "name": "get_environment", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3082064660, + "return_value": { + "type": "Environment" + } + }, + { + "name": "set_camera_attributes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2817810567, + "arguments": [ + { + "name": "camera_attributes", + "type": "CameraAttributes" + } + ] + }, + { + "name": "get_camera_attributes", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3921283215, + "return_value": { + "type": "CameraAttributes" + } + } + ], + "properties": [ + { + "type": "Environment", + "name": "environment", + "setter": "set_environment", + "getter": "get_environment" + }, + { + "type": "CameraAttributesPractical,CameraAttributesPhysical", + "name": "camera_attributes", + "setter": "set_camera_attributes", + "getter": "get_camera_attributes" + } + ] + }, + { + "name": "X509Certificate", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "Resource", + "api_type": "core", + "methods": [ + { + "name": "save", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "load", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + } + ] + }, + { + "name": "XMLParser", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "NodeType", + "is_bitfield": false, + "values": [ + { + "name": "NODE_NONE", + "value": 0 + }, + { + "name": "NODE_ELEMENT", + "value": 1 + }, + { + "name": "NODE_ELEMENT_END", + "value": 2 + }, + { + "name": "NODE_TEXT", + "value": 3 + }, + { + "name": "NODE_COMMENT", + "value": 4 + }, + { + "name": "NODE_CDATA", + "value": 5 + }, + { + "name": "NODE_UNKNOWN", + "value": 6 + } + ] + } + ], + "methods": [ + { + "name": "read", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_node_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2984359541, + "return_value": { + "type": "enum::XMLParser.NodeType" + } + }, + { + "name": "get_node_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_node_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "get_node_offset", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint64" + } + }, + { + "name": "get_attribute_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "get_attribute_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_attribute_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844755477, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "has_attribute", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3927539163, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_named_attribute_value", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "get_named_attribute_value_safe", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3135753539, + "return_value": { + "type": "String" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "is_empty", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_current_line", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "skip_section", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "seek", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 844576869, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "position", + "type": "int", + "meta": "uint64" + } + ] + }, + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "file", + "type": "String" + } + ] + }, + { + "name": "open_buffer", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "buffer", + "type": "PackedByteArray" + } + ] + } + ] + }, + { + "name": "XRAnchor3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "XRNode3D", + "api_type": "core", + "methods": [ + { + "name": "get_size", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "get_plane", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2753500971, + "return_value": { + "type": "Plane" + } + } + ] + }, + { + "name": "XRCamera3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Camera3D", + "api_type": "core" + }, + { + "name": "XRController3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "XRNode3D", + "api_type": "core", + "methods": [ + { + "name": "is_button_pressed", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_float", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2349060816, + "return_value": { + "type": "float", + "meta": "float" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_vector2", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3100822709, + "return_value": { + "type": "Vector2" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_tracker_hand", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4181770860, + "return_value": { + "type": "enum::XRPositionalTracker.TrackerHand" + } + } + ], + "signals": [ + { + "name": "button_pressed", + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "button_released", + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "input_float_changed", + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "input_vector2_changed", + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "Vector2" + } + ] + } + ] + }, + { + "name": "XRInterface", + "is_refcounted": true, + "is_instantiable": false, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "Capabilities", + "is_bitfield": false, + "values": [ + { + "name": "XR_NONE", + "value": 0 + }, + { + "name": "XR_MONO", + "value": 1 + }, + { + "name": "XR_STEREO", + "value": 2 + }, + { + "name": "XR_QUAD", + "value": 4 + }, + { + "name": "XR_VR", + "value": 8 + }, + { + "name": "XR_AR", + "value": 16 + }, + { + "name": "XR_EXTERNAL", + "value": 32 + } + ] + }, + { + "name": "TrackingStatus", + "is_bitfield": false, + "values": [ + { + "name": "XR_NORMAL_TRACKING", + "value": 0 + }, + { + "name": "XR_EXCESSIVE_MOTION", + "value": 1 + }, + { + "name": "XR_INSUFFICIENT_FEATURES", + "value": 2 + }, + { + "name": "XR_UNKNOWN_TRACKING", + "value": 3 + }, + { + "name": "XR_NOT_TRACKING", + "value": 4 + } + ] + }, + { + "name": "PlayAreaMode", + "is_bitfield": false, + "values": [ + { + "name": "XR_PLAY_AREA_UNKNOWN", + "value": 0 + }, + { + "name": "XR_PLAY_AREA_3DOF", + "value": 1 + }, + { + "name": "XR_PLAY_AREA_SITTING", + "value": 2 + }, + { + "name": "XR_PLAY_AREA_ROOMSCALE", + "value": 3 + }, + { + "name": "XR_PLAY_AREA_STAGE", + "value": 4 + } + ] + }, + { + "name": "EnvironmentBlendMode", + "is_bitfield": false, + "values": [ + { + "name": "XR_ENV_BLEND_MODE_OPAQUE", + "value": 0 + }, + { + "name": "XR_ENV_BLEND_MODE_ADDITIVE", + "value": 1 + }, + { + "name": "XR_ENV_BLEND_MODE_ALPHA_BLEND", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_capabilities", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "is_primary", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_primary", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "primary", + "type": "bool" + } + ] + }, + { + "name": "is_initialized", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "initialize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "uninitialize", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_tracking_status", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 167423259, + "return_value": { + "type": "enum::XRInterface.TrackingStatus" + } + }, + { + "name": "get_render_target_size", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1497962370, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "get_view_count", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "trigger_haptic_pulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3752640163, + "arguments": [ + { + "name": "action_name", + "type": "String" + }, + { + "name": "tracker_name", + "type": "StringName" + }, + { + "name": "frequency", + "type": "float", + "meta": "double" + }, + { + "name": "amplitude", + "type": "float", + "meta": "double" + }, + { + "name": "duration_sec", + "type": "float", + "meta": "double" + }, + { + "name": "delay_sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "supports_play_area_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3429955281, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::XRInterface.PlayAreaMode" + } + ] + }, + { + "name": "get_play_area_mode", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1615132885, + "return_value": { + "type": "enum::XRInterface.PlayAreaMode" + } + }, + { + "name": "set_play_area_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3429955281, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::XRInterface.PlayAreaMode" + } + ] + }, + { + "name": "get_play_area", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 497664490, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "get_anchor_detection_is_enabled", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_anchor_detection_is_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enable", + "type": "bool" + } + ] + }, + { + "name": "get_camera_feed_id", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2455072627, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "is_passthrough_supported", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "is_passthrough_enabled", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "start_passthrough", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2240911060, + "return_value": { + "type": "bool" + } + }, + { + "name": "stop_passthrough", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3218959716 + }, + { + "name": "get_transform_for_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 518934792, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + }, + { + "name": "cam_transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_projection_for_view", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3766090294, + "return_value": { + "type": "Projection" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + }, + { + "name": "aspect", + "type": "float", + "meta": "double" + }, + { + "name": "near", + "type": "float", + "meta": "double" + }, + { + "name": "far", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_supported_environment_blend_modes", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2915620761, + "return_value": { + "type": "Array" + } + }, + { + "name": "set_environment_blend_mode", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 551152418, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::XRInterface.EnvironmentBlendMode" + } + ] + } + ], + "signals": [ + { + "name": "play_area_changed", + "arguments": [ + { + "name": "mode", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "bool", + "name": "interface_is_primary", + "setter": "set_primary", + "getter": "is_primary" + }, + { + "type": "int", + "name": "xr_play_area_mode", + "setter": "set_play_area_mode", + "getter": "get_play_area_mode" + }, + { + "type": "bool", + "name": "ar_is_anchor_detection_enabled", + "setter": "set_anchor_detection_is_enabled", + "getter": "get_anchor_detection_is_enabled" + } + ] + }, + { + "name": "XRInterfaceExtension", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "XRInterface", + "api_type": "core", + "methods": [ + { + "name": "_get_name", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "StringName" + } + }, + { + "name": "_get_capabilities", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_is_initialized", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_initialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_uninitialize", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_supports_play_area_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::XRInterface.PlayAreaMode" + } + ] + }, + { + "name": "_get_play_area_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::XRInterface.PlayAreaMode" + } + }, + { + "name": "_set_play_area_mode", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "mode", + "type": "enum::XRInterface.PlayAreaMode" + } + ] + }, + { + "name": "_get_play_area", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedVector3Array" + } + }, + { + "name": "_get_render_target_size", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Vector2" + } + }, + { + "name": "_get_view_count", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "uint32" + } + }, + { + "name": "_get_camera_transform", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "_get_transform_for_view", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "Transform3D" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + }, + { + "name": "cam_transform", + "type": "Transform3D" + } + ] + }, + { + "name": "_get_projection_for_view", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedFloat64Array" + }, + "arguments": [ + { + "name": "view", + "type": "int", + "meta": "uint32" + }, + { + "name": "aspect", + "type": "float", + "meta": "double" + }, + { + "name": "z_near", + "type": "float", + "meta": "double" + }, + { + "name": "z_far", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_get_vrs_texture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_process", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_pre_render", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_pre_draw_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "render_target", + "type": "RID" + } + ] + }, + { + "name": "_post_draw_viewport", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "render_target", + "type": "RID" + }, + { + "name": "screen_rect", + "type": "Rect2" + } + ] + }, + { + "name": "_end_frame", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true + }, + { + "name": "_get_suggested_tracker_names", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "_get_suggested_pose_names", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "PackedStringArray" + }, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "_get_tracking_status", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "enum::XRInterface.TrackingStatus" + } + }, + { + "name": "_trigger_haptic_pulse", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "action_name", + "type": "String" + }, + { + "name": "tracker_name", + "type": "StringName" + }, + { + "name": "frequency", + "type": "float", + "meta": "double" + }, + { + "name": "amplitude", + "type": "float", + "meta": "double" + }, + { + "name": "duration_sec", + "type": "float", + "meta": "double" + }, + { + "name": "delay_sec", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "_get_anchor_detection_is_enabled", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "bool" + } + }, + { + "name": "_set_anchor_detection_is_enabled", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "_get_camera_feed_id", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "_get_color_texture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_get_depth_texture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "_get_velocity_texture", + "is_const": false, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_color_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_depth_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "get_velocity_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 529393457, + "return_value": { + "type": "RID" + } + }, + { + "name": "add_blit", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 258596971, + "arguments": [ + { + "name": "render_target", + "type": "RID" + }, + { + "name": "src_rect", + "type": "Rect2" + }, + { + "name": "dst_rect", + "type": "Rect2i" + }, + { + "name": "use_layer", + "type": "bool" + }, + { + "name": "layer", + "type": "int", + "meta": "uint32" + }, + { + "name": "apply_lens_distortion", + "type": "bool" + }, + { + "name": "eye_center", + "type": "Vector2" + }, + { + "name": "k1", + "type": "float", + "meta": "double" + }, + { + "name": "k2", + "type": "float", + "meta": "double" + }, + { + "name": "upscale", + "type": "float", + "meta": "double" + }, + { + "name": "aspect_ratio", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_render_target_texture", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 41030802, + "return_value": { + "type": "RID" + }, + "arguments": [ + { + "name": "render_target", + "type": "RID" + } + ] + } + ] + }, + { + "name": "XRNode3D", + "is_refcounted": false, + "is_instantiable": false, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "get_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_pose_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "pose", + "type": "StringName" + } + ] + }, + { + "name": "get_pose_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "get_is_active", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_has_tracking_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "get_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2806551826, + "return_value": { + "type": "XRPose" + } + }, + { + "name": "trigger_haptic_pulse", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 508576839, + "arguments": [ + { + "name": "action_name", + "type": "String" + }, + { + "name": "frequency", + "type": "float", + "meta": "double" + }, + { + "name": "amplitude", + "type": "float", + "meta": "double" + }, + { + "name": "duration_sec", + "type": "float", + "meta": "double" + }, + { + "name": "delay_sec", + "type": "float", + "meta": "double" + } + ] + } + ], + "properties": [ + { + "type": "String", + "name": "tracker", + "setter": "set_tracker", + "getter": "get_tracker" + }, + { + "type": "String", + "name": "pose", + "setter": "set_pose_name", + "getter": "get_pose_name" + } + ] + }, + { + "name": "XROrigin3D", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Node3D", + "api_type": "core", + "methods": [ + { + "name": "set_world_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "world_scale", + "type": "float", + "meta": "float" + } + ] + }, + { + "name": "get_world_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "float" + } + }, + { + "name": "set_current", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "enabled", + "type": "bool" + } + ] + }, + { + "name": "is_current", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + } + ], + "properties": [ + { + "type": "float", + "name": "world_scale", + "setter": "set_world_scale", + "getter": "get_world_scale" + }, + { + "type": "bool", + "name": "current", + "setter": "set_current", + "getter": "is_current" + } + ] + }, + { + "name": "XRPose", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "TrackingConfidence", + "is_bitfield": false, + "values": [ + { + "name": "XR_TRACKING_CONFIDENCE_NONE", + "value": 0 + }, + { + "name": "XR_TRACKING_CONFIDENCE_LOW", + "value": 1 + }, + { + "name": "XR_TRACKING_CONFIDENCE_HIGH", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "set_has_tracking_data", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2586408642, + "arguments": [ + { + "name": "has_tracking_data", + "type": "bool" + } + ] + }, + { + "name": "get_has_tracking_data", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 36873697, + "return_value": { + "type": "bool" + } + }, + { + "name": "set_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2952846383, + "arguments": [ + { + "name": "transform", + "type": "Transform3D" + } + ] + }, + { + "name": "get_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "get_adjusted_transform", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "set_linear_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_linear_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_angular_velocity", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3460891852, + "arguments": [ + { + "name": "velocity", + "type": "Vector3" + } + ] + }, + { + "name": "get_angular_velocity", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3360562783, + "return_value": { + "type": "Vector3" + } + }, + { + "name": "set_tracking_confidence", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4171656666, + "arguments": [ + { + "name": "tracking_confidence", + "type": "enum::XRPose.TrackingConfidence" + } + ] + }, + { + "name": "get_tracking_confidence", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2064923680, + "return_value": { + "type": "enum::XRPose.TrackingConfidence" + } + } + ], + "properties": [ + { + "type": "bool", + "name": "has_tracking_data", + "setter": "set_has_tracking_data", + "getter": "get_has_tracking_data" + }, + { + "type": "String", + "name": "name", + "setter": "set_name", + "getter": "get_name" + }, + { + "type": "String", + "name": "transform", + "setter": "set_transform", + "getter": "get_transform" + }, + { + "type": "String", + "name": "linear_velocity", + "setter": "set_linear_velocity", + "getter": "get_linear_velocity" + }, + { + "type": "String", + "name": "angular_velocity", + "setter": "set_angular_velocity", + "getter": "get_angular_velocity" + }, + { + "type": "int", + "name": "tracking_confidence", + "setter": "set_tracking_confidence", + "getter": "get_tracking_confidence" + } + ] + }, + { + "name": "XRPositionalTracker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "TrackerHand", + "is_bitfield": false, + "values": [ + { + "name": "TRACKER_HAND_UNKNOWN", + "value": 0 + }, + { + "name": "TRACKER_HAND_LEFT", + "value": 1 + }, + { + "name": "TRACKER_HAND_RIGHT", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_tracker_type", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2784508102, + "return_value": { + "type": "enum::XRServer.TrackerType" + } + }, + { + "name": "set_tracker_type", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3055763575, + "arguments": [ + { + "name": "type", + "type": "enum::XRServer.TrackerType" + } + ] + }, + { + "name": "get_tracker_name", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2002593661, + "return_value": { + "type": "StringName" + } + }, + { + "name": "set_tracker_name", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_tracker_desc", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_tracker_desc", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "description", + "type": "String" + } + ] + }, + { + "name": "get_tracker_profile", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 201670096, + "return_value": { + "type": "String" + } + }, + { + "name": "set_tracker_profile", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 83702148, + "arguments": [ + { + "name": "profile", + "type": "String" + } + ] + }, + { + "name": "get_tracker_hand", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4181770860, + "return_value": { + "type": "enum::XRPositionalTracker.TrackerHand" + } + }, + { + "name": "set_tracker_hand", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3904108980, + "arguments": [ + { + "name": "hand", + "type": "enum::XRPositionalTracker.TrackerHand" + } + ] + }, + { + "name": "has_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2619796661, + "return_value": { + "type": "bool" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "get_pose", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4099720006, + "return_value": { + "type": "XRPose" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "invalidate_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3304788590, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "set_pose", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3451230163, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "transform", + "type": "Transform3D" + }, + { + "name": "linear_velocity", + "type": "Vector3" + }, + { + "name": "angular_velocity", + "type": "Vector3" + }, + { + "name": "tracking_confidence", + "type": "enum::XRPose.TrackingConfidence" + } + ] + }, + { + "name": "get_input", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2760726917, + "return_value": { + "type": "Variant" + }, + "arguments": [ + { + "name": "name", + "type": "StringName" + } + ] + }, + { + "name": "set_input", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3776071444, + "arguments": [ + { + "name": "name", + "type": "StringName" + }, + { + "name": "value", + "type": "Variant" + } + ] + } + ], + "signals": [ + { + "name": "pose_changed", + "arguments": [ + { + "name": "pose", + "type": "XRPose" + } + ] + }, + { + "name": "button_pressed", + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "button_released", + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "input_float_changed", + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "value", + "type": "float" + } + ] + }, + { + "name": "input_vector2_changed", + "arguments": [ + { + "name": "name", + "type": "String" + }, + { + "name": "vector", + "type": "Vector2" + } + ] + }, + { + "name": "profile_changed", + "arguments": [ + { + "name": "role", + "type": "String" + } + ] + } + ], + "properties": [ + { + "type": "int", + "name": "type", + "setter": "set_tracker_type", + "getter": "get_tracker_type" + }, + { + "type": "String", + "name": "name", + "setter": "set_tracker_name", + "getter": "get_tracker_name" + }, + { + "type": "String", + "name": "description", + "setter": "set_tracker_desc", + "getter": "get_tracker_desc" + }, + { + "type": "String", + "name": "profile", + "setter": "set_tracker_profile", + "getter": "get_tracker_profile" + }, + { + "type": "int", + "name": "hand", + "setter": "set_tracker_hand", + "getter": "get_tracker_hand" + } + ] + }, + { + "name": "XRServer", + "is_refcounted": false, + "is_instantiable": true, + "inherits": "Object", + "api_type": "core", + "enums": [ + { + "name": "TrackerType", + "is_bitfield": false, + "values": [ + { + "name": "TRACKER_HEAD", + "value": 1 + }, + { + "name": "TRACKER_CONTROLLER", + "value": 2 + }, + { + "name": "TRACKER_BASESTATION", + "value": 4 + }, + { + "name": "TRACKER_ANCHOR", + "value": 8 + }, + { + "name": "TRACKER_ANY_KNOWN", + "value": 127 + }, + { + "name": "TRACKER_UNKNOWN", + "value": 128 + }, + { + "name": "TRACKER_ANY", + "value": 255 + } + ] + }, + { + "name": "RotationMode", + "is_bitfield": false, + "values": [ + { + "name": "RESET_FULL_ROTATION", + "value": 0 + }, + { + "name": "RESET_BUT_KEEP_TILT", + "value": 1 + }, + { + "name": "DONT_RESET_ROTATION", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "get_world_scale", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1740695150, + "return_value": { + "type": "float", + "meta": "double" + } + }, + { + "name": "set_world_scale", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 373806689, + "arguments": [ + { + "name": "scale", + "type": "float", + "meta": "double" + } + ] + }, + { + "name": "get_reference_frame", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3229777777, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "center_on_hmd", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1450904707, + "arguments": [ + { + "name": "rotation_mode", + "type": "enum::XRServer.RotationMode" + }, + { + "name": "keep_height", + "type": "bool" + } + ] + }, + { + "name": "get_hmd_transform", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4183770049, + "return_value": { + "type": "Transform3D" + } + }, + { + "name": "add_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1898711491, + "arguments": [ + { + "name": "interface", + "type": "XRInterface" + } + ] + }, + { + "name": "get_interface_count", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3905245786, + "return_value": { + "type": "int", + "meta": "int32" + } + }, + { + "name": "remove_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1898711491, + "arguments": [ + { + "name": "interface", + "type": "XRInterface" + } + ] + }, + { + "name": "get_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 4237347919, + "return_value": { + "type": "XRInterface" + }, + "arguments": [ + { + "name": "idx", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_interfaces", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3995934104, + "return_value": { + "type": "typedarray::Dictionary" + } + }, + { + "name": "find_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1395192955, + "return_value": { + "type": "XRInterface" + }, + "arguments": [ + { + "name": "name", + "type": "String" + } + ] + }, + { + "name": "add_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2692800323, + "arguments": [ + { + "name": "tracker", + "type": "XRPositionalTracker" + } + ] + }, + { + "name": "remove_tracker", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2692800323, + "arguments": [ + { + "name": "tracker", + "type": "XRPositionalTracker" + } + ] + }, + { + "name": "get_trackers", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3554694381, + "return_value": { + "type": "Dictionary" + }, + "arguments": [ + { + "name": "tracker_types", + "type": "int", + "meta": "int32" + } + ] + }, + { + "name": "get_tracker", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2742084544, + "return_value": { + "type": "XRPositionalTracker" + }, + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + } + ] + }, + { + "name": "get_primary_interface", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2143545064, + "return_value": { + "type": "XRInterface" + } + }, + { + "name": "set_primary_interface", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 1898711491, + "arguments": [ + { + "name": "interface", + "type": "XRInterface" + } + ] + } + ], + "signals": [ + { + "name": "interface_added", + "arguments": [ + { + "name": "interface_name", + "type": "StringName" + } + ] + }, + { + "name": "interface_removed", + "arguments": [ + { + "name": "interface_name", + "type": "StringName" + } + ] + }, + { + "name": "tracker_added", + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + }, + { + "name": "type", + "type": "int" + } + ] + }, + { + "name": "tracker_updated", + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + }, + { + "name": "type", + "type": "int" + } + ] + }, + { + "name": "tracker_removed", + "arguments": [ + { + "name": "tracker_name", + "type": "StringName" + }, + { + "name": "type", + "type": "int" + } + ] + } + ], + "properties": [ + { + "type": "float", + "name": "world_scale", + "setter": "set_world_scale", + "getter": "get_world_scale" + }, + { + "type": "Object", + "name": "primary_interface", + "setter": "set_primary_interface", + "getter": "get_primary_interface" + } + ] + }, + { + "name": "ZIPPacker", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "enums": [ + { + "name": "ZipAppend", + "is_bitfield": false, + "values": [ + { + "name": "APPEND_CREATE", + "value": 0 + }, + { + "name": "APPEND_CREATEAFTER", + "value": 1 + }, + { + "name": "APPEND_ADDINZIP", + "value": 2 + } + ] + } + ], + "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 3715508516, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "append", + "type": "enum::ZIPPacker.ZipAppend", + "default_value": "0" + } + ] + }, + { + "name": "start_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "write_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 680677267, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "data", + "type": "PackedByteArray" + } + ] + }, + { + "name": "close_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + } + ] + }, + { + "name": "ZIPReader", + "is_refcounted": true, + "is_instantiable": true, + "inherits": "RefCounted", + "api_type": "core", + "methods": [ + { + "name": "open", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166001499, + "return_value": { + "type": "enum::Error" + }, + "arguments": [ + { + "name": "path", + "type": "String" + } + ] + }, + { + "name": "close", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 166280745, + "return_value": { + "type": "enum::Error" + } + }, + { + "name": "get_files", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2981934095, + "return_value": { + "type": "PackedStringArray" + } + }, + { + "name": "read_file", + "is_const": false, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 156385007, + "return_value": { + "type": "PackedByteArray" + }, + "arguments": [ + { + "name": "path", + "type": "String" + }, + { + "name": "case_sensitive", + "type": "bool", + "default_value": "true" + } + ] + } + ] + } + ], + "singletons": [ + { + "name": "Performance", + "type": "Performance" + }, + { + "name": "TextServerManager", + "type": "TextServerManager" + }, + { + "name": "PhysicsServer2DManager", + "type": "PhysicsServer2DManager" + }, + { + "name": "PhysicsServer3DManager", + "type": "PhysicsServer3DManager" + }, + { + "name": "NavigationMeshGenerator", + "type": "NavigationMeshGenerator" + }, + { + "name": "ProjectSettings", + "type": "ProjectSettings" + }, + { + "name": "IP", + "type": "IP" + }, + { + "name": "Geometry2D", + "type": "Geometry2D" + }, + { + "name": "Geometry3D", + "type": "Geometry3D" + }, + { + "name": "ResourceLoader", + "type": "ResourceLoader" + }, + { + "name": "ResourceSaver", + "type": "ResourceSaver" + }, + { + "name": "OS", + "type": "OS" + }, + { + "name": "Engine", + "type": "Engine" + }, + { + "name": "ClassDB", + "type": "ClassDB" + }, + { + "name": "Marshalls", + "type": "Marshalls" + }, + { + "name": "TranslationServer", + "type": "TranslationServer" + }, + { + "name": "Input", + "type": "Input" + }, + { + "name": "InputMap", + "type": "InputMap" + }, + { + "name": "EngineDebugger", + "type": "EngineDebugger" + }, + { + "name": "Time", + "type": "Time" + }, + { + "name": "GDExtensionManager", + "type": "GDExtensionManager" + }, + { + "name": "ResourceUID", + "type": "ResourceUID" + }, + { + "name": "WorkerThreadPool", + "type": "WorkerThreadPool" + }, + { + "name": "JavaClassWrapper", + "type": "JavaClassWrapper" + }, + { + "name": "JavaScriptBridge", + "type": "JavaScriptBridge" + }, + { + "name": "ThemeDB", + "type": "ThemeDB" + }, + { + "name": "DisplayServer", + "type": "DisplayServer" + }, + { + "name": "RenderingServer", + "type": "RenderingServer" + }, + { + "name": "AudioServer", + "type": "AudioServer" + }, + { + "name": "PhysicsServer2D", + "type": "PhysicsServer2D" + }, + { + "name": "PhysicsServer3D", + "type": "PhysicsServer3D" + }, + { + "name": "NavigationServer2D", + "type": "NavigationServer2D" + }, + { + "name": "NavigationServer3D", + "type": "NavigationServer3D" + }, + { + "name": "XRServer", + "type": "XRServer" + }, + { + "name": "CameraServer", + "type": "CameraServer" + } + ], + "native_structures": [ + { + "name": "AudioFrame", + "format": "float left;float right" + }, + { + "name": "CaretInfo", + "format": "Rect2 leading_caret;Rect2 trailing_caret;TextServer::Direction leading_direction;TextServer::Direction trailing_direction" + }, + { + "name": "Glyph", + "format": "int start = -1;int end = -1;uint8_t count = 0;uint8_t repeat = 1;uint16_t flags = 0;float x_off = 0.f;float y_off = 0.f;float advance = 0.f;RID font_rid;int font_size = 0;int32_t index = 0" + }, + { + "name": "ObjectID", + "format": "uint64_t id = 0" + }, + { + "name": "PhysicsServer2DExtensionMotionResult", + "format": "Vector2 travel;Vector2 remainder;Vector2 collision_point;Vector2 collision_normal;Vector2 collider_velocity;real_t collision_depth;real_t collision_safe_fraction;real_t collision_unsafe_fraction;int collision_local_shape;ObjectID collider_id;RID collider;int collider_shape" + }, + { + "name": "PhysicsServer2DExtensionRayResult", + "format": "Vector2 position;Vector2 normal;RID rid;ObjectID collider_id;Object *collider;int shape" + }, + { + "name": "PhysicsServer2DExtensionShapeRestInfo", + "format": "Vector2 point;Vector2 normal;RID rid;ObjectID collider_id;int shape;Vector2 linear_velocity" + }, + { + "name": "PhysicsServer2DExtensionShapeResult", + "format": "RID rid;ObjectID collider_id;Object *collider;int shape" + }, + { + "name": "PhysicsServer3DExtensionMotionCollision", + "format": "Vector3 position;Vector3 normal;Vector3 collider_velocity;real_t depth;int local_shape;ObjectID collider_id;RID collider;int collider_shape" + }, + { + "name": "PhysicsServer3DExtensionMotionResult", + "format": "Vector3 travel;Vector3 remainder;real_t collision_safe_fraction;real_t collision_unsafe_fraction;PhysicsServer3DExtensionMotionCollision collisions[32];int collision_count" + }, + { + "name": "PhysicsServer3DExtensionRayResult", + "format": "Vector3 position;Vector3 normal;RID rid;ObjectID collider_id;Object *collider;int shape" + }, + { + "name": "PhysicsServer3DExtensionShapeRestInfo", + "format": "Vector3 point;Vector3 normal;RID rid;ObjectID collider_id;int shape;Vector3 linear_velocity" + }, + { + "name": "PhysicsServer3DExtensionShapeResult", + "format": "RID rid;ObjectID collider_id;Object *collider;int shape" + }, + { + "name": "ScriptLanguageExtensionProfilingInfo", + "format": "StringName signature;uint64_t call_count;uint64_t total_time;uint64_t self_time" + } + ] +} diff --git a/lib/godot-cpp/gdextension/gdextension_interface.h b/lib/godot-cpp/gdextension/gdextension_interface.h new file mode 100644 index 0000000..f323b2a --- /dev/null +++ b/lib/godot-cpp/gdextension/gdextension_interface.h @@ -0,0 +1,643 @@ +/**************************************************************************/ +/* gdextension_interface.h */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GDEXTENSION_INTERFACE_H +#define GDEXTENSION_INTERFACE_H + +/* This is a C class header, you can copy it and use it directly in your own binders. + * Together with the JSON file, you should be able to generate any binder. + */ + +#include +#include + +#ifndef __cplusplus +typedef uint32_t char32_t; +typedef uint16_t char16_t; +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* VARIANT TYPES */ + +typedef enum { + GDEXTENSION_VARIANT_TYPE_NIL, + + /* atomic types */ + GDEXTENSION_VARIANT_TYPE_BOOL, + GDEXTENSION_VARIANT_TYPE_INT, + GDEXTENSION_VARIANT_TYPE_FLOAT, + GDEXTENSION_VARIANT_TYPE_STRING, + + /* math types */ + GDEXTENSION_VARIANT_TYPE_VECTOR2, + GDEXTENSION_VARIANT_TYPE_VECTOR2I, + GDEXTENSION_VARIANT_TYPE_RECT2, + GDEXTENSION_VARIANT_TYPE_RECT2I, + GDEXTENSION_VARIANT_TYPE_VECTOR3, + GDEXTENSION_VARIANT_TYPE_VECTOR3I, + GDEXTENSION_VARIANT_TYPE_TRANSFORM2D, + GDEXTENSION_VARIANT_TYPE_VECTOR4, + GDEXTENSION_VARIANT_TYPE_VECTOR4I, + GDEXTENSION_VARIANT_TYPE_PLANE, + GDEXTENSION_VARIANT_TYPE_QUATERNION, + GDEXTENSION_VARIANT_TYPE_AABB, + GDEXTENSION_VARIANT_TYPE_BASIS, + GDEXTENSION_VARIANT_TYPE_TRANSFORM3D, + GDEXTENSION_VARIANT_TYPE_PROJECTION, + + /* misc types */ + GDEXTENSION_VARIANT_TYPE_COLOR, + GDEXTENSION_VARIANT_TYPE_STRING_NAME, + GDEXTENSION_VARIANT_TYPE_NODE_PATH, + GDEXTENSION_VARIANT_TYPE_RID, + GDEXTENSION_VARIANT_TYPE_OBJECT, + GDEXTENSION_VARIANT_TYPE_CALLABLE, + GDEXTENSION_VARIANT_TYPE_SIGNAL, + GDEXTENSION_VARIANT_TYPE_DICTIONARY, + GDEXTENSION_VARIANT_TYPE_ARRAY, + + /* typed arrays */ + GDEXTENSION_VARIANT_TYPE_PACKED_BYTE_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_INT32_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_INT64_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_FLOAT32_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_FLOAT64_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_STRING_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR2_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR3_ARRAY, + GDEXTENSION_VARIANT_TYPE_PACKED_COLOR_ARRAY, + + GDEXTENSION_VARIANT_TYPE_VARIANT_MAX +} GDExtensionVariantType; + +typedef enum { + /* comparison */ + GDEXTENSION_VARIANT_OP_EQUAL, + GDEXTENSION_VARIANT_OP_NOT_EQUAL, + GDEXTENSION_VARIANT_OP_LESS, + GDEXTENSION_VARIANT_OP_LESS_EQUAL, + GDEXTENSION_VARIANT_OP_GREATER, + GDEXTENSION_VARIANT_OP_GREATER_EQUAL, + + /* mathematic */ + GDEXTENSION_VARIANT_OP_ADD, + GDEXTENSION_VARIANT_OP_SUBTRACT, + GDEXTENSION_VARIANT_OP_MULTIPLY, + GDEXTENSION_VARIANT_OP_DIVIDE, + GDEXTENSION_VARIANT_OP_NEGATE, + GDEXTENSION_VARIANT_OP_POSITIVE, + GDEXTENSION_VARIANT_OP_MODULE, + GDEXTENSION_VARIANT_OP_POWER, + + /* bitwise */ + GDEXTENSION_VARIANT_OP_SHIFT_LEFT, + GDEXTENSION_VARIANT_OP_SHIFT_RIGHT, + GDEXTENSION_VARIANT_OP_BIT_AND, + GDEXTENSION_VARIANT_OP_BIT_OR, + GDEXTENSION_VARIANT_OP_BIT_XOR, + GDEXTENSION_VARIANT_OP_BIT_NEGATE, + + /* logic */ + GDEXTENSION_VARIANT_OP_AND, + GDEXTENSION_VARIANT_OP_OR, + GDEXTENSION_VARIANT_OP_XOR, + GDEXTENSION_VARIANT_OP_NOT, + + /* containment */ + GDEXTENSION_VARIANT_OP_IN, + GDEXTENSION_VARIANT_OP_MAX + +} GDExtensionVariantOperator; + +typedef void *GDExtensionVariantPtr; +typedef const void *GDExtensionConstVariantPtr; +typedef void *GDExtensionStringNamePtr; +typedef const void *GDExtensionConstStringNamePtr; +typedef void *GDExtensionStringPtr; +typedef const void *GDExtensionConstStringPtr; +typedef void *GDExtensionObjectPtr; +typedef const void *GDExtensionConstObjectPtr; +typedef void *GDExtensionTypePtr; +typedef const void *GDExtensionConstTypePtr; +typedef const void *GDExtensionMethodBindPtr; +typedef int64_t GDExtensionInt; +typedef uint8_t GDExtensionBool; +typedef uint64_t GDObjectInstanceID; +typedef void *GDExtensionRefPtr; +typedef const void *GDExtensionConstRefPtr; + +/* VARIANT DATA I/O */ + +typedef enum { + GDEXTENSION_CALL_OK, + GDEXTENSION_CALL_ERROR_INVALID_METHOD, + GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT, // Expected a different variant type. + GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS, // Expected lower number of arguments. + GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS, // Expected higher number of arguments. + GDEXTENSION_CALL_ERROR_INSTANCE_IS_NULL, + GDEXTENSION_CALL_ERROR_METHOD_NOT_CONST, // Used for const call. +} GDExtensionCallErrorType; + +typedef struct { + GDExtensionCallErrorType error; + int32_t argument; + int32_t expected; +} GDExtensionCallError; + +typedef void (*GDExtensionVariantFromTypeConstructorFunc)(GDExtensionVariantPtr, GDExtensionTypePtr); +typedef void (*GDExtensionTypeFromVariantConstructorFunc)(GDExtensionTypePtr, GDExtensionVariantPtr); +typedef void (*GDExtensionPtrOperatorEvaluator)(GDExtensionConstTypePtr p_left, GDExtensionConstTypePtr p_right, GDExtensionTypePtr r_result); +typedef void (*GDExtensionPtrBuiltInMethod)(GDExtensionTypePtr p_base, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_return, int p_argument_count); +typedef void (*GDExtensionPtrConstructor)(GDExtensionTypePtr p_base, const GDExtensionConstTypePtr *p_args); +typedef void (*GDExtensionPtrDestructor)(GDExtensionTypePtr p_base); +typedef void (*GDExtensionPtrSetter)(GDExtensionTypePtr p_base, GDExtensionConstTypePtr p_value); +typedef void (*GDExtensionPtrGetter)(GDExtensionConstTypePtr p_base, GDExtensionTypePtr r_value); +typedef void (*GDExtensionPtrIndexedSetter)(GDExtensionTypePtr p_base, GDExtensionInt p_index, GDExtensionConstTypePtr p_value); +typedef void (*GDExtensionPtrIndexedGetter)(GDExtensionConstTypePtr p_base, GDExtensionInt p_index, GDExtensionTypePtr r_value); +typedef void (*GDExtensionPtrKeyedSetter)(GDExtensionTypePtr p_base, GDExtensionConstTypePtr p_key, GDExtensionConstTypePtr p_value); +typedef void (*GDExtensionPtrKeyedGetter)(GDExtensionConstTypePtr p_base, GDExtensionConstTypePtr p_key, GDExtensionTypePtr r_value); +typedef uint32_t (*GDExtensionPtrKeyedChecker)(GDExtensionConstVariantPtr p_base, GDExtensionConstVariantPtr p_key); +typedef void (*GDExtensionPtrUtilityFunction)(GDExtensionTypePtr r_return, const GDExtensionConstTypePtr *p_args, int p_argument_count); + +typedef GDExtensionObjectPtr (*GDExtensionClassConstructor)(); + +typedef void *(*GDExtensionInstanceBindingCreateCallback)(void *p_token, void *p_instance); +typedef void (*GDExtensionInstanceBindingFreeCallback)(void *p_token, void *p_instance, void *p_binding); +typedef GDExtensionBool (*GDExtensionInstanceBindingReferenceCallback)(void *p_token, void *p_binding, GDExtensionBool p_reference); + +typedef struct { + GDExtensionInstanceBindingCreateCallback create_callback; + GDExtensionInstanceBindingFreeCallback free_callback; + GDExtensionInstanceBindingReferenceCallback reference_callback; +} GDExtensionInstanceBindingCallbacks; + +/* EXTENSION CLASSES */ + +typedef void *GDExtensionClassInstancePtr; + +typedef GDExtensionBool (*GDExtensionClassSet)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value); +typedef GDExtensionBool (*GDExtensionClassGet)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret); +typedef uint64_t (*GDExtensionClassGetRID)(GDExtensionClassInstancePtr p_instance); + +typedef struct { + GDExtensionVariantType type; + GDExtensionStringNamePtr name; + GDExtensionStringNamePtr class_name; + uint32_t hint; // Bitfield of `PropertyHint` (defined in `extension_api.json`). + GDExtensionStringPtr hint_string; + uint32_t usage; // Bitfield of `PropertyUsageFlags` (defined in `extension_api.json`). +} GDExtensionPropertyInfo; + +typedef struct { + GDExtensionStringNamePtr name; + GDExtensionPropertyInfo return_value; + uint32_t flags; // Bitfield of `GDExtensionClassMethodFlags`. + int32_t id; + + /* Arguments: `default_arguments` is an array of size `argument_count`. */ + uint32_t argument_count; + GDExtensionPropertyInfo *arguments; + + /* Default arguments: `default_arguments` is an array of size `default_argument_count`. */ + uint32_t default_argument_count; + GDExtensionVariantPtr *default_arguments; +} GDExtensionMethodInfo; + +typedef const GDExtensionPropertyInfo *(*GDExtensionClassGetPropertyList)(GDExtensionClassInstancePtr p_instance, uint32_t *r_count); +typedef void (*GDExtensionClassFreePropertyList)(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list); +typedef GDExtensionBool (*GDExtensionClassPropertyCanRevert)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name); +typedef GDExtensionBool (*GDExtensionClassPropertyGetRevert)(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret); +typedef void (*GDExtensionClassNotification)(GDExtensionClassInstancePtr p_instance, int32_t p_what); +typedef void (*GDExtensionClassToString)(GDExtensionClassInstancePtr p_instance, GDExtensionBool *r_is_valid, GDExtensionStringPtr p_out); +typedef void (*GDExtensionClassReference)(GDExtensionClassInstancePtr p_instance); +typedef void (*GDExtensionClassUnreference)(GDExtensionClassInstancePtr p_instance); +typedef void (*GDExtensionClassCallVirtual)(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret); +typedef GDExtensionObjectPtr (*GDExtensionClassCreateInstance)(void *p_userdata); +typedef void (*GDExtensionClassFreeInstance)(void *p_userdata, GDExtensionClassInstancePtr p_instance); +typedef GDExtensionClassCallVirtual (*GDExtensionClassGetVirtual)(void *p_userdata, GDExtensionConstStringNamePtr p_name); + +typedef struct { + GDExtensionBool is_virtual; + GDExtensionBool is_abstract; + GDExtensionClassSet set_func; + GDExtensionClassGet get_func; + GDExtensionClassGetPropertyList get_property_list_func; + GDExtensionClassFreePropertyList free_property_list_func; + GDExtensionClassPropertyCanRevert property_can_revert_func; + GDExtensionClassPropertyGetRevert property_get_revert_func; + GDExtensionClassNotification notification_func; + GDExtensionClassToString to_string_func; + GDExtensionClassReference reference_func; + GDExtensionClassUnreference unreference_func; + GDExtensionClassCreateInstance create_instance_func; // (Default) constructor; mandatory. If the class is not instantiable, consider making it virtual or abstract. + GDExtensionClassFreeInstance free_instance_func; // Destructor; mandatory. + GDExtensionClassGetVirtual get_virtual_func; // Queries a virtual function by name and returns a callback to invoke the requested virtual function. + GDExtensionClassGetRID get_rid_func; + void *class_userdata; // Per-class user data, later accessible in instance bindings. +} GDExtensionClassCreationInfo; + +typedef void *GDExtensionClassLibraryPtr; + +/* Method */ + +typedef enum { + GDEXTENSION_METHOD_FLAG_NORMAL = 1, + GDEXTENSION_METHOD_FLAG_EDITOR = 2, + GDEXTENSION_METHOD_FLAG_CONST = 4, + GDEXTENSION_METHOD_FLAG_VIRTUAL = 8, + GDEXTENSION_METHOD_FLAG_VARARG = 16, + GDEXTENSION_METHOD_FLAG_STATIC = 32, + GDEXTENSION_METHOD_FLAGS_DEFAULT = GDEXTENSION_METHOD_FLAG_NORMAL, +} GDExtensionClassMethodFlags; + +typedef enum { + GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT8, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT16, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT32, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT64, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT8, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT16, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT32, + GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT64, + GDEXTENSION_METHOD_ARGUMENT_METADATA_REAL_IS_FLOAT, + GDEXTENSION_METHOD_ARGUMENT_METADATA_REAL_IS_DOUBLE +} GDExtensionClassMethodArgumentMetadata; + +typedef void (*GDExtensionClassMethodCall)(void *method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); +typedef void (*GDExtensionClassMethodPtrCall)(void *method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret); + +typedef struct { + GDExtensionStringNamePtr name; + void *method_userdata; + GDExtensionClassMethodCall call_func; + GDExtensionClassMethodPtrCall ptrcall_func; + uint32_t method_flags; // Bitfield of `GDExtensionClassMethodFlags`. + + /* If `has_return_value` is false, `return_value_info` and `return_value_metadata` are ignored. */ + GDExtensionBool has_return_value; + GDExtensionPropertyInfo *return_value_info; + GDExtensionClassMethodArgumentMetadata return_value_metadata; + + /* Arguments: `arguments_info` and `arguments_metadata` are array of size `argument_count`. + * Name and hint information for the argument can be omitted in release builds. Class name should always be present if it applies. + */ + uint32_t argument_count; + GDExtensionPropertyInfo *arguments_info; + GDExtensionClassMethodArgumentMetadata *arguments_metadata; + + /* Default arguments: `default_arguments` is an array of size `default_argument_count`. */ + uint32_t default_argument_count; + GDExtensionVariantPtr *default_arguments; +} GDExtensionClassMethodInfo; + +/* SCRIPT INSTANCE EXTENSION */ + +typedef void *GDExtensionScriptInstanceDataPtr; // Pointer to custom ScriptInstance native implementation. + +typedef GDExtensionBool (*GDExtensionScriptInstanceSet)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value); +typedef GDExtensionBool (*GDExtensionScriptInstanceGet)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret); +typedef const GDExtensionPropertyInfo *(*GDExtensionScriptInstanceGetPropertyList)(GDExtensionScriptInstanceDataPtr p_instance, uint32_t *r_count); +typedef void (*GDExtensionScriptInstanceFreePropertyList)(GDExtensionScriptInstanceDataPtr p_instance, const GDExtensionPropertyInfo *p_list); +typedef GDExtensionVariantType (*GDExtensionScriptInstanceGetPropertyType)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionBool *r_is_valid); + +typedef GDExtensionBool (*GDExtensionScriptInstancePropertyCanRevert)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name); +typedef GDExtensionBool (*GDExtensionScriptInstancePropertyGetRevert)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret); + +typedef GDExtensionObjectPtr (*GDExtensionScriptInstanceGetOwner)(GDExtensionScriptInstanceDataPtr p_instance); +typedef void (*GDExtensionScriptInstancePropertyStateAdd)(GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value, void *p_userdata); +typedef void (*GDExtensionScriptInstanceGetPropertyState)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionScriptInstancePropertyStateAdd p_add_func, void *p_userdata); + +typedef const GDExtensionMethodInfo *(*GDExtensionScriptInstanceGetMethodList)(GDExtensionScriptInstanceDataPtr p_instance, uint32_t *r_count); +typedef void (*GDExtensionScriptInstanceFreeMethodList)(GDExtensionScriptInstanceDataPtr p_instance, const GDExtensionMethodInfo *p_list); + +typedef GDExtensionBool (*GDExtensionScriptInstanceHasMethod)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionConstStringNamePtr p_name); + +typedef void (*GDExtensionScriptInstanceCall)(GDExtensionScriptInstanceDataPtr p_self, GDExtensionConstStringNamePtr p_method, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); +typedef void (*GDExtensionScriptInstanceNotification)(GDExtensionScriptInstanceDataPtr p_instance, int32_t p_what); +typedef void (*GDExtensionScriptInstanceToString)(GDExtensionScriptInstanceDataPtr p_instance, GDExtensionBool *r_is_valid, GDExtensionStringPtr r_out); + +typedef void (*GDExtensionScriptInstanceRefCountIncremented)(GDExtensionScriptInstanceDataPtr p_instance); +typedef GDExtensionBool (*GDExtensionScriptInstanceRefCountDecremented)(GDExtensionScriptInstanceDataPtr p_instance); + +typedef GDExtensionObjectPtr (*GDExtensionScriptInstanceGetScript)(GDExtensionScriptInstanceDataPtr p_instance); +typedef GDExtensionBool (*GDExtensionScriptInstanceIsPlaceholder)(GDExtensionScriptInstanceDataPtr p_instance); + +typedef void *GDExtensionScriptLanguagePtr; + +typedef GDExtensionScriptLanguagePtr (*GDExtensionScriptInstanceGetLanguage)(GDExtensionScriptInstanceDataPtr p_instance); + +typedef void (*GDExtensionScriptInstanceFree)(GDExtensionScriptInstanceDataPtr p_instance); + +typedef void *GDExtensionScriptInstancePtr; // Pointer to ScriptInstance. + +typedef struct { + GDExtensionScriptInstanceSet set_func; + GDExtensionScriptInstanceGet get_func; + GDExtensionScriptInstanceGetPropertyList get_property_list_func; + GDExtensionScriptInstanceFreePropertyList free_property_list_func; + + GDExtensionScriptInstancePropertyCanRevert property_can_revert_func; + GDExtensionScriptInstancePropertyGetRevert property_get_revert_func; + + GDExtensionScriptInstanceGetOwner get_owner_func; + GDExtensionScriptInstanceGetPropertyState get_property_state_func; + + GDExtensionScriptInstanceGetMethodList get_method_list_func; + GDExtensionScriptInstanceFreeMethodList free_method_list_func; + GDExtensionScriptInstanceGetPropertyType get_property_type_func; + + GDExtensionScriptInstanceHasMethod has_method_func; + + GDExtensionScriptInstanceCall call_func; + GDExtensionScriptInstanceNotification notification_func; + + GDExtensionScriptInstanceToString to_string_func; + + GDExtensionScriptInstanceRefCountIncremented refcount_incremented_func; + GDExtensionScriptInstanceRefCountDecremented refcount_decremented_func; + + GDExtensionScriptInstanceGetScript get_script_func; + + GDExtensionScriptInstanceIsPlaceholder is_placeholder_func; + + GDExtensionScriptInstanceSet set_fallback_func; + GDExtensionScriptInstanceGet get_fallback_func; + + GDExtensionScriptInstanceGetLanguage get_language_func; + + GDExtensionScriptInstanceFree free_func; + +} GDExtensionScriptInstanceInfo; + +/* INTERFACE */ + +typedef struct { + uint32_t version_major; + uint32_t version_minor; + uint32_t version_patch; + const char *version_string; + + /* GODOT CORE */ + + void *(*mem_alloc)(size_t p_bytes); + void *(*mem_realloc)(void *p_ptr, size_t p_bytes); + void (*mem_free)(void *p_ptr); + + void (*print_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + void (*print_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + void (*print_warning_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + void (*print_script_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify); + + uint64_t (*get_native_struct_size)(GDExtensionConstStringNamePtr p_name); + + /* GODOT VARIANT */ + + /* variant general */ + void (*variant_new_copy)(GDExtensionVariantPtr r_dest, GDExtensionConstVariantPtr p_src); + void (*variant_new_nil)(GDExtensionVariantPtr r_dest); + void (*variant_destroy)(GDExtensionVariantPtr p_self); + + /* variant type */ + void (*variant_call)(GDExtensionVariantPtr p_self, GDExtensionConstStringNamePtr p_method, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); + void (*variant_call_static)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_method, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); + void (*variant_evaluate)(GDExtensionVariantOperator p_op, GDExtensionConstVariantPtr p_a, GDExtensionConstVariantPtr p_b, GDExtensionVariantPtr r_return, GDExtensionBool *r_valid); + void (*variant_set)(GDExtensionVariantPtr p_self, GDExtensionConstVariantPtr p_key, GDExtensionConstVariantPtr p_value, GDExtensionBool *r_valid); + void (*variant_set_named)(GDExtensionVariantPtr p_self, GDExtensionConstStringNamePtr p_key, GDExtensionConstVariantPtr p_value, GDExtensionBool *r_valid); + void (*variant_set_keyed)(GDExtensionVariantPtr p_self, GDExtensionConstVariantPtr p_key, GDExtensionConstVariantPtr p_value, GDExtensionBool *r_valid); + void (*variant_set_indexed)(GDExtensionVariantPtr p_self, GDExtensionInt p_index, GDExtensionConstVariantPtr p_value, GDExtensionBool *r_valid, GDExtensionBool *r_oob); + void (*variant_get)(GDExtensionConstVariantPtr p_self, GDExtensionConstVariantPtr p_key, GDExtensionVariantPtr r_ret, GDExtensionBool *r_valid); + void (*variant_get_named)(GDExtensionConstVariantPtr p_self, GDExtensionConstStringNamePtr p_key, GDExtensionVariantPtr r_ret, GDExtensionBool *r_valid); + void (*variant_get_keyed)(GDExtensionConstVariantPtr p_self, GDExtensionConstVariantPtr p_key, GDExtensionVariantPtr r_ret, GDExtensionBool *r_valid); + void (*variant_get_indexed)(GDExtensionConstVariantPtr p_self, GDExtensionInt p_index, GDExtensionVariantPtr r_ret, GDExtensionBool *r_valid, GDExtensionBool *r_oob); + GDExtensionBool (*variant_iter_init)(GDExtensionConstVariantPtr p_self, GDExtensionVariantPtr r_iter, GDExtensionBool *r_valid); + GDExtensionBool (*variant_iter_next)(GDExtensionConstVariantPtr p_self, GDExtensionVariantPtr r_iter, GDExtensionBool *r_valid); + void (*variant_iter_get)(GDExtensionConstVariantPtr p_self, GDExtensionVariantPtr r_iter, GDExtensionVariantPtr r_ret, GDExtensionBool *r_valid); + GDExtensionInt (*variant_hash)(GDExtensionConstVariantPtr p_self); + GDExtensionInt (*variant_recursive_hash)(GDExtensionConstVariantPtr p_self, GDExtensionInt p_recursion_count); + GDExtensionBool (*variant_hash_compare)(GDExtensionConstVariantPtr p_self, GDExtensionConstVariantPtr p_other); + GDExtensionBool (*variant_booleanize)(GDExtensionConstVariantPtr p_self); + void (*variant_duplicate)(GDExtensionConstVariantPtr p_self, GDExtensionVariantPtr r_ret, GDExtensionBool p_deep); + void (*variant_stringify)(GDExtensionConstVariantPtr p_self, GDExtensionStringPtr r_ret); + + GDExtensionVariantType (*variant_get_type)(GDExtensionConstVariantPtr p_self); + GDExtensionBool (*variant_has_method)(GDExtensionConstVariantPtr p_self, GDExtensionConstStringNamePtr p_method); + GDExtensionBool (*variant_has_member)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_member); + GDExtensionBool (*variant_has_key)(GDExtensionConstVariantPtr p_self, GDExtensionConstVariantPtr p_key, GDExtensionBool *r_valid); + void (*variant_get_type_name)(GDExtensionVariantType p_type, GDExtensionStringPtr r_name); + GDExtensionBool (*variant_can_convert)(GDExtensionVariantType p_from, GDExtensionVariantType p_to); + GDExtensionBool (*variant_can_convert_strict)(GDExtensionVariantType p_from, GDExtensionVariantType p_to); + + /* ptrcalls */ + GDExtensionVariantFromTypeConstructorFunc (*get_variant_from_type_constructor)(GDExtensionVariantType p_type); + GDExtensionTypeFromVariantConstructorFunc (*get_variant_to_type_constructor)(GDExtensionVariantType p_type); + GDExtensionPtrOperatorEvaluator (*variant_get_ptr_operator_evaluator)(GDExtensionVariantOperator p_operator, GDExtensionVariantType p_type_a, GDExtensionVariantType p_type_b); + GDExtensionPtrBuiltInMethod (*variant_get_ptr_builtin_method)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_method, GDExtensionInt p_hash); + GDExtensionPtrConstructor (*variant_get_ptr_constructor)(GDExtensionVariantType p_type, int32_t p_constructor); + GDExtensionPtrDestructor (*variant_get_ptr_destructor)(GDExtensionVariantType p_type); + void (*variant_construct)(GDExtensionVariantType p_type, GDExtensionVariantPtr p_base, const GDExtensionConstVariantPtr *p_args, int32_t p_argument_count, GDExtensionCallError *r_error); + GDExtensionPtrSetter (*variant_get_ptr_setter)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_member); + GDExtensionPtrGetter (*variant_get_ptr_getter)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_member); + GDExtensionPtrIndexedSetter (*variant_get_ptr_indexed_setter)(GDExtensionVariantType p_type); + GDExtensionPtrIndexedGetter (*variant_get_ptr_indexed_getter)(GDExtensionVariantType p_type); + GDExtensionPtrKeyedSetter (*variant_get_ptr_keyed_setter)(GDExtensionVariantType p_type); + GDExtensionPtrKeyedGetter (*variant_get_ptr_keyed_getter)(GDExtensionVariantType p_type); + GDExtensionPtrKeyedChecker (*variant_get_ptr_keyed_checker)(GDExtensionVariantType p_type); + void (*variant_get_constant_value)(GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_constant, GDExtensionVariantPtr r_ret); + GDExtensionPtrUtilityFunction (*variant_get_ptr_utility_function)(GDExtensionConstStringNamePtr p_function, GDExtensionInt p_hash); + + /* extra utilities */ + void (*string_new_with_latin1_chars)(GDExtensionStringPtr r_dest, const char *p_contents); + void (*string_new_with_utf8_chars)(GDExtensionStringPtr r_dest, const char *p_contents); + void (*string_new_with_utf16_chars)(GDExtensionStringPtr r_dest, const char16_t *p_contents); + void (*string_new_with_utf32_chars)(GDExtensionStringPtr r_dest, const char32_t *p_contents); + void (*string_new_with_wide_chars)(GDExtensionStringPtr r_dest, const wchar_t *p_contents); + void (*string_new_with_latin1_chars_and_len)(GDExtensionStringPtr r_dest, const char *p_contents, GDExtensionInt p_size); + void (*string_new_with_utf8_chars_and_len)(GDExtensionStringPtr r_dest, const char *p_contents, GDExtensionInt p_size); + void (*string_new_with_utf16_chars_and_len)(GDExtensionStringPtr r_dest, const char16_t *p_contents, GDExtensionInt p_size); + void (*string_new_with_utf32_chars_and_len)(GDExtensionStringPtr r_dest, const char32_t *p_contents, GDExtensionInt p_size); + void (*string_new_with_wide_chars_and_len)(GDExtensionStringPtr r_dest, const wchar_t *p_contents, GDExtensionInt p_size); + /* Information about the following functions: + * - The return value is the resulting encoded string length. + * - The length returned is in characters, not in bytes. It also does not include a trailing zero. + * - These functions also do not write trailing zero, If you need it, write it yourself at the position indicated by the length (and make sure to allocate it). + * - Passing NULL in r_text means only the length is computed (again, without including trailing zero). + * - p_max_write_length argument is in characters, not bytes. It will be ignored if r_text is NULL. + * - p_max_write_length argument does not affect the return value, it's only to cap write length. + */ + GDExtensionInt (*string_to_latin1_chars)(GDExtensionConstStringPtr p_self, char *r_text, GDExtensionInt p_max_write_length); + GDExtensionInt (*string_to_utf8_chars)(GDExtensionConstStringPtr p_self, char *r_text, GDExtensionInt p_max_write_length); + GDExtensionInt (*string_to_utf16_chars)(GDExtensionConstStringPtr p_self, char16_t *r_text, GDExtensionInt p_max_write_length); + GDExtensionInt (*string_to_utf32_chars)(GDExtensionConstStringPtr p_self, char32_t *r_text, GDExtensionInt p_max_write_length); + GDExtensionInt (*string_to_wide_chars)(GDExtensionConstStringPtr p_self, wchar_t *r_text, GDExtensionInt p_max_write_length); + char32_t *(*string_operator_index)(GDExtensionStringPtr p_self, GDExtensionInt p_index); + const char32_t *(*string_operator_index_const)(GDExtensionConstStringPtr p_self, GDExtensionInt p_index); + + void (*string_operator_plus_eq_string)(GDExtensionStringPtr p_self, GDExtensionConstStringPtr p_b); + void (*string_operator_plus_eq_char)(GDExtensionStringPtr p_self, char32_t p_b); + void (*string_operator_plus_eq_cstr)(GDExtensionStringPtr p_self, const char *p_b); + void (*string_operator_plus_eq_wcstr)(GDExtensionStringPtr p_self, const wchar_t *p_b); + void (*string_operator_plus_eq_c32str)(GDExtensionStringPtr p_self, const char32_t *p_b); + + /* XMLParser extra utilities */ + + GDExtensionInt (*xml_parser_open_buffer)(GDExtensionObjectPtr p_instance, const uint8_t *p_buffer, size_t p_size); + + /* FileAccess extra utilities */ + + void (*file_access_store_buffer)(GDExtensionObjectPtr p_instance, const uint8_t *p_src, uint64_t p_length); + uint64_t (*file_access_get_buffer)(GDExtensionConstObjectPtr p_instance, uint8_t *p_dst, uint64_t p_length); + + /* WorkerThreadPool extra utilities */ + + int64_t (*worker_thread_pool_add_native_group_task)(GDExtensionObjectPtr p_instance, void (*p_func)(void *, uint32_t), void *p_userdata, int p_elements, int p_tasks, GDExtensionBool p_high_priority, GDExtensionConstStringPtr p_description); + int64_t (*worker_thread_pool_add_native_task)(GDExtensionObjectPtr p_instance, void (*p_func)(void *), void *p_userdata, GDExtensionBool p_high_priority, GDExtensionConstStringPtr p_description); + + /* Packed array functions */ + + uint8_t *(*packed_byte_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedByteArray + const uint8_t *(*packed_byte_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedByteArray + + GDExtensionTypePtr (*packed_color_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedColorArray, returns Color ptr + GDExtensionTypePtr (*packed_color_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedColorArray, returns Color ptr + + float *(*packed_float32_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedFloat32Array + const float *(*packed_float32_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedFloat32Array + double *(*packed_float64_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedFloat64Array + const double *(*packed_float64_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedFloat64Array + + int32_t *(*packed_int32_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedInt32Array + const int32_t *(*packed_int32_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedInt32Array + int64_t *(*packed_int64_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedInt32Array + const int64_t *(*packed_int64_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedInt32Array + + GDExtensionStringPtr (*packed_string_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedStringArray + GDExtensionStringPtr (*packed_string_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedStringArray + + GDExtensionTypePtr (*packed_vector2_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedVector2Array, returns Vector2 ptr + GDExtensionTypePtr (*packed_vector2_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedVector2Array, returns Vector2 ptr + GDExtensionTypePtr (*packed_vector3_array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedVector3Array, returns Vector3 ptr + GDExtensionTypePtr (*packed_vector3_array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be a PackedVector3Array, returns Vector3 ptr + + GDExtensionVariantPtr (*array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr + GDExtensionVariantPtr (*array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr + void (*array_ref)(GDExtensionTypePtr p_self, GDExtensionConstTypePtr p_from); // p_self should be an Array ptr + void (*array_set_typed)(GDExtensionTypePtr p_self, GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstVariantPtr p_script); // p_self should be an Array ptr + + /* Dictionary functions */ + + GDExtensionVariantPtr (*dictionary_operator_index)(GDExtensionTypePtr p_self, GDExtensionConstVariantPtr p_key); // p_self should be an Dictionary ptr + GDExtensionVariantPtr (*dictionary_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionConstVariantPtr p_key); // p_self should be an Dictionary ptr + + /* OBJECT */ + + void (*object_method_bind_call)(GDExtensionMethodBindPtr p_method_bind, GDExtensionObjectPtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_arg_count, GDExtensionVariantPtr r_ret, GDExtensionCallError *r_error); + void (*object_method_bind_ptrcall)(GDExtensionMethodBindPtr p_method_bind, GDExtensionObjectPtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret); + void (*object_destroy)(GDExtensionObjectPtr p_o); + GDExtensionObjectPtr (*global_get_singleton)(GDExtensionConstStringNamePtr p_name); + + void *(*object_get_instance_binding)(GDExtensionObjectPtr p_o, void *p_token, const GDExtensionInstanceBindingCallbacks *p_callbacks); + void (*object_set_instance_binding)(GDExtensionObjectPtr p_o, void *p_token, void *p_binding, const GDExtensionInstanceBindingCallbacks *p_callbacks); + + void (*object_set_instance)(GDExtensionObjectPtr p_o, GDExtensionConstStringNamePtr p_classname, GDExtensionClassInstancePtr p_instance); /* p_classname should be a registered extension class and should extend the p_o object's class. */ + + GDExtensionObjectPtr (*object_cast_to)(GDExtensionConstObjectPtr p_object, void *p_class_tag); + GDExtensionObjectPtr (*object_get_instance_from_id)(GDObjectInstanceID p_instance_id); + GDObjectInstanceID (*object_get_instance_id)(GDExtensionConstObjectPtr p_object); + + /* REFERENCE */ + + GDExtensionObjectPtr (*ref_get_object)(GDExtensionConstRefPtr p_ref); + void (*ref_set_object)(GDExtensionRefPtr p_ref, GDExtensionObjectPtr p_object); + + /* SCRIPT INSTANCE */ + + GDExtensionScriptInstancePtr (*script_instance_create)(const GDExtensionScriptInstanceInfo *p_info, GDExtensionScriptInstanceDataPtr p_instance_data); + + /* CLASSDB */ + + GDExtensionObjectPtr (*classdb_construct_object)(GDExtensionConstStringNamePtr p_classname); /* The passed class must be a built-in godot class, or an already-registered extension class. In both case, object_set_instance should be called to fully initialize the object. */ + GDExtensionMethodBindPtr (*classdb_get_method_bind)(GDExtensionConstStringNamePtr p_classname, GDExtensionConstStringNamePtr p_methodname, GDExtensionInt p_hash); + void *(*classdb_get_class_tag)(GDExtensionConstStringNamePtr p_classname); + + /* CLASSDB EXTENSION */ + + /* Provided parameters for `classdb_register_extension_*` can be safely freed once the function returns. */ + void (*classdb_register_extension_class)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_parent_class_name, const GDExtensionClassCreationInfo *p_extension_funcs); + void (*classdb_register_extension_class_method)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, const GDExtensionClassMethodInfo *p_method_info); + void (*classdb_register_extension_class_integer_constant)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_enum_name, GDExtensionConstStringNamePtr p_constant_name, GDExtensionInt p_constant_value, GDExtensionBool p_is_bitfield); + void (*classdb_register_extension_class_property)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, const GDExtensionPropertyInfo *p_info, GDExtensionConstStringNamePtr p_setter, GDExtensionConstStringNamePtr p_getter); + void (*classdb_register_extension_class_property_group)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringPtr p_group_name, GDExtensionConstStringPtr p_prefix); + void (*classdb_register_extension_class_property_subgroup)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringPtr p_subgroup_name, GDExtensionConstStringPtr p_prefix); + void (*classdb_register_extension_class_signal)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstStringNamePtr p_signal_name, const GDExtensionPropertyInfo *p_argument_info, GDExtensionInt p_argument_count); + void (*classdb_unregister_extension_class)(GDExtensionClassLibraryPtr p_library, GDExtensionConstStringNamePtr p_class_name); /* Unregistering a parent class before a class that inherits it will result in failure. Inheritors must be unregistered first. */ + + void (*get_library_path)(GDExtensionClassLibraryPtr p_library, GDExtensionStringPtr r_path); + +} GDExtensionInterface; + +/* INITIALIZATION */ + +typedef enum { + GDEXTENSION_INITIALIZATION_CORE, + GDEXTENSION_INITIALIZATION_SERVERS, + GDEXTENSION_INITIALIZATION_SCENE, + GDEXTENSION_INITIALIZATION_EDITOR, + GDEXTENSION_MAX_INITIALIZATION_LEVEL, +} GDExtensionInitializationLevel; + +typedef struct { + /* Minimum initialization level required. + * If Core or Servers, the extension needs editor or game restart to take effect */ + GDExtensionInitializationLevel minimum_initialization_level; + /* Up to the user to supply when initializing */ + void *userdata; + /* This function will be called multiple times for each initialization level. */ + void (*initialize)(void *userdata, GDExtensionInitializationLevel p_level); + void (*deinitialize)(void *userdata, GDExtensionInitializationLevel p_level); +} GDExtensionInitialization; + +/* Define a C function prototype that implements the function below and expose it to dlopen() (or similar). + * This is the entry point of the GDExtension library and will be called on initialization. + * It can be used to set up different init levels, which are called during various stages of initialization/shutdown. + * The function name must be a unique one specified in the .gdextension config file. + */ +typedef GDExtensionBool (*GDExtensionInitializationFunction)(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization); + +#ifdef __cplusplus +} +#endif + +#endif // GDEXTENSION_INTERFACE_H diff --git a/lib/godot-cpp/include/godot_cpp/classes/ref.hpp b/lib/godot-cpp/include/godot_cpp/classes/ref.hpp new file mode 100644 index 0000000..af7711c --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/classes/ref.hpp @@ -0,0 +1,298 @@ +/**************************************************************************/ +/* ref.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_REF_HPP +#define GODOT_REF_HPP + +#include + +#include +#include +#include +#include +#include + +namespace godot { + +// Helper class for RefCounted objects, same as Godot one. + +class RefCounted; + +template +class Ref { + T *reference = nullptr; + + void ref(const Ref &p_from) { + if (p_from.reference == reference) { + return; + } + + unref(); + + reference = p_from.reference; + if (reference) { + reference->reference(); + } + } + + void ref_pointer(T *p_ref) { + ERR_FAIL_COND(!p_ref); + + if (p_ref->init_ref()) { + reference = p_ref; + } + } + +public: + _FORCE_INLINE_ bool operator==(const T *p_ptr) const { + return reference == p_ptr; + } + _FORCE_INLINE_ bool operator!=(const T *p_ptr) const { + return reference != p_ptr; + } + + _FORCE_INLINE_ bool operator<(const Ref &p_r) const { + return reference < p_r.reference; + } + _FORCE_INLINE_ bool operator==(const Ref &p_r) const { + return reference == p_r.reference; + } + _FORCE_INLINE_ bool operator!=(const Ref &p_r) const { + return reference != p_r.reference; + } + + _FORCE_INLINE_ T *operator->() { + return reference; + } + + _FORCE_INLINE_ T *operator*() { + return reference; + } + + _FORCE_INLINE_ const T *operator->() const { + return reference; + } + + _FORCE_INLINE_ const T *ptr() const { + return reference; + } + _FORCE_INLINE_ T *ptr() { + return reference; + } + + _FORCE_INLINE_ const T *operator*() const { + return reference; + } + + operator Variant() const { + return Variant(reference); + } + + void operator=(const Ref &p_from) { + ref(p_from); + } + + template + void operator=(const Ref &p_from) { + RefCounted *refb = const_cast(static_cast(p_from.ptr())); + if (!refb) { + unref(); + return; + } + + Ref r; + r.reference = Object::cast_to(refb); + ref(r); + r.reference = nullptr; + } + + void operator=(const Variant &p_variant) { + // Needs testing, Variant has a cast to Object * here. + + // Object *object = p_variant.get_validated_object(); + Object *object = p_variant; + + if (object == reference) { + return; + } + + unref(); + + if (!object) { + return; + } + + T *r = Object::cast_to(object); + if (r && r->reference()) { + reference = r; + } + } + + template + void reference_ptr(T_Other *p_ptr) { + if (reference == p_ptr) { + return; + } + unref(); + + T *r = Object::cast_to(p_ptr); + if (r) { + ref_pointer(r); + } + } + + Ref(const Ref &p_from) { + ref(p_from); + } + + template + Ref(const Ref &p_from) { + RefCounted *refb = const_cast(static_cast(p_from.ptr())); + if (!refb) { + unref(); + return; + } + + Ref r; + r.reference = Object::cast_to(refb); + ref(r); + r.reference = nullptr; + } + + Ref(T *p_reference) { + if (p_reference) { + ref_pointer(p_reference); + } + } + + Ref(const Variant &p_variant) { + // Needs testing, Variant has a cast to Object * here. + + // Object *object = p_variant.get_validated_object(); + Object *object = p_variant; + + if (!object) { + return; + } + + T *r = Object::cast_to(object); + if (r && r->reference()) { + reference = r; + } + } + + inline bool is_valid() const { return reference != nullptr; } + inline bool is_null() const { return reference == nullptr; } + + void unref() { + if (reference && reference->unreference()) { + memdelete(reference); + } + reference = nullptr; + } + + void instantiate() { + ref(memnew(T())); + } + + Ref() {} + + ~Ref() { + unref(); + } + + // Used exclusively in the bindings to recreate the Ref Godot encapsulates in return values, + // without adding to the refcount. + inline static Ref ___internal_constructor(Object *obj) { + Ref r; + r.reference = (T *)obj; + return r; + } +}; + +template +struct PtrToArg> { + _FORCE_INLINE_ static Ref convert(const void *p_ptr) { + // Important: p_ptr is T*, not Ref*, since Object* is what engine gives to ptrcall. + ERR_FAIL_NULL_V(p_ptr, Ref()); + return Ref(reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + reinterpret_cast(const_cast(p_ptr)), + godot::internal::token, &T::___binding_callbacks))); + } + + typedef Ref EncodeT; + + _FORCE_INLINE_ static void encode(Ref p_val, void *p_ptr) { + GDExtensionRefPtr ref = (GDExtensionRefPtr)p_ptr; + ERR_FAIL_NULL(ref); + + // This code assumes that p_ptr points to an unset Ref variable on the Godot side + // so we only set it if we have an object to set. + if (p_val.is_valid()) { + godot::internal::gde_interface->ref_set_object(ref, p_val->_owner); + } + } +}; + +template +struct PtrToArg &> { + typedef Ref EncodeT; + + _FORCE_INLINE_ static Ref convert(const void *p_ptr) { + ERR_FAIL_NULL_V(p_ptr, Ref()); + return Ref(reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + reinterpret_cast(const_cast(p_ptr)), + godot::internal::token, &T::___binding_callbacks))); + } +}; + +template +struct GetTypeInfo, typename EnableIf::value>::type> { + static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); + } +}; + +template +struct GetTypeInfo &, typename EnableIf::value>::type> { + static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); + } +}; + +} // namespace godot + +#endif // GODOT_REF_HPP diff --git a/lib/godot-cpp/include/godot_cpp/classes/wrapped.hpp b/lib/godot-cpp/include/godot_cpp/classes/wrapped.hpp new file mode 100644 index 0000000..17a742c --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/classes/wrapped.hpp @@ -0,0 +1,384 @@ +/**************************************************************************/ +/* wrapped.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_WRAPPED_HPP +#define GODOT_WRAPPED_HPP + +#include + +#include + +#include + +#include + +namespace godot { + +class ClassDB; + +typedef void GodotObject; + +// Base for all engine classes, to contain the pointer to the engine instance. +class Wrapped { + friend class GDExtensionBinding; + friend void postinitialize_handler(Wrapped *); + +protected: + virtual const StringName *_get_extension_class_name() const; // This is needed to retrieve the class name before the godot object has its _extension and _extension_instance members assigned. + virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const = 0; + + void _notification(int p_what) {} + bool _set(const StringName &p_name, const Variant &p_property) { return false; } + bool _get(const StringName &p_name, Variant &r_property) const { return false; } + void _get_property_list(List *p_list) const {} + bool _property_can_revert(const StringName &p_name) const { return false; } + bool _property_get_revert(const StringName &p_name, Variant &r_property) const { return false; } + String _to_string() const { return "[" + String(get_class_static()) + ":" + itos(get_instance_id()) + "]"; } + + static void notification_bind(GDExtensionClassInstancePtr p_instance, int32_t p_what) {} + static GDExtensionBool set_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value) { return false; } + static GDExtensionBool get_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { return false; } + static const GDExtensionPropertyInfo *get_property_list_bind(GDExtensionClassInstancePtr p_instance, uint32_t *r_count) { return nullptr; } + static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list) {} + static GDExtensionBool property_can_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name) { return false; } + static GDExtensionBool property_get_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { return false; } + static void to_string_bind(GDExtensionClassInstancePtr p_instance, GDExtensionBool *r_is_valid, GDExtensionStringPtr r_out) {} + + ::godot::List<::godot::PropertyInfo> plist_owned; + GDExtensionPropertyInfo *plist = nullptr; + uint32_t plist_size = 0; + + void _postinitialize(); + + Wrapped(const StringName p_godot_class); + Wrapped(GodotObject *p_godot_object); + virtual ~Wrapped() {} + +public: + static StringName &get_class_static() { + static StringName string_name = StringName("Wrapped"); + return string_name; + } + + uint64_t get_instance_id() const { + return 0; + } + + // Must be public but you should not touch this. + GodotObject *_owner = nullptr; +}; + +} // namespace godot + +#define GDCLASS(m_class, m_inherits) \ +private: \ + void operator=(const m_class &p_rval) {} \ + friend class ::godot::ClassDB; \ + \ +protected: \ + virtual const ::godot::StringName *_get_extension_class_name() const override { \ + static ::godot::StringName string_name = get_class_static(); \ + return &string_name; \ + } \ + \ + virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const override { \ + return &___binding_callbacks; \ + } \ + \ + static void (*_get_bind_methods())() { \ + return &m_class::_bind_methods; \ + } \ + \ + static void (::godot::Wrapped::*_get_notification())(int) { \ + return (void(::godot::Wrapped::*)(int)) & m_class::_notification; \ + } \ + \ + static bool (::godot::Wrapped::*_get_set())(const ::godot::StringName &p_name, const ::godot::Variant &p_property) { \ + return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, const ::godot::Variant &p_property)) & m_class::_set; \ + } \ + \ + static bool (::godot::Wrapped::*_get_get())(const ::godot::StringName &p_name, ::godot::Variant &r_ret) const { \ + return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, ::godot::Variant &r_ret) const) & m_class::_get; \ + } \ + \ + static void (::godot::Wrapped::*_get_get_property_list())(::godot::List<::godot::PropertyInfo> * p_list) const { \ + return (void(::godot::Wrapped::*)(::godot::List<::godot::PropertyInfo> * p_list) const) & m_class::_get_property_list; \ + } \ + \ + static bool (::godot::Wrapped::*_get_property_can_revert())(const ::godot::StringName &p_name) { \ + return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name)) & m_class::_property_can_revert; \ + } \ + \ + static bool (::godot::Wrapped::*_get_property_get_revert())(const ::godot::StringName &p_name, ::godot::Variant &) { \ + return (bool(::godot::Wrapped::*)(const ::godot::StringName &p_name, ::godot::Variant &)) & m_class::_property_get_revert; \ + } \ + \ + static ::godot::String (::godot::Wrapped::*_get_to_string())() { \ + return (::godot::String(::godot::Wrapped::*)()) & m_class::_to_string; \ + } \ + \ + template \ + static void register_virtuals() { \ + m_inherits::register_virtuals(); \ + } \ + \ +public: \ + static void initialize_class() { \ + static bool initialized = false; \ + if (initialized) { \ + return; \ + } \ + m_inherits::initialize_class(); \ + if (m_class::_get_bind_methods() != m_inherits::_get_bind_methods()) { \ + _bind_methods(); \ + m_inherits::register_virtuals(); \ + } \ + initialized = true; \ + } \ + \ + static ::godot::StringName &get_class_static() { \ + static ::godot::StringName string_name = ::godot::StringName(#m_class); \ + return string_name; \ + } \ + \ + static ::godot::StringName &get_parent_class_static() { \ + return m_inherits::get_class_static(); \ + } \ + \ + static GDExtensionObjectPtr create(void *data) { \ + m_class *new_object = memnew(m_class); \ + return new_object->_owner; \ + } \ + \ + static void notification_bind(GDExtensionClassInstancePtr p_instance, int32_t p_what) { \ + if (p_instance && m_class::_get_notification()) { \ + if (m_class::_get_notification() != m_inherits::_get_notification()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + return cls->_notification(p_what); \ + } \ + m_inherits::notification_bind(p_instance, p_what); \ + } \ + } \ + \ + static GDExtensionBool set_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value) { \ + if (p_instance && m_class::_get_set()) { \ + if (m_class::_get_set() != m_inherits::_get_set()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + return cls->_set(*reinterpret_cast(p_name), *reinterpret_cast(p_value)); \ + } \ + return m_inherits::set_bind(p_instance, p_name, p_value); \ + } \ + return false; \ + } \ + \ + static GDExtensionBool get_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { \ + if (p_instance && m_class::_get_get()) { \ + if (m_class::_get_get() != m_inherits::_get_get()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + return cls->_get(*reinterpret_cast(p_name), *reinterpret_cast<::godot::Variant *>(r_ret)); \ + } \ + return m_inherits::get_bind(p_instance, p_name, r_ret); \ + } \ + return false; \ + } \ + \ + static const GDExtensionPropertyInfo *get_property_list_bind(GDExtensionClassInstancePtr p_instance, uint32_t *r_count) { \ + if (p_instance && m_class::_get_get_property_list()) { \ + if (m_class::_get_get_property_list() != m_inherits::_get_get_property_list()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + ERR_FAIL_COND_V_MSG(!cls->plist_owned.is_empty() || cls->plist != nullptr || cls->plist_size != 0, nullptr, "Internal error, property list was not freed by engine!"); \ + cls->_get_property_list(&cls->plist_owned); \ + cls->plist = reinterpret_cast(memalloc(sizeof(GDExtensionPropertyInfo) * cls->plist_owned.size())); \ + cls->plist_size = 0; \ + for (const ::godot::PropertyInfo &E : cls->plist_owned) { \ + cls->plist[cls->plist_size].type = static_cast(E.type); \ + cls->plist[cls->plist_size].name = E.name._native_ptr(); \ + cls->plist[cls->plist_size].hint = E.hint; \ + cls->plist[cls->plist_size].hint_string = E.hint_string._native_ptr(); \ + cls->plist[cls->plist_size].class_name = E.class_name._native_ptr(); \ + cls->plist[cls->plist_size].usage = E.usage; \ + cls->plist_size++; \ + } \ + if (r_count) \ + *r_count = cls->plist_size; \ + return cls->plist; \ + } \ + return m_inherits::get_property_list_bind(p_instance, r_count); \ + } \ + return nullptr; \ + } \ + \ + static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list) { \ + if (p_instance) { \ + m_class *cls = reinterpret_cast(p_instance); \ + ERR_FAIL_COND_MSG(cls->plist == nullptr, "Internal error, property list double free!"); \ + memfree(cls->plist); \ + cls->plist = nullptr; \ + cls->plist_size = 0; \ + cls->plist_owned.clear(); \ + } \ + } \ + \ + static GDExtensionBool property_can_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name) { \ + if (p_instance && m_class::_get_property_can_revert()) { \ + if (m_class::_get_property_can_revert() != m_inherits::_get_property_can_revert()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + return cls->_property_can_revert(*reinterpret_cast(p_name)); \ + } \ + return m_inherits::property_can_revert_bind(p_instance, p_name); \ + } \ + return false; \ + } \ + \ + static GDExtensionBool property_get_revert_bind(GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { \ + if (p_instance && m_class::_get_property_get_revert()) { \ + if (m_class::_get_property_get_revert() != m_inherits::_get_property_get_revert()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + return cls->_property_get_revert(*reinterpret_cast(p_name), *reinterpret_cast<::godot::Variant *>(r_ret)); \ + } \ + return m_inherits::property_get_revert_bind(p_instance, p_name, r_ret); \ + } \ + return false; \ + } \ + \ + static void to_string_bind(GDExtensionClassInstancePtr p_instance, GDExtensionBool *r_is_valid, GDExtensionStringPtr r_out) { \ + if (p_instance && m_class::_get_to_string()) { \ + if (m_class::_get_to_string() != m_inherits::_get_to_string()) { \ + m_class *cls = reinterpret_cast(p_instance); \ + *reinterpret_cast<::godot::String *>(r_out) = cls->_to_string(); \ + *r_is_valid = true; \ + return; \ + } \ + m_inherits::to_string_bind(p_instance, r_is_valid, r_out); \ + } \ + } \ + \ + static void free(void *data, GDExtensionClassInstancePtr ptr) { \ + if (ptr) { \ + m_class *cls = reinterpret_cast(ptr); \ + cls->~m_class(); \ + ::godot::Memory::free_static(cls); \ + } \ + } \ + \ + static void *___binding_create_callback(void *p_token, void *p_instance) { \ + return nullptr; \ + } \ + \ + static void ___binding_free_callback(void *p_token, void *p_instance, void *p_binding) { \ + } \ + \ + static GDExtensionBool ___binding_reference_callback(void *p_token, void *p_instance, GDExtensionBool p_reference) { \ + return true; \ + } \ + \ + static constexpr GDExtensionInstanceBindingCallbacks ___binding_callbacks = { \ + ___binding_create_callback, \ + ___binding_free_callback, \ + ___binding_reference_callback, \ + }; + +// Don't use this for your classes, use GDCLASS() instead. +#define GDEXTENSION_CLASS(m_class, m_inherits) \ +private: \ + void operator=(const m_class &p_rval) {} \ + \ +protected: \ + virtual const GDExtensionInstanceBindingCallbacks *_get_bindings_callbacks() const override { \ + return &___binding_callbacks; \ + } \ + \ + m_class(const char *p_godot_class) : m_inherits(p_godot_class) {} \ + m_class(GodotObject *p_godot_object) : m_inherits(p_godot_object) {} \ + \ + static void (*_get_bind_methods())() { \ + return nullptr; \ + } \ + \ + static void (Wrapped::*_get_notification())(int) { \ + return nullptr; \ + } \ + \ + static bool (Wrapped::*_get_set())(const ::godot::StringName &p_name, const Variant &p_property) { \ + return nullptr; \ + } \ + \ + static bool (Wrapped::*_get_get())(const ::godot::StringName &p_name, Variant &r_ret) const { \ + return nullptr; \ + } \ + \ + static void (Wrapped::*_get_get_property_list())(List * p_list) const { \ + return nullptr; \ + } \ + \ + static bool (Wrapped::*_get_property_can_revert())(const ::godot::StringName &p_name) { \ + return nullptr; \ + } \ + \ + static bool (Wrapped::*_get_property_get_revert())(const ::godot::StringName &p_name, Variant &) { \ + return nullptr; \ + } \ + \ + static String (Wrapped::*_get_to_string())() { \ + return nullptr; \ + } \ + \ +public: \ + static void initialize_class() {} \ + \ + static ::godot::StringName &get_class_static() { \ + static ::godot::StringName string_name = ::godot::StringName(#m_class); \ + return string_name; \ + } \ + \ + static ::godot::StringName &get_parent_class_static() { \ + return m_inherits::get_class_static(); \ + } \ + \ + static void *___binding_create_callback(void *p_token, void *p_instance) { \ + /* Do not call memnew here, we don't want the postinitializer to be called */ \ + return new ("") m_class((GodotObject *)p_instance); \ + } \ + static void ___binding_free_callback(void *p_token, void *p_instance, void *p_binding) { \ + /* Explicitly call the deconstructor to ensure proper lifecycle for non-trivial members */ \ + reinterpret_cast(p_binding)->~m_class(); \ + Memory::free_static(reinterpret_cast(p_binding)); \ + } \ + static GDExtensionBool ___binding_reference_callback(void *p_token, void *p_instance, GDExtensionBool p_reference) { \ + return true; \ + } \ + static constexpr GDExtensionInstanceBindingCallbacks ___binding_callbacks = { \ + ___binding_create_callback, \ + ___binding_free_callback, \ + ___binding_reference_callback, \ + }; \ + m_class() : m_class(#m_class) {} + +#endif // GODOT_WRAPPED_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/binder_common.hpp b/lib/godot-cpp/include/godot_cpp/core/binder_common.hpp new file mode 100644 index 0000000..ed7c487 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/binder_common.hpp @@ -0,0 +1,606 @@ +/**************************************************************************/ +/* binder_common.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_BINDER_COMMON_HPP +#define GODOT_BINDER_COMMON_HPP + +#include + +#include +#include + +#include +#include + +namespace godot { + +#define VARIANT_ENUM_CAST(m_enum) \ + namespace godot { \ + MAKE_ENUM_TYPE_INFO(m_enum) \ + template <> \ + struct VariantCaster { \ + static _FORCE_INLINE_ m_enum cast(const Variant &p_variant) { \ + return (m_enum)p_variant.operator int64_t(); \ + } \ + }; \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_enum convert(const void *p_ptr) { \ + return m_enum(*reinterpret_cast(p_ptr)); \ + } \ + typedef int64_t EncodeT; \ + _FORCE_INLINE_ static void encode(m_enum p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + }; \ + } + +#define VARIANT_BITFIELD_CAST(m_enum) \ + namespace godot { \ + MAKE_BITFIELD_TYPE_INFO(m_enum) \ + template <> \ + struct VariantCaster> { \ + static _FORCE_INLINE_ BitField cast(const Variant &p_variant) { \ + return BitField(p_variant.operator int64_t()); \ + } \ + }; \ + template <> \ + struct PtrToArg> { \ + _FORCE_INLINE_ static BitField convert(const void *p_ptr) { \ + return BitField(*reinterpret_cast(p_ptr)); \ + } \ + typedef int64_t EncodeT; \ + _FORCE_INLINE_ static void encode(BitField p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + }; \ + } + +template +struct VariantCaster { + static _FORCE_INLINE_ T cast(const Variant &p_variant) { + using TStripped = std::remove_pointer_t; + if constexpr (std::is_base_of::value) { + return Object::cast_to(p_variant); + } else { + return p_variant; + } + } +}; + +template +struct VariantCaster { + static _FORCE_INLINE_ T cast(const Variant &p_variant) { + using TStripped = std::remove_pointer_t; + if constexpr (std::is_base_of::value) { + return Object::cast_to(p_variant); + } else { + return p_variant; + } + } +}; + +template +struct VariantCaster { + static _FORCE_INLINE_ T cast(const Variant &p_variant) { + using TStripped = std::remove_pointer_t; + if constexpr (std::is_base_of::value) { + return Object::cast_to(p_variant); + } else { + return p_variant; + } + } +}; + +template +struct VariantObjectClassChecker { + static _FORCE_INLINE_ bool check(const Variant &p_variant) { + using TStripped = std::remove_pointer_t; + if constexpr (std::is_base_of::value) { + Object *obj = p_variant; + return Object::cast_to(p_variant) || !obj; + } else { + return true; + } + } +}; + +template +class Ref; + +template +struct VariantObjectClassChecker &> { + static _FORCE_INLINE_ bool check(const Variant &p_variant) { + Object *obj = p_variant; + const Ref node = p_variant; + return node.ptr() || !obj; + } +}; + +template +struct VariantCasterAndValidate { + static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { + GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + if (!internal::gde_interface->variant_can_convert_strict(static_cast(p_args[p_arg_idx]->get_type()), argtype) || + !VariantObjectClassChecker::check(p_args[p_arg_idx])) { + r_error.error = GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT; + r_error.argument = p_arg_idx; + r_error.expected = argtype; + } + + return VariantCaster::cast(*p_args[p_arg_idx]); + } +}; + +template +struct VariantCasterAndValidate { + static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { + GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + if (!internal::gde_interface->variant_can_convert_strict(static_cast(p_args[p_arg_idx]->get_type()), argtype) || + !VariantObjectClassChecker::check(p_args[p_arg_idx])) { + r_error.error = GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT; + r_error.argument = p_arg_idx; + r_error.expected = argtype; + } + + return VariantCaster::cast(*p_args[p_arg_idx]); + } +}; + +template +struct VariantCasterAndValidate { + static _FORCE_INLINE_ T cast(const Variant **p_args, uint32_t p_arg_idx, GDExtensionCallError &r_error) { + GDExtensionVariantType argtype = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + if (!internal::gde_interface->variant_can_convert_strict(static_cast(p_args[p_arg_idx]->get_type()), argtype) || + !VariantObjectClassChecker::check(p_args[p_arg_idx])) { + r_error.error = GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT; + r_error.argument = p_arg_idx; + r_error.expected = argtype; + } + + return VariantCaster::cast(*p_args[p_arg_idx]); + } +}; + +template +void call_with_ptr_args_helper(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, IndexSequence) { + (p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...); +} + +template +void call_with_ptr_argsc_helper(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, IndexSequence) { + (p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...); +} + +template +void call_with_ptr_args_ret_helper(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { + PtrToArg::encode((p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...), r_ret); +} + +template +void call_with_ptr_args_retc_helper(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { + PtrToArg::encode((p_instance->*p_method)(PtrToArg

::convert(p_args[Is])...), r_ret); +} + +template +void call_with_ptr_args(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void * /*ret*/) { + call_with_ptr_args_helper(p_instance, p_method, p_args, BuildIndexSequence{}); +} + +template +void call_with_ptr_args(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void * /*ret*/) { + call_with_ptr_argsc_helper(p_instance, p_method, p_args, BuildIndexSequence{}); +} + +template +void call_with_ptr_args(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret) { + call_with_ptr_args_ret_helper(p_instance, p_method, p_args, r_ret, BuildIndexSequence{}); +} + +template +void call_with_ptr_args(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstTypePtr *p_args, void *r_ret) { + call_with_ptr_args_retc_helper(p_instance, p_method, p_args, r_ret, BuildIndexSequence{}); +} + +template +void call_with_variant_args_helper(T *p_instance, void (T::*p_method)(P...), const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + (p_instance->*p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif + (void)(p_args); // Avoid warning. +} + +template +void call_with_variant_argsc_helper(T *p_instance, void (T::*p_method)(P...) const, const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + (p_instance->*p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif + (void)(p_args); // Avoid warning. +} + +template +void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + r_ret = (p_instance->*p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + r_ret = (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif +} + +template +void call_with_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) const, const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + r_ret = (p_instance->*p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + r_ret = (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif + (void)p_args; +} + +template +void call_with_variant_args_dv(T *p_instance, void (T::*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = (int32_t)default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_args_helper(p_instance, p_method, argsp.data(), r_error, BuildIndexSequence{}); +} + +template +void call_with_variant_argsc_dv(T *p_instance, void (T::*p_method)(P...) const, const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = (int32_t)default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_argsc_helper(p_instance, p_method, argsp.data(), r_error, BuildIndexSequence{}); +} + +template +void call_with_variant_args_ret_dv(T *p_instance, R (T::*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = (int32_t)default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_args_ret_helper(p_instance, p_method, argsp.data(), r_ret, r_error, BuildIndexSequence{}); +} + +template +void call_with_variant_args_retc_dv(T *p_instance, R (T::*p_method)(P...) const, const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = (int32_t)default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = (int32_t)sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_args_retc_helper(p_instance, p_method, argsp.data(), r_ret, r_error, BuildIndexSequence{}); +} + +// GCC raises "parameter 'p_args' set but not used" when P = {}, +// it's not clever enough to treat other P values as making this branch valid. +#if defined(DEBUG_METHODS_ENABLED) && defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-but-set-parameter" +#endif + +template +void call_get_argument_type_helper(int p_arg, int &index, GDExtensionVariantType &type) { + if (p_arg == index) { + type = GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + } + index++; +} + +template +GDExtensionVariantType call_get_argument_type(int p_arg) { + GDExtensionVariantType type = GDEXTENSION_VARIANT_TYPE_NIL; + int index = 0; + // I think rocket science is simpler than modern C++. + using expand_type = int[]; + expand_type a{ 0, (call_get_argument_type_helper

(p_arg, index, type), 0)... }; + (void)a; // Suppress (valid, but unavoidable) -Wunused-variable warning. + (void)index; // Suppress GCC warning. + return type; +} + +template +void call_get_argument_type_info_helper(int p_arg, int &index, PropertyInfo &info) { + if (p_arg == index) { + info = GetTypeInfo::get_class_info(); + } + index++; +} + +template +void call_get_argument_type_info(int p_arg, PropertyInfo &info) { + int index = 0; + // I think rocket science is simpler than modern C++. + using expand_type = int[]; + expand_type a{ 0, (call_get_argument_type_info_helper

(p_arg, index, info), 0)... }; + (void)a; // Suppress (valid, but unavoidable) -Wunused-variable warning. + (void)index; // Suppress GCC warning. +} + +template +void call_get_argument_metadata_helper(int p_arg, int &index, GDExtensionClassMethodArgumentMetadata &md) { + if (p_arg == index) { + md = GetTypeInfo::METADATA; + } + index++; +} + +template +GDExtensionClassMethodArgumentMetadata call_get_argument_metadata(int p_arg) { + GDExtensionClassMethodArgumentMetadata md = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + + int index = 0; + // I think rocket science is simpler than modern C++. + using expand_type = int[]; + expand_type a{ 0, (call_get_argument_metadata_helper

(p_arg, index, md), 0)... }; + (void)a; // Suppress (valid, but unavoidable) -Wunused-variable warning. + (void)index; + return md; +} + +template +void call_with_variant_args_static(void (*p_method)(P...), const Variant **p_args, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + (p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + (p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif +} + +template +void call_with_variant_args_static_dv(void (*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_args_static(p_method, argsp.data(), r_error, BuildIndexSequence{}); +} + +template +void call_with_ptr_args_static_method_helper(void (*p_method)(P...), const GDExtensionConstTypePtr *p_args, IndexSequence) { + p_method(PtrToArg

::convert(p_args[Is])...); +} + +template +void call_with_ptr_args_static_method(void (*p_method)(P...), const GDExtensionConstTypePtr *p_args) { + call_with_ptr_args_static_method_helper(p_method, p_args, BuildIndexSequence{}); +} + +template +void call_with_variant_args_static_ret(R (*p_method)(P...), const Variant **p_args, Variant &r_ret, GDExtensionCallError &r_error, IndexSequence) { + r_error.error = GDEXTENSION_CALL_OK; + +#ifdef DEBUG_METHODS_ENABLED + r_ret = (p_method)(VariantCasterAndValidate

::cast(p_args, Is, r_error)...); +#else + r_ret = (p_method)(VariantCaster

::cast(*p_args[Is])...); +#endif +} + +template +void call_with_variant_args_static_ret_dv(R (*p_method)(P...), const GDExtensionConstVariantPtr *p_args, int p_argcount, Variant &r_ret, GDExtensionCallError &r_error, const std::vector &default_values) { +#ifdef DEBUG_ENABLED + if ((size_t)p_argcount > sizeof...(P)) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_MANY_ARGUMENTS; + r_error.argument = sizeof...(P); + return; + } +#endif + + int32_t missing = (int32_t)sizeof...(P) - (int32_t)p_argcount; + + int32_t dvs = default_values.size(); +#ifdef DEBUG_ENABLED + if (missing > dvs) { + r_error.error = GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS; + r_error.argument = sizeof...(P); + return; + } +#endif + + Variant args[sizeof...(P) == 0 ? 1 : sizeof...(P)]; // Avoid zero sized array. + std::array argsp; + for (int32_t i = 0; i < (int32_t)sizeof...(P); i++) { + if (i < p_argcount) { + args[i] = Variant(p_args[i]); + } else { + args[i] = default_values[i - p_argcount + (dvs - missing)]; + } + argsp[i] = &args[i]; + } + + call_with_variant_args_static_ret(p_method, argsp.data(), r_ret, r_error, BuildIndexSequence{}); +} + +template +void call_with_ptr_args_static_method_ret_helper(R (*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret, IndexSequence) { + PtrToArg::encode(p_method(PtrToArg

::convert(p_args[Is])...), r_ret); +} + +template +void call_with_ptr_args_static_method_ret(R (*p_method)(P...), const GDExtensionConstTypePtr *p_args, void *r_ret) { + call_with_ptr_args_static_method_ret_helper(p_method, p_args, r_ret, BuildIndexSequence{}); +} + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +} // namespace godot + +#include +#include + +#endif // GODOT_BINDER_COMMON_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/builtin_ptrcall.hpp b/lib/godot-cpp/include/godot_cpp/core/builtin_ptrcall.hpp new file mode 100644 index 0000000..87311b8 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/builtin_ptrcall.hpp @@ -0,0 +1,80 @@ +/**************************************************************************/ +/* builtin_ptrcall.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_BUILTIN_PTRCALL_HPP +#define GODOT_BUILTIN_PTRCALL_HPP + +#include + +#include + +namespace godot { + +namespace internal { + +template +void _call_builtin_constructor(const GDExtensionPtrConstructor constructor, GDExtensionTypePtr base, Args... args) { + std::array call_args = { { (GDExtensionConstTypePtr)args... } }; + constructor(base, call_args.data()); +} + +template +T _call_builtin_method_ptr_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) { + T ret; + std::array call_args = { { (GDExtensionConstTypePtr)args... } }; + method(base, call_args.data(), &ret, sizeof...(Args)); + return ret; +} + +template +void _call_builtin_method_ptr_no_ret(const GDExtensionPtrBuiltInMethod method, GDExtensionTypePtr base, Args... args) { + std::array call_args = { { (GDExtensionConstTypePtr)args... } }; + method(base, call_args.data(), nullptr, sizeof...(Args)); +} + +template +T _call_builtin_operator_ptr(const GDExtensionPtrOperatorEvaluator op, GDExtensionConstTypePtr left, GDExtensionConstTypePtr right) { + T ret; + op(left, right, &ret); + return ret; +} + +template +T _call_builtin_ptr_getter(const GDExtensionPtrGetter getter, GDExtensionConstTypePtr base) { + T ret; + getter(base, &ret); + return ret; +} + +} // namespace internal + +} // namespace godot + +#endif // GODOT_BUILTIN_PTRCALL_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/class_db.hpp b/lib/godot-cpp/include/godot_cpp/core/class_db.hpp new file mode 100644 index 0000000..3554299 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/class_db.hpp @@ -0,0 +1,277 @@ +/**************************************************************************/ +/* class_db.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_CLASS_DB_HPP +#define GODOT_CLASS_DB_HPP + +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Needed to use StringName as key in `std::unordered_map` +template <> +struct std::hash { + std::size_t operator()(godot::StringName const &s) const noexcept { + return s.hash(); + } +}; + +namespace godot { + +#define DEFVAL(m_defval) (m_defval) + +struct MethodDefinition { + StringName name; + std::list args; + MethodDefinition() {} + MethodDefinition(StringName p_name) : + name(p_name) {} +}; + +MethodDefinition D_METHOD(StringName p_name); +MethodDefinition D_METHOD(StringName p_name, StringName p_arg1); +template +MethodDefinition D_METHOD(StringName p_name, StringName p_arg1, Args... args) { + MethodDefinition md = D_METHOD(p_name, args...); + md.args.push_front(p_arg1); + return md; +} + +class ClassDB { + static GDExtensionInitializationLevel current_level; + + friend class godot::GDExtensionBinding; + +public: + struct PropertySetGet { + int index; + StringName setter; + StringName getter; + MethodBind *_setptr; + MethodBind *_getptr; + Variant::Type type; + }; + + struct ClassInfo { + StringName name; + StringName parent_name; + GDExtensionInitializationLevel level = GDEXTENSION_INITIALIZATION_SCENE; + std::unordered_map method_map; + std::set signal_names; + std::unordered_map virtual_methods; + std::set property_names; + std::set constant_names; + // Pointer to the parent custom class, if any. Will be null if the parent class is a Godot class. + ClassInfo *parent_ptr = nullptr; + }; + +private: + // This may only contain custom classes, not Godot classes + static std::unordered_map classes; + + static MethodBind *bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const MethodDefinition &method_name, const void **p_defs, int p_defcount); + static void initialize_class(const ClassInfo &cl); + static void bind_method_godot(const StringName &p_class_name, MethodBind *p_method); + + template + static void _register_class(bool p_virtual = false); + +public: + template + static void register_class(bool p_virtual = false); + template + static void register_abstract_class(); + + template + static MethodBind *bind_method(N p_method_name, M p_method, VarArgs... p_args); + + template + static MethodBind *bind_static_method(StringName p_class, N p_method_name, M p_method, VarArgs... p_args); + + template + static MethodBind *bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info = MethodInfo(), const std::vector &p_default_args = std::vector{}, bool p_return_nil_is_variant = true); + + static void add_property_group(const StringName &p_class, const String &p_name, const String &p_prefix); + static void add_property_subgroup(const StringName &p_class, const String &p_name, const String &p_prefix); + static void add_property(const StringName &p_class, const PropertyInfo &p_pinfo, const StringName &p_setter, const StringName &p_getter, int p_index = -1); + static void add_signal(const StringName &p_class, const MethodInfo &p_signal); + static void bind_integer_constant(const StringName &p_class_name, const StringName &p_enum_name, const StringName &p_constant_name, GDExtensionInt p_constant_value, bool p_is_bitfield = false); + static void bind_virtual_method(const StringName &p_class, const StringName &p_method, GDExtensionClassCallVirtual p_call); + + static MethodBind *get_method(const StringName &p_class, const StringName &p_method); + + static GDExtensionClassCallVirtual get_virtual_func(void *p_userdata, GDExtensionConstStringNamePtr p_name); + + static void initialize(GDExtensionInitializationLevel p_level); + static void deinitialize(GDExtensionInitializationLevel p_level); +}; + +#define BIND_CONSTANT(m_constant) \ + godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant); + +#define BIND_ENUM_CONSTANT(m_constant) \ + godot::ClassDB::bind_integer_constant(get_class_static(), godot::__constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant); + +#define BIND_BITFIELD_FLAG(m_constant) \ + godot::ClassDB::bind_integer_constant(get_class_static(), godot::__constant_get_bitfield_name(m_constant, #m_constant), #m_constant, m_constant, true); + +#define BIND_VIRTUAL_METHOD(m_class, m_method) \ + { \ + auto ___call##m_method = [](GDExtensionObjectPtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr p_ret) -> void { \ + call_with_ptr_args(reinterpret_cast(p_instance), &m_class::m_method, p_args, p_ret); \ + }; \ + godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, ___call##m_method); \ + } + +template +void ClassDB::_register_class(bool p_virtual) { + // Register this class within our plugin + ClassInfo cl; + cl.name = T::get_class_static(); + cl.parent_name = T::get_parent_class_static(); + cl.level = current_level; + std::unordered_map::iterator parent_it = classes.find(cl.parent_name); + if (parent_it != classes.end()) { + // Assign parent if it is also a custom class + cl.parent_ptr = &parent_it->second; + } + classes[cl.name] = cl; + + // Register this class with Godot + GDExtensionClassCreationInfo class_info = { + p_virtual, // GDExtensionBool is_virtual; + is_abstract, // GDExtensionBool is_abstract; + T::set_bind, // GDExtensionClassSet set_func; + T::get_bind, // GDExtensionClassGet get_func; + T::get_property_list_bind, // GDExtensionClassGetPropertyList get_property_list_func; + T::free_property_list_bind, // GDExtensionClassFreePropertyList free_property_list_func; + T::property_can_revert_bind, // GDExtensionClassPropertyCanRevert property_can_revert_func; + T::property_get_revert_bind, // GDExtensionClassPropertyGetRevert property_get_revert_func; + T::notification_bind, // GDExtensionClassNotification notification_func; + T::to_string_bind, // GDExtensionClassToString to_string_func; + nullptr, // GDExtensionClassReference reference_func; + nullptr, // GDExtensionClassUnreference unreference_func; + T::create, // GDExtensionClassCreateInstance create_instance_func; /* this one is mandatory */ + T::free, // GDExtensionClassFreeInstance free_instance_func; /* this one is mandatory */ + &ClassDB::get_virtual_func, // GDExtensionClassGetVirtual get_virtual_func; + nullptr, // GDExtensionClassGetRID get_rid; + (void *)&T::get_class_static(), // void *class_userdata; + }; + + internal::gde_interface->classdb_register_extension_class(internal::library, cl.name._native_ptr(), cl.parent_name._native_ptr(), &class_info); + + // call bind_methods etc. to register all members of the class + T::initialize_class(); + + // now register our class within ClassDB within Godot + initialize_class(classes[cl.name]); +} + +template +void ClassDB::register_class(bool p_virtual) { + ClassDB::_register_class(p_virtual); +} + +template +void ClassDB::register_abstract_class() { + ClassDB::_register_class(); +} + +template +MethodBind *ClassDB::bind_method(N p_method_name, M p_method, VarArgs... p_args) { + Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. + const Variant *argptrs[sizeof...(p_args) + 1]; + for (uint32_t i = 0; i < sizeof...(p_args); i++) { + argptrs[i] = &args[i]; + } + MethodBind *bind = create_method_bind(p_method); + return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, sizeof...(p_args) == 0 ? nullptr : (const void **)argptrs, sizeof...(p_args)); +} + +template +MethodBind *ClassDB::bind_static_method(StringName p_class, N p_method_name, M p_method, VarArgs... p_args) { + Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. + const Variant *argptrs[sizeof...(p_args) + 1]; + for (uint32_t i = 0; i < sizeof...(p_args); i++) { + argptrs[i] = &args[i]; + } + MethodBind *bind = create_static_method_bind(p_method); + bind->set_instance_class(p_class); + return bind_methodfi(0, bind, p_method_name, sizeof...(p_args) == 0 ? nullptr : (const void **)argptrs, sizeof...(p_args)); +} + +template +MethodBind *ClassDB::bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info, const std::vector &p_default_args, bool p_return_nil_is_variant) { + MethodBind *bind = create_vararg_method_bind(p_method, p_info, p_return_nil_is_variant); + ERR_FAIL_COND_V(!bind, nullptr); + + bind->set_name(p_name); + bind->set_default_arguments(p_default_args); + + StringName instance_type = bind->get_instance_class(); + + std::unordered_map::iterator type_it = classes.find(instance_type); + if (type_it == classes.end()) { + memdelete(bind); + ERR_FAIL_V_MSG(nullptr, String("Class '{0}' doesn't exist.").format(Array::make(instance_type))); + } + + ClassInfo &type = type_it->second; + + if (type.method_map.find(p_name) != type.method_map.end()) { + memdelete(bind); + ERR_FAIL_V_MSG(nullptr, String("Binding duplicate method: {0}::{1}.").format(Array::make(instance_type, p_method))); + } + + // register our method bind within our plugin + type.method_map[p_name] = bind; + + // and register with godot + bind_method_godot(type.name, bind); + + return bind; +} + +#define GDREGISTER_CLASS(m_class) ClassDB::register_class(); +#define GDREGISTER_VIRTUAL_CLASS(m_class) ClassDB::register_class(true); +#define GDREGISTER_ABSTRACT_CLASS(m_class) ClassDB::register_abstract_class(); + +} // namespace godot + +#endif // GODOT_CLASS_DB_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/defs.hpp b/lib/godot-cpp/include/godot_cpp/core/defs.hpp new file mode 100644 index 0000000..c03db50 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/defs.hpp @@ -0,0 +1,130 @@ +/**************************************************************************/ +/* defs.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_DEFS_HPP +#define GODOT_DEFS_HPP + +#include +#include +#include + +#if !defined(GDE_EXPORT) +#if defined(_WIN32) +#define GDE_EXPORT __declspec(dllexport) +#elif defined(__GNUC__) +#define GDE_EXPORT __attribute__((visibility("default"))) +#else +#define GDE_EXPORT +#endif +#endif + +// Turn argument to string constant: +// https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing +#ifndef _STR +#define _STR(m_x) #m_x +#define _MKSTR(m_x) _STR(m_x) +#endif + +// Should always inline no matter what. +#ifndef _ALWAYS_INLINE_ +#if defined(__GNUC__) +#define _ALWAYS_INLINE_ __attribute__((always_inline)) inline +#elif defined(_MSC_VER) +#define _ALWAYS_INLINE_ __forceinline +#else +#define _ALWAYS_INLINE_ inline +#endif +#endif + +// Should always inline, except in debug builds because it makes debugging harder. +#ifndef _FORCE_INLINE_ +#ifdef DISABLE_FORCED_INLINE +#define _FORCE_INLINE_ inline +#else +#define _FORCE_INLINE_ _ALWAYS_INLINE_ +#endif +#endif + +#ifndef _NO_DISCARD_ +#define _NO_DISCARD_ [[nodiscard]] +#endif + +// Windows badly defines a lot of stuff we'll never use. Undefine it. +#ifdef _WIN32 +#undef min // override standard definition +#undef max // override standard definition +#undef ERROR // override (really stupid) wingdi.h standard definition +#undef DELETE // override (another really stupid) winnt.h standard definition +#undef MessageBox // override winuser.h standard definition +#undef MIN // override standard definition +#undef MAX // override standard definition +#undef CLAMP // override standard definition +#undef Error +#undef OK +#undef CONNECT_DEFERRED // override from Windows SDK, clashes with Object enum +#endif + +#if defined(__GNUC__) +#define likely(x) __builtin_expect(!!(x), 1) +#define unlikely(x) __builtin_expect(!!(x), 0) +#else +#define likely(x) x +#define unlikely(x) x +#endif + +#ifdef REAL_T_IS_DOUBLE +typedef double real_t; +#else +typedef float real_t; +#endif + +// Generic swap template. +#ifndef SWAP +#define SWAP(m_x, m_y) __swap_tmpl((m_x), (m_y)) +template +inline void __swap_tmpl(T &x, T &y) { + T aux = x; + x = y; + y = aux; +} +#endif // SWAP + +// Home-made index sequence trick, so it can be used everywhere without the costly include of std::tuple. +// https://stackoverflow.com/questions/15014096/c-index-of-type-during-variadic-template-expansion +template +struct IndexSequence {}; + +template +struct BuildIndexSequence : BuildIndexSequence {}; + +template +struct BuildIndexSequence<0, Is...> : IndexSequence {}; + +#endif // GODOT_DEFS_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/engine_ptrcall.hpp b/lib/godot-cpp/include/godot_cpp/core/engine_ptrcall.hpp new file mode 100644 index 0000000..94da3c5 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/engine_ptrcall.hpp @@ -0,0 +1,97 @@ +/**************************************************************************/ +/* engine_ptrcall.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_ENGINE_PTRCALL_HPP +#define GODOT_ENGINE_PTRCALL_HPP + +#include + +#include +#include +#include + +#include + +namespace godot { + +namespace internal { + +template +O *_call_native_mb_ret_obj(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { + GodotObject *ret = nullptr; + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + internal::gde_interface->object_method_bind_ptrcall(mb, instance, mb_args.data(), &ret); + if (ret == nullptr) { + return nullptr; + } + return reinterpret_cast(internal::gde_interface->object_get_instance_binding(ret, internal::token, &O::___binding_callbacks)); +} + +template +R _call_native_mb_ret(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { + R ret; + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + internal::gde_interface->object_method_bind_ptrcall(mb, instance, mb_args.data(), &ret); + return ret; +} + +template +void _call_native_mb_no_ret(const GDExtensionMethodBindPtr mb, void *instance, const Args &...args) { + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + internal::gde_interface->object_method_bind_ptrcall(mb, instance, mb_args.data(), nullptr); +} + +template +R _call_utility_ret(GDExtensionPtrUtilityFunction func, const Args &...args) { + R ret; + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + func(&ret, mb_args.data(), mb_args.size()); + return ret; +} + +template +Object *_call_utility_ret_obj(const GDExtensionPtrUtilityFunction func, void *instance, const Args &...args) { + GodotObject *ret = nullptr; + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + func(&ret, mb_args.data(), mb_args.size()); + return (Object *)internal::gde_interface->object_get_instance_binding(ret, internal::token, &Object::___binding_callbacks); +} + +template +void _call_utility_no_ret(const GDExtensionPtrUtilityFunction func, const Args &...args) { + std::array mb_args = { { (GDExtensionConstTypePtr)args... } }; + func(nullptr, mb_args.data(), mb_args.size()); +} + +} // namespace internal + +} // namespace godot + +#endif // GODOT_ENGINE_PTRCALL_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/error_macros.hpp b/lib/godot-cpp/include/godot_cpp/core/error_macros.hpp new file mode 100644 index 0000000..a27c2cb --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/error_macros.hpp @@ -0,0 +1,806 @@ +/**************************************************************************/ +/* error_macros.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_ERROR_MACROS_HPP +#define GODOT_ERROR_MACROS_HPP + +#include + +#include + +namespace godot { + +class String; + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const char *p_message, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const char *p_message, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const String &p_message, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const String &p_message, bool p_editor_notify = false, bool p_is_warning = false); +void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const char *p_message = "", bool p_editor_notify = false, bool p_fatal = false); +void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const String &p_message, bool p_editor_notify = false, bool p_fatal = false); +void _err_flush_stdout(); + +} // namespace godot + +#ifdef __GNUC__ +#define FUNCTION_STR __FUNCTION__ +#else +#define FUNCTION_STR __FUNCTION__ +#endif + +#ifdef _MSC_VER +/** + * Don't use GENERATE_TRAP() directly, should only be used be the macros below. + */ +#define GENERATE_TRAP() __debugbreak() +#else +/** + * Don't use GENERATE_TRAP() directly, should only be used be the macros below. + */ +#define GENERATE_TRAP() __builtin_trap() +#endif + +/** + * Error macros. + * WARNING: These macros work in the opposite way to assert(). + * + * Unlike exceptions and asserts, these macros try to maintain consistency and stability. + * In most cases, bugs and/or invalid data are not fatal. They should never allow a perfectly + * running application to fail or crash. + * Always try to return processable data, so the engine can keep running well. + * Use the _MSG versions to print a meaningful message to help with debugging. + * + * The `((void)0)` no-op statement is used as a trick to force us to put a semicolon after + * those macros, making them look like proper statements. + * The if wrappers are used to ensure that the macro replacement does not trigger unexpected + * issues when expanded e.g. after an `if (cond) ERR_FAIL();` without braces. + */ + +// Index out of bounds error macros. +// These macros should be used instead of `ERR_FAIL_COND` for bounds checking. + +// Integer index out of bounds error macros. + +/** + * Try using `ERR_FAIL_INDEX_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, the current function returns. + */ +#define ERR_FAIL_INDEX(m_index, m_size) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size)); \ + return; \ + } else \ + ((void)0) + +/** + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, prints `m_msg` and the current function returns. + */ +#define ERR_FAIL_INDEX_MSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg); \ + return; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_INDEX_MSG` but also notifies the editor. + */ +#define ERR_FAIL_INDEX_EDMSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, true); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_INDEX_V_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, the current function returns `m_retval`. + */ +#define ERR_FAIL_INDEX_V(m_index, m_size, m_retval) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size)); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, prints `m_msg` and the current function returns `m_retval`. + */ +#define ERR_FAIL_INDEX_V_MSG(m_index, m_size, m_retval, m_msg) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_INDEX_V_MSG` but also notifies the editor. + */ +#define ERR_FAIL_INDEX_V_EDMSG(m_index, m_size, m_retval, m_msg) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, true); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_INDEX_MSG` or `ERR_FAIL_INDEX_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable, and + * there is no sensible error message. + * + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, the application crashes. + */ +#define CRASH_BAD_INDEX(m_index, m_size) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), "", false, true); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_INDEX_MSG` or `ERR_FAIL_INDEX_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable. + * + * Ensures an integer index `m_index` is less than `m_size` and greater than or equal to 0. + * If not, prints `m_msg` and the application crashes. + */ +#define CRASH_BAD_INDEX_MSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, false, true); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +// Unsigned integer index out of bounds error macros. + +/** + * Try using `ERR_FAIL_UNSIGNED_INDEX_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, the current function returns. + */ +#define ERR_FAIL_UNSIGNED_INDEX(m_index, m_size) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size)); \ + return; \ + } else \ + ((void)0) + +/** + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, prints `m_msg` and the current function returns. + */ +#define ERR_FAIL_UNSIGNED_INDEX_MSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg); \ + return; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_UNSIGNED_INDEX_MSG` but also notifies the editor. + */ +#define ERR_FAIL_UNSIGNED_INDEX_EDMSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, true); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_UNSIGNED_INDEX_V_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, the current function returns `m_retval`. + */ +#define ERR_FAIL_UNSIGNED_INDEX_V(m_index, m_size, m_retval) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size)); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, prints `m_msg` and the current function returns `m_retval`. + */ +#define ERR_FAIL_UNSIGNED_INDEX_V_MSG(m_index, m_size, m_retval, m_msg) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_UNSIGNED_INDEX_V_EDMSG` but also notifies the editor. + */ +#define ERR_FAIL_UNSIGNED_INDEX_V_EDMSG(m_index, m_size, m_retval, m_msg) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, true); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_UNSIGNED_INDEX_MSG` or `ERR_FAIL_UNSIGNED_INDEX_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable, and + * there is no sensible error message. + * + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, the application crashes. + */ +#define CRASH_BAD_UNSIGNED_INDEX(m_index, m_size) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), "", false, true); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_UNSIGNED_INDEX_MSG` or `ERR_FAIL_UNSIGNED_INDEX_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable. + * + * Ensures an unsigned integer index `m_index` is less than `m_size`. + * If not, prints `m_msg` and the application crashes. + */ +#define CRASH_BAD_UNSIGNED_INDEX_MSG(m_index, m_size, m_msg) \ + if (unlikely((m_index) >= (m_size))) { \ + ::godot::_err_print_index_error(FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR(m_index), _STR(m_size), m_msg, false, true); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +// Null reference error macros. + +/** + * Try using `ERR_FAIL_NULL_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures a pointer `m_param` is not null. + * If it is null, the current function returns. + */ +#define ERR_FAIL_NULL(m_param) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null."); \ + return; \ + } else \ + ((void)0) + +/** + * Ensures a pointer `m_param` is not null. + * If it is null, prints `m_msg` and the current function returns. + */ +#define ERR_FAIL_NULL_MSG(m_param, m_msg) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null.", m_msg); \ + return; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_NULL_MSG` but also notifies the editor. + */ +#define ERR_FAIL_NULL_EDMSG(m_param, m_msg) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null.", m_msg, true); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_NULL_V_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures a pointer `m_param` is not null. + * If it is null, the current function returns `m_retval`. + */ +#define ERR_FAIL_NULL_V(m_param, m_retval) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null."); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Ensures a pointer `m_param` is not null. + * If it is null, prints `m_msg` and the current function returns `m_retval`. + */ +#define ERR_FAIL_NULL_V_MSG(m_param, m_retval, m_msg) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null.", m_msg); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_NULL_V_MSG` but also notifies the editor. + */ +#define ERR_FAIL_NULL_V_EDMSG(m_param, m_retval, m_msg) \ + if (unlikely(m_param == nullptr)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Parameter \"" _STR(m_param) "\" is null.", m_msg, true); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_MSG`. + * Only use this macro if there is no sensible error message. + * If checking for null use ERR_FAIL_NULL_MSG instead. + * If checking index bounds use ERR_FAIL_INDEX_MSG instead. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, the current function returns. + */ +#define ERR_FAIL_COND(m_cond) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true."); \ + return; \ + } else \ + ((void)0) + +/** + * Ensures `m_cond` is false. + * If `m_cond` is true, prints `m_msg` and the current function returns. + * + * If checking for null use ERR_FAIL_NULL_MSG instead. + * If checking index bounds use ERR_FAIL_INDEX_MSG instead. + */ +#define ERR_FAIL_COND_MSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true.", m_msg); \ + return; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_COND_MSG` but also notifies the editor. + */ +#define ERR_FAIL_COND_EDMSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true.", m_msg, true); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_V_MSG`. + * Only use this macro if there is no sensible error message. + * If checking for null use ERR_FAIL_NULL_V_MSG instead. + * If checking index bounds use ERR_FAIL_INDEX_V_MSG instead. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, the current function returns `m_retval`. + */ +#define ERR_FAIL_COND_V(m_cond, m_retval) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Returning: " _STR(m_retval)); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Ensures `m_cond` is false. + * If `m_cond` is true, prints `m_msg` and the current function returns `m_retval`. + * + * If checking for null use ERR_FAIL_NULL_V_MSG instead. + * If checking index bounds use ERR_FAIL_INDEX_V_MSG instead. + */ +#define ERR_FAIL_COND_V_MSG(m_cond, m_retval, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Returning: " _STR(m_retval), m_msg); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_COND_V_MSG` but also notifies the editor. + */ +#define ERR_FAIL_COND_V_EDMSG(m_cond, m_retval, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Returning: " _STR(m_retval), m_msg, true); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_CONTINUE_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, the current loop continues. + */ +#define ERR_CONTINUE(m_cond) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Continuing."); \ + continue; \ + } else \ + ((void)0) + +/** + * Ensures `m_cond` is false. + * If `m_cond` is true, prints `m_msg` and the current loop continues. + */ +#define ERR_CONTINUE_MSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Continuing.", m_msg); \ + continue; \ + } else \ + ((void)0) + +/** + * Same as `ERR_CONTINUE_MSG` but also notifies the editor. + */ +#define ERR_CONTINUE_EDMSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Continuing.", m_msg, true); \ + continue; \ + } else \ + ((void)0) + +/** + * Try using `ERR_BREAK_MSG`. + * Only use this macro if there is no sensible error message. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, the current loop breaks. + */ +#define ERR_BREAK(m_cond) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Breaking."); \ + break; \ + } else \ + ((void)0) + +/** + * Ensures `m_cond` is false. + * If `m_cond` is true, prints `m_msg` and the current loop breaks. + */ +#define ERR_BREAK_MSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Breaking.", m_msg); \ + break; \ + } else \ + ((void)0) + +/** + * Same as `ERR_BREAK_MSG` but also notifies the editor. + */ +#define ERR_BREAK_EDMSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Condition \"" _STR(m_cond) "\" is true. Breaking.", m_msg, true); \ + break; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_MSG` or `ERR_FAIL_COND_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable, and + * there is no sensible error message. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, the application crashes. + */ +#define CRASH_COND(m_cond) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "FATAL: Condition \"" _STR(m_cond) "\" is true."); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_MSG` or `ERR_FAIL_COND_V_MSG`. + * Only use this macro if there is no sensible fallback i.e. the error is unrecoverable. + * + * Ensures `m_cond` is false. + * If `m_cond` is true, prints `m_msg` and the application crashes. + */ +#define CRASH_COND_MSG(m_cond, m_msg) \ + if (unlikely(m_cond)) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "FATAL: Condition \"" _STR(m_cond) "\" is true.", m_msg); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +// Generic error macros. + +/** + * Try using `ERR_FAIL_COND_MSG` or `ERR_FAIL_MSG`. + * Only use this macro if more complex error detection or recovery is required, and + * there is no sensible error message. + * + * The current function returns. + */ +#define ERR_FAIL() \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed."); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_MSG`. + * Only use this macro if more complex error detection or recovery is required. + * + * Prints `m_msg`, and the current function returns. + */ +#define ERR_FAIL_MSG(m_msg) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed.", m_msg); \ + return; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_MSG` but also notifies the editor. + */ +#define ERR_FAIL_EDMSG(m_msg) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed.", m_msg, true); \ + return; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_V_MSG` or `ERR_FAIL_V_MSG`. + * Only use this macro if more complex error detection or recovery is required, and + * there is no sensible error message. + * + * The current function returns `m_retval`. + */ +#define ERR_FAIL_V(m_retval) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed. Returning: " _STR(m_retval)); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_V_MSG`. + * Only use this macro if more complex error detection or recovery is required. + * + * Prints `m_msg`, and the current function returns `m_retval`. + */ +#define ERR_FAIL_V_MSG(m_retval, m_msg) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed. Returning: " _STR(m_retval), m_msg); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Same as `ERR_FAIL_V_MSG` but also notifies the editor. + */ +#define ERR_FAIL_V_EDMSG(m_retval, m_msg) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/function failed. Returning: " _STR(m_retval), m_msg, true); \ + return m_retval; \ + } else \ + ((void)0) + +/** + * Try using `ERR_FAIL_COND_MSG`, `ERR_FAIL_COND_V_MSG`, `ERR_CONTINUE_MSG` or `ERR_BREAK_MSG`. + * Only use this macro at the start of a function that has not been implemented yet, or + * if more complex error detection or recovery is required. + * + * Prints `m_msg`. + */ +#define ERR_PRINT(m_msg) \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg) + +/** + * Same as `ERR_PRINT` but also notifies the editor. + */ +#define ERR_PRINT_ED(m_msg) \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, true) + +/** + * Prints `m_msg` once during the application lifetime. + */ +#define ERR_PRINT_ONCE(m_msg) \ + if (true) { \ + static bool first_print = true; \ + if (first_print) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg); \ + first_print = false; \ + } \ + } else \ + ((void)0) + +/** + * Same as `ERR_PRINT_ONCE` but also notifies the editor. + */ +#define ERR_PRINT_ONCE_ED(m_msg) \ + if (true) { \ + static bool first_print = true; \ + if (first_print) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, true); \ + first_print = false; \ + } \ + } else \ + ((void)0) + +// Print warning message macros. + +/** + * Prints `m_msg`. + * + * If warning about deprecated usage, use `WARN_DEPRECATED` or `WARN_DEPRECATED_MSG` instead. + */ +#define WARN_PRINT(m_msg) \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, false, true) + +/** + * Same as `WARN_PRINT` but also notifies the editor. + */ +#define WARN_PRINT_ED(m_msg) \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, true, true) + +/** + * Prints `m_msg` once during the application lifetime. + * + * If warning about deprecated usage, use `WARN_DEPRECATED` or `WARN_DEPRECATED_MSG` instead. + */ +#define WARN_PRINT_ONCE(m_msg) \ + if (true) { \ + static bool first_print = true; \ + if (first_print) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, false, true); \ + first_print = false; \ + } \ + } else \ + ((void)0) + +/** + * Same as `WARN_PRINT_ONCE` but also notifies the editor. + */ +#define WARN_PRINT_ONCE_ED(m_msg) \ + if (true) { \ + static bool first_print = true; \ + if (first_print) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_msg, true, true); \ + first_print = false; \ + } \ + } else \ + ((void)0) + +// Print deprecated warning message macros. + +/** + * Warns that the current function is deprecated. + */ +#define WARN_DEPRECATED \ + if (true) { \ + static std::atomic warning_shown; \ + if (!warning_shown.load()) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "This method has been deprecated and will be removed in the future.", false, true); \ + warning_shown.store(true); \ + } \ + } else \ + ((void)0) + +/** + * Warns that the current function is deprecated and prints `m_msg`. + */ +#define WARN_DEPRECATED_MSG(m_msg) \ + if (true) { \ + static std::atomic warning_shown; \ + if (!warning_shown.load()) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "This method has been deprecated and will be removed in the future.", m_msg, false, true); \ + warning_shown.store(true); \ + } \ + } else \ + ((void)0) + +/** + * Do not use. + * If the application should never reach this point use CRASH_NOW_MSG(m_msg) to explain why. + * + * The application crashes. + */ +#define CRASH_NOW() \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "FATAL: Method/function failed."); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +/** + * Only use if the application should never reach this point. + * + * Prints `m_msg`, and then the application crashes. + */ +#define CRASH_NOW_MSG(m_msg) \ + if (true) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "FATAL: Method/function failed.", m_msg); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) + +/** + * This should be a 'free' assert for program flow and should not be needed in any releases, + * only used in dev builds. + */ +#ifdef DEBUG_ENABLED +#define DEV_ASSERT(m_cond) \ + if (unlikely(!(m_cond))) { \ + ::godot::_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "FATAL: DEV_ASSERT failed \"" _STR(m_cond) "\" is false."); \ + ::godot::_err_flush_stdout(); \ + GENERATE_TRAP(); \ + } else \ + ((void)0) +#else +#define DEV_ASSERT(m_cond) +#endif + +/** + * Gives an error message when a method bind is invalid (likely the hash changed). + * Avoids crashing the application in this case. It's not free, so it's debug only. + */ +#ifdef DEBUG_ENABLED +#define CHECK_METHOD_BIND_RET(m_mb, m_ret) \ + if (unlikely(!m_mb)) { \ + ERR_PRINT_ONCE("Method bind was not found. Likely the engine method changed to an incompatible version."); \ + return m_ret; \ + } else \ + ((void)0) + +#define CHECK_METHOD_BIND(m_mb) \ + if (unlikely(!m_mb)) { \ + ERR_PRINT_ONCE("Method bind was not found. Likely the engine method changed to an incompatible version."); \ + return; \ + } else \ + ((void)0) +#else +#define CHECK_METHOD_BIND_RET(m_mb, m_ret) +#define CHECK_METHOD_BIND(m_mb) +#endif + +#endif // GODOT_ERROR_MACROS_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/math.hpp b/lib/godot-cpp/include/godot_cpp/core/math.hpp new file mode 100644 index 0000000..db97ba5 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/math.hpp @@ -0,0 +1,811 @@ +/**************************************************************************/ +/* math.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_MATH_HPP +#define GODOT_MATH_HPP + +#include + +#include + +#include + +namespace godot { + +#define Math_SQRT12 0.7071067811865475244008443621048490 +#define Math_SQRT2 1.4142135623730950488016887242 +#define Math_LN2 0.6931471805599453094172321215 +#define Math_PI 3.1415926535897932384626433833 +#define Math_TAU 6.2831853071795864769252867666 +#define Math_E 2.7182818284590452353602874714 +#define Math_INF INFINITY +#define Math_NAN NAN + +// Make room for our constexpr's below by overriding potential system-specific macros. +#undef ABS +#undef SIGN +#undef MIN +#undef MAX +#undef CLAMP + +// Generic ABS function, for math uses please use Math::abs. +template +constexpr T ABS(T m_v) { + return m_v < 0 ? -m_v : m_v; +} + +template +constexpr const T SIGN(const T m_v) { + return m_v == 0 ? 0.0f : (m_v < 0 ? -1.0f : +1.0f); +} + +template +constexpr auto MIN(const T m_a, const T2 m_b) { + return m_a < m_b ? m_a : m_b; +} + +template +constexpr auto MAX(const T m_a, const T2 m_b) { + return m_a > m_b ? m_a : m_b; +} + +template +constexpr auto CLAMP(const T m_a, const T2 m_min, const T3 m_max) { + return m_a < m_min ? m_min : (m_a > m_max ? m_max : m_a); +} + +// Generic swap template. +#ifndef SWAP +#define SWAP(m_x, m_y) __swap_tmpl((m_x), (m_y)) +template +inline void __swap_tmpl(T &x, T &y) { + T aux = x; + x = y; + y = aux; +} +#endif // SWAP + +/* Functions to handle powers of 2 and shifting. */ + +// Function to find the next power of 2 to an integer. +static _FORCE_INLINE_ unsigned int next_power_of_2(unsigned int x) { + if (x == 0) { + return 0; + } + + --x; + x |= x >> 1; + x |= x >> 2; + x |= x >> 4; + x |= x >> 8; + x |= x >> 16; + + return ++x; +} + +// Function to find the previous power of 2 to an integer. +static _FORCE_INLINE_ unsigned int previous_power_of_2(unsigned int x) { + x |= x >> 1; + x |= x >> 2; + x |= x >> 4; + x |= x >> 8; + x |= x >> 16; + return x - (x >> 1); +} + +// Function to find the closest power of 2 to an integer. +static _FORCE_INLINE_ unsigned int closest_power_of_2(unsigned int x) { + unsigned int nx = next_power_of_2(x); + unsigned int px = previous_power_of_2(x); + return (nx - x) > (x - px) ? px : nx; +} + +// Get a shift value from a power of 2. +static inline int get_shift_from_power_of_2(unsigned int p_bits) { + for (unsigned int i = 0; i < 32; i++) { + if (p_bits == (unsigned int)(1 << i)) { + return i; + } + } + + return -1; +} + +template +static _FORCE_INLINE_ T nearest_power_of_2_templated(T x) { + --x; + + // The number of operations on x is the base two logarithm + // of the number of bits in the type. Add three to account + // for sizeof(T) being in bytes. + size_t num = get_shift_from_power_of_2(sizeof(T)) + 3; + + // If the compiler is smart, it unrolls this loop. + // If it's dumb, this is a bit slow. + for (size_t i = 0; i < num; i++) { + x |= x >> (1 << i); + } + + return ++x; +} + +// Function to find the nearest (bigger) power of 2 to an integer. +static inline unsigned int nearest_shift(unsigned int p_number) { + for (int i = 30; i >= 0; i--) { + if (p_number & (1 << i)) { + return i + 1; + } + } + + return 0; +} + +// constexpr function to find the floored log2 of a number +template +constexpr T floor_log2(T x) { + return x < 2 ? x : 1 + floor_log2(x >> 1); +} + +// Get the number of bits needed to represent the number. +// IE, if you pass in 8, you will get 4. +// If you want to know how many bits are needed to store 8 values however, pass in (8 - 1). +template +constexpr T get_num_bits(T x) { + return floor_log2(x); +} + +// Swap 16, 32 and 64 bits value for endianness. +#if defined(__GNUC__) +#define BSWAP16(x) __builtin_bswap16(x) +#define BSWAP32(x) __builtin_bswap32(x) +#define BSWAP64(x) __builtin_bswap64(x) +#else +static inline uint16_t BSWAP16(uint16_t x) { + return (x >> 8) | (x << 8); +} + +static inline uint32_t BSWAP32(uint32_t x) { + return ((x << 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x >> 24)); +} + +static inline uint64_t BSWAP64(uint64_t x) { + x = (x & 0x00000000FFFFFFFF) << 32 | (x & 0xFFFFFFFF00000000) >> 32; + x = (x & 0x0000FFFF0000FFFF) << 16 | (x & 0xFFFF0000FFFF0000) >> 16; + x = (x & 0x00FF00FF00FF00FF) << 8 | (x & 0xFF00FF00FF00FF00) >> 8; + return x; +} +#endif + +namespace Math { + +// This epsilon should match the one used by Godot for consistency. +// Using `f` when `real_t` is float. +#define CMP_EPSILON 0.00001f +#define CMP_EPSILON2 (CMP_EPSILON * CMP_EPSILON) + +// This epsilon is for values related to a unit size (scalar or vector len). +#ifdef PRECISE_MATH_CHECKS +#define UNIT_EPSILON 0.00001 +#else +// Tolerate some more floating point error normally. +#define UNIT_EPSILON 0.001 +#endif + +// Functions reproduced as in Godot's source code `math_funcs.h`. +// Some are overloads to automatically support changing real_t into either double or float in the way Godot does. + +inline double fmod(double p_x, double p_y) { + return ::fmod(p_x, p_y); +} +inline float fmod(float p_x, float p_y) { + return ::fmodf(p_x, p_y); +} + +inline double fposmod(double p_x, double p_y) { + double value = Math::fmod(p_x, p_y); + if ((value < 0 && p_y > 0) || (value > 0 && p_y < 0)) { + value += p_y; + } + value += 0.0; + return value; +} +inline float fposmod(float p_x, float p_y) { + float value = Math::fmod(p_x, p_y); + if ((value < 0 && p_y > 0) || (value > 0 && p_y < 0)) { + value += p_y; + } + value += 0.0f; + return value; +} + +inline float fposmodp(float p_x, float p_y) { + float value = Math::fmod(p_x, p_y); + if (value < 0) { + value += p_y; + } + value += 0.0f; + return value; +} +inline double fposmodp(double p_x, double p_y) { + double value = Math::fmod(p_x, p_y); + if (value < 0) { + value += p_y; + } + value += 0.0; + return value; +} + +inline int64_t posmod(int64_t p_x, int64_t p_y) { + int64_t value = p_x % p_y; + if ((value < 0 && p_y > 0) || (value > 0 && p_y < 0)) { + value += p_y; + } + return value; +} + +inline double floor(double p_x) { + return ::floor(p_x); +} +inline float floor(float p_x) { + return ::floorf(p_x); +} + +inline double ceil(double p_x) { + return ::ceil(p_x); +} +inline float ceil(float p_x) { + return ::ceilf(p_x); +} + +inline double exp(double p_x) { + return ::exp(p_x); +} +inline float exp(float p_x) { + return ::expf(p_x); +} + +inline double sin(double p_x) { + return ::sin(p_x); +} +inline float sin(float p_x) { + return ::sinf(p_x); +} + +inline double cos(double p_x) { + return ::cos(p_x); +} +inline float cos(float p_x) { + return ::cosf(p_x); +} + +inline double tan(double p_x) { + return ::tan(p_x); +} +inline float tan(float p_x) { + return ::tanf(p_x); +} + +inline double sinh(double p_x) { + return ::sinh(p_x); +} +inline float sinh(float p_x) { + return ::sinhf(p_x); +} + +inline float sinc(float p_x) { + return p_x == 0 ? 1 : ::sin(p_x) / p_x; +} +inline double sinc(double p_x) { + return p_x == 0 ? 1 : ::sin(p_x) / p_x; +} + +inline float sincn(float p_x) { + return (float)sinc(Math_PI * p_x); +} +inline double sincn(double p_x) { + return sinc(Math_PI * p_x); +} + +inline double cosh(double p_x) { + return ::cosh(p_x); +} +inline float cosh(float p_x) { + return ::coshf(p_x); +} + +inline double tanh(double p_x) { + return ::tanh(p_x); +} +inline float tanh(float p_x) { + return ::tanhf(p_x); +} + +inline double asin(double p_x) { + return ::asin(p_x); +} +inline float asin(float p_x) { + return ::asinf(p_x); +} + +inline double acos(double p_x) { + return ::acos(p_x); +} +inline float acos(float p_x) { + return ::acosf(p_x); +} + +inline double atan(double p_x) { + return ::atan(p_x); +} +inline float atan(float p_x) { + return ::atanf(p_x); +} + +inline double atan2(double p_y, double p_x) { + return ::atan2(p_y, p_x); +} +inline float atan2(float p_y, float p_x) { + return ::atan2f(p_y, p_x); +} + +inline double sqrt(double p_x) { + return ::sqrt(p_x); +} +inline float sqrt(float p_x) { + return ::sqrtf(p_x); +} + +inline double pow(double p_x, double p_y) { + return ::pow(p_x, p_y); +} +inline float pow(float p_x, float p_y) { + return ::powf(p_x, p_y); +} + +inline double log(double p_x) { + return ::log(p_x); +} +inline float log(float p_x) { + return ::logf(p_x); +} + +inline float lerp(float minv, float maxv, float t) { + return minv + t * (maxv - minv); +} +inline double lerp(double minv, double maxv, double t) { + return minv + t * (maxv - minv); +} + +inline double lerp_angle(double p_from, double p_to, double p_weight) { + double difference = fmod(p_to - p_from, Math_TAU); + double distance = fmod(2.0 * difference, Math_TAU) - difference; + return p_from + distance * p_weight; +} +inline float lerp_angle(float p_from, float p_to, float p_weight) { + float difference = fmod(p_to - p_from, (float)Math_TAU); + float distance = fmod(2.0f * difference, (float)Math_TAU) - difference; + return p_from + distance * p_weight; +} + +inline double cubic_interpolate(double p_from, double p_to, double p_pre, double p_post, double p_weight) { + return 0.5 * + ((p_from * 2.0) + + (-p_pre + p_to) * p_weight + + (2.0 * p_pre - 5.0 * p_from + 4.0 * p_to - p_post) * (p_weight * p_weight) + + (-p_pre + 3.0 * p_from - 3.0 * p_to + p_post) * (p_weight * p_weight * p_weight)); +} + +inline float cubic_interpolate(float p_from, float p_to, float p_pre, float p_post, float p_weight) { + return 0.5f * + ((p_from * 2.0f) + + (-p_pre + p_to) * p_weight + + (2.0f * p_pre - 5.0f * p_from + 4.0f * p_to - p_post) * (p_weight * p_weight) + + (-p_pre + 3.0f * p_from - 3.0f * p_to + p_post) * (p_weight * p_weight * p_weight)); +} + +inline double cubic_interpolate_angle(double p_from, double p_to, double p_pre, double p_post, double p_weight) { + double from_rot = fmod(p_from, Math_TAU); + + double pre_diff = fmod(p_pre - from_rot, Math_TAU); + double pre_rot = from_rot + fmod(2.0 * pre_diff, Math_TAU) - pre_diff; + + double to_diff = fmod(p_to - from_rot, Math_TAU); + double to_rot = from_rot + fmod(2.0 * to_diff, Math_TAU) - to_diff; + + double post_diff = fmod(p_post - to_rot, Math_TAU); + double post_rot = to_rot + fmod(2.0 * post_diff, Math_TAU) - post_diff; + + return cubic_interpolate(from_rot, to_rot, pre_rot, post_rot, p_weight); +} + +inline float cubic_interpolate_angle(float p_from, float p_to, float p_pre, float p_post, float p_weight) { + float from_rot = fmod(p_from, (float)Math_TAU); + + float pre_diff = fmod(p_pre - from_rot, (float)Math_TAU); + float pre_rot = from_rot + fmod(2.0f * pre_diff, (float)Math_TAU) - pre_diff; + + float to_diff = fmod(p_to - from_rot, (float)Math_TAU); + float to_rot = from_rot + fmod(2.0f * to_diff, (float)Math_TAU) - to_diff; + + float post_diff = fmod(p_post - to_rot, (float)Math_TAU); + float post_rot = to_rot + fmod(2.0f * post_diff, (float)Math_TAU) - post_diff; + + return cubic_interpolate(from_rot, to_rot, pre_rot, post_rot, p_weight); +} + +inline double cubic_interpolate_in_time(double p_from, double p_to, double p_pre, double p_post, double p_weight, + double p_to_t, double p_pre_t, double p_post_t) { + /* Barry-Goldman method */ + double t = Math::lerp(0.0, p_to_t, p_weight); + double a1 = Math::lerp(p_pre, p_from, p_pre_t == 0 ? 0.0 : (t - p_pre_t) / -p_pre_t); + double a2 = Math::lerp(p_from, p_to, p_to_t == 0 ? 0.5 : t / p_to_t); + double a3 = Math::lerp(p_to, p_post, p_post_t - p_to_t == 0 ? 1.0 : (t - p_to_t) / (p_post_t - p_to_t)); + double b1 = Math::lerp(a1, a2, p_to_t - p_pre_t == 0 ? 0.0 : (t - p_pre_t) / (p_to_t - p_pre_t)); + double b2 = Math::lerp(a2, a3, p_post_t == 0 ? 1.0 : t / p_post_t); + return Math::lerp(b1, b2, p_to_t == 0 ? 0.5 : t / p_to_t); +} + +inline float cubic_interpolate_in_time(float p_from, float p_to, float p_pre, float p_post, float p_weight, + float p_to_t, float p_pre_t, float p_post_t) { + /* Barry-Goldman method */ + float t = Math::lerp(0.0f, p_to_t, p_weight); + float a1 = Math::lerp(p_pre, p_from, p_pre_t == 0 ? 0.0f : (t - p_pre_t) / -p_pre_t); + float a2 = Math::lerp(p_from, p_to, p_to_t == 0 ? 0.5f : t / p_to_t); + float a3 = Math::lerp(p_to, p_post, p_post_t - p_to_t == 0 ? 1.0f : (t - p_to_t) / (p_post_t - p_to_t)); + float b1 = Math::lerp(a1, a2, p_to_t - p_pre_t == 0 ? 0.0f : (t - p_pre_t) / (p_to_t - p_pre_t)); + float b2 = Math::lerp(a2, a3, p_post_t == 0 ? 1.0f : t / p_post_t); + return Math::lerp(b1, b2, p_to_t == 0 ? 0.5f : t / p_to_t); +} + +inline double cubic_interpolate_angle_in_time(double p_from, double p_to, double p_pre, double p_post, double p_weight, + double p_to_t, double p_pre_t, double p_post_t) { + double from_rot = fmod(p_from, Math_TAU); + + double pre_diff = fmod(p_pre - from_rot, Math_TAU); + double pre_rot = from_rot + fmod(2.0 * pre_diff, Math_TAU) - pre_diff; + + double to_diff = fmod(p_to - from_rot, Math_TAU); + double to_rot = from_rot + fmod(2.0 * to_diff, Math_TAU) - to_diff; + + double post_diff = fmod(p_post - to_rot, Math_TAU); + double post_rot = to_rot + fmod(2.0 * post_diff, Math_TAU) - post_diff; + + return cubic_interpolate_in_time(from_rot, to_rot, pre_rot, post_rot, p_weight, p_to_t, p_pre_t, p_post_t); +} + +inline float cubic_interpolate_angle_in_time(float p_from, float p_to, float p_pre, float p_post, float p_weight, + float p_to_t, float p_pre_t, float p_post_t) { + float from_rot = fmod(p_from, (float)Math_TAU); + + float pre_diff = fmod(p_pre - from_rot, (float)Math_TAU); + float pre_rot = from_rot + fmod(2.0f * pre_diff, (float)Math_TAU) - pre_diff; + + float to_diff = fmod(p_to - from_rot, (float)Math_TAU); + float to_rot = from_rot + fmod(2.0f * to_diff, (float)Math_TAU) - to_diff; + + float post_diff = fmod(p_post - to_rot, (float)Math_TAU); + float post_rot = to_rot + fmod(2.0f * post_diff, (float)Math_TAU) - post_diff; + + return cubic_interpolate_in_time(from_rot, to_rot, pre_rot, post_rot, p_weight, p_to_t, p_pre_t, p_post_t); +} + +inline double bezier_interpolate(double p_start, double p_control_1, double p_control_2, double p_end, double p_t) { + /* Formula from Wikipedia article on Bezier curves. */ + double omt = (1.0 - p_t); + double omt2 = omt * omt; + double omt3 = omt2 * omt; + double t2 = p_t * p_t; + double t3 = t2 * p_t; + + return p_start * omt3 + p_control_1 * omt2 * p_t * 3.0 + p_control_2 * omt * t2 * 3.0 + p_end * t3; +} + +inline float bezier_interpolate(float p_start, float p_control_1, float p_control_2, float p_end, float p_t) { + /* Formula from Wikipedia article on Bezier curves. */ + float omt = (1.0f - p_t); + float omt2 = omt * omt; + float omt3 = omt2 * omt; + float t2 = p_t * p_t; + float t3 = t2 * p_t; + + return p_start * omt3 + p_control_1 * omt2 * p_t * 3.0f + p_control_2 * omt * t2 * 3.0f + p_end * t3; +} + +template +inline T clamp(T x, T minv, T maxv) { + if (x < minv) { + return minv; + } + if (x > maxv) { + return maxv; + } + return x; +} + +template +inline T min(T a, T b) { + return a < b ? a : b; +} + +template +inline T max(T a, T b) { + return a > b ? a : b; +} + +template +inline T sign(T x) { + return static_cast(SIGN(x)); +} + +template +inline T abs(T x) { + return std::abs(x); +} + +inline double deg_to_rad(double p_y) { + return p_y * Math_PI / 180.0; +} +inline float deg_to_rad(float p_y) { + return p_y * static_cast(Math_PI) / 180.f; +} + +inline double rad_to_deg(double p_y) { + return p_y * 180.0 / Math_PI; +} +inline float rad_to_deg(float p_y) { + return p_y * 180.f / static_cast(Math_PI); +} + +inline double inverse_lerp(double p_from, double p_to, double p_value) { + return (p_value - p_from) / (p_to - p_from); +} +inline float inverse_lerp(float p_from, float p_to, float p_value) { + return (p_value - p_from) / (p_to - p_from); +} + +inline double remap(double p_value, double p_istart, double p_istop, double p_ostart, double p_ostop) { + return Math::lerp(p_ostart, p_ostop, Math::inverse_lerp(p_istart, p_istop, p_value)); +} +inline float remap(float p_value, float p_istart, float p_istop, float p_ostart, float p_ostop) { + return Math::lerp(p_ostart, p_ostop, Math::inverse_lerp(p_istart, p_istop, p_value)); +} + +inline bool is_nan(float p_val) { + return std::isnan(p_val); +} + +inline bool is_nan(double p_val) { + return std::isnan(p_val); +} + +inline bool is_inf(float p_val) { + return std::isinf(p_val); +} + +inline bool is_inf(double p_val) { + return std::isinf(p_val); +} + +inline bool is_equal_approx(float a, float b) { + // Check for exact equality first, required to handle "infinity" values. + if (a == b) { + return true; + } + // Then check for approximate equality. + float tolerance = (float)CMP_EPSILON * abs(a); + if (tolerance < (float)CMP_EPSILON) { + tolerance = (float)CMP_EPSILON; + } + return abs(a - b) < tolerance; +} + +inline bool is_equal_approx(float a, float b, float tolerance) { + // Check for exact equality first, required to handle "infinity" values. + if (a == b) { + return true; + } + // Then check for approximate equality. + return abs(a - b) < tolerance; +} + +inline bool is_zero_approx(float s) { + return abs(s) < (float)CMP_EPSILON; +} + +inline bool is_equal_approx(double a, double b) { + // Check for exact equality first, required to handle "infinity" values. + if (a == b) { + return true; + } + // Then check for approximate equality. + double tolerance = CMP_EPSILON * abs(a); + if (tolerance < CMP_EPSILON) { + tolerance = CMP_EPSILON; + } + return abs(a - b) < tolerance; +} + +inline bool is_equal_approx(double a, double b, double tolerance) { + // Check for exact equality first, required to handle "infinity" values. + if (a == b) { + return true; + } + // Then check for approximate equality. + return abs(a - b) < tolerance; +} + +inline bool is_zero_approx(double s) { + return abs(s) < CMP_EPSILON; +} + +inline float absf(float g) { + union { + float f; + uint32_t i; + } u; + + u.f = g; + u.i &= 2147483647u; + return u.f; +} + +inline double absd(double g) { + union { + double d; + uint64_t i; + } u; + u.d = g; + u.i &= (uint64_t)9223372036854775807ull; + return u.d; +} + +inline double smoothstep(double p_from, double p_to, double p_weight) { + if (is_equal_approx(static_cast(p_from), static_cast(p_to))) { + return p_from; + } + double x = clamp((p_weight - p_from) / (p_to - p_from), 0.0, 1.0); + return x * x * (3.0 - 2.0 * x); +} +inline float smoothstep(float p_from, float p_to, float p_weight) { + if (is_equal_approx(p_from, p_to)) { + return p_from; + } + float x = clamp((p_weight - p_from) / (p_to - p_from), 0.0f, 1.0f); + return x * x * (3.0f - 2.0f * x); +} + +inline double move_toward(double p_from, double p_to, double p_delta) { + return std::abs(p_to - p_from) <= p_delta ? p_to : p_from + sign(p_to - p_from) * p_delta; +} + +inline float move_toward(float p_from, float p_to, float p_delta) { + return std::abs(p_to - p_from) <= p_delta ? p_to : p_from + sign(p_to - p_from) * p_delta; +} + +inline double linear2db(double p_linear) { + return log(p_linear) * 8.6858896380650365530225783783321; +} +inline float linear2db(float p_linear) { + return log(p_linear) * 8.6858896380650365530225783783321f; +} + +inline double db2linear(double p_db) { + return exp(p_db * 0.11512925464970228420089957273422); +} +inline float db2linear(float p_db) { + return exp(p_db * 0.11512925464970228420089957273422f); +} + +inline double round(double p_val) { + return (p_val >= 0) ? floor(p_val + 0.5) : -floor(-p_val + 0.5); +} +inline float round(float p_val) { + return (p_val >= 0) ? floor(p_val + 0.5f) : -floor(-p_val + 0.5f); +} + +inline int64_t wrapi(int64_t value, int64_t min, int64_t max) { + int64_t range = max - min; + return range == 0 ? min : min + ((((value - min) % range) + range) % range); +} + +inline float wrapf(real_t value, real_t min, real_t max) { + const real_t range = max - min; + return is_zero_approx(range) ? min : value - (range * floor((value - min) / range)); +} + +inline float fract(float value) { + return value - floor(value); +} + +inline double fract(double value) { + return value - floor(value); +} + +inline float pingpong(float value, float length) { + return (length != 0.0f) ? abs(fract((value - length) / (length * 2.0f)) * length * 2.0f - length) : 0.0f; +} + +inline double pingpong(double value, double length) { + return (length != 0.0) ? abs(fract((value - length) / (length * 2.0)) * length * 2.0 - length) : 0.0; +} + +// This function should be as fast as possible and rounding mode should not matter. +inline int fast_ftoi(float a) { + static int b; + +#if (defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0603) || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP // windows 8 phone? + b = (int)((a > 0.0) ? (a + 0.5) : (a - 0.5)); + +#elif defined(_MSC_VER) && _MSC_VER < 1800 + __asm fld a __asm fistp b + /*#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) + // use AT&T inline assembly style, document that + // we use memory as output (=m) and input (m) + __asm__ __volatile__ ( + "flds %1 \n\t" + "fistpl %0 \n\t" + : "=m" (b) + : "m" (a));*/ + +#else + b = lrintf(a); // assuming everything but msvc 2012 or earlier has lrint +#endif + return b; +} + +inline double snapped(double p_value, double p_step) { + if (p_step != 0) { + p_value = Math::floor(p_value / p_step + 0.5) * p_step; + } + return p_value; +} + +inline float snap_scalar(float p_offset, float p_step, float p_target) { + return p_step != 0 ? Math::snapped(p_target - p_offset, p_step) + p_offset : p_target; +} + +inline float snap_scalar_separation(float p_offset, float p_step, float p_target, float p_separation) { + if (p_step != 0) { + float a = Math::snapped(p_target - p_offset, p_step + p_separation) + p_offset; + float b = a; + if (p_target >= 0) { + b -= p_separation; + } else { + b += p_step; + } + return (Math::abs(p_target - a) < Math::abs(p_target - b)) ? a : b; + } + return p_target; +} + +} // namespace Math +} // namespace godot + +#endif // GODOT_MATH_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/memory.hpp b/lib/godot-cpp/include/godot_cpp/core/memory.hpp new file mode 100644 index 0000000..55cdb8b --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/memory.hpp @@ -0,0 +1,194 @@ +/**************************************************************************/ +/* memory.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_MEMORY_HPP +#define GODOT_MEMORY_HPP + +#include +#include + +#include +#include +#include + +#include + +#ifndef PAD_ALIGN +#define PAD_ALIGN 16 //must always be greater than this at much +#endif + +void *operator new(size_t p_size, const char *p_description); ///< operator new that takes a description and uses MemoryStaticPool +void *operator new(size_t p_size, void *(*p_allocfunc)(size_t p_size)); ///< operator new that takes a description and uses MemoryStaticPool +void *operator new(size_t p_size, void *p_pointer, size_t check, const char *p_description); ///< operator new that takes a description and uses a pointer to the preallocated memory + +_ALWAYS_INLINE_ void *operator new(size_t p_size, void *p_pointer, size_t check, const char *p_description) { + return p_pointer; +} + +#ifdef _MSC_VER +// When compiling with VC++ 2017, the above declarations of placement new generate many irrelevant warnings (C4291). +// The purpose of the following definitions is to muffle these warnings, not to provide a usable implementation of placement delete. +void operator delete(void *p_mem, const char *p_description); +void operator delete(void *p_mem, void *(*p_allocfunc)(size_t p_size)); +void operator delete(void *p_mem, void *p_pointer, size_t check, const char *p_description); +#endif + +namespace godot { + +class Wrapped; + +class Memory { + Memory(); + +public: + static void *alloc_static(size_t p_bytes, bool p_pad_align = false); + static void *realloc_static(void *p_memory, size_t p_bytes, bool p_pad_align = false); + static void free_static(void *p_ptr, bool p_pad_align = false); +}; + +_ALWAYS_INLINE_ void postinitialize_handler(void *) {} + +template +_ALWAYS_INLINE_ T *_post_initialize(T *p_obj) { + postinitialize_handler(p_obj); + return p_obj; +} + +#define memalloc(m_size) ::godot::Memory::alloc_static(m_size) +#define memrealloc(m_mem, m_size) ::godot::Memory::realloc_static(m_mem, m_size) +#define memfree(m_mem) ::godot::Memory::free_static(m_mem) + +#define memnew(m_class) ::godot::_post_initialize(new ("") m_class) + +#define memnew_allocator(m_class, m_allocator) ::godot::_post_initialize(new (m_allocator::alloc) m_class) +#define memnew_placement(m_placement, m_class) ::godot::_post_initialize(new (m_placement, sizeof(m_class), "") m_class) + +// Generic comparator used in Map, List, etc. +template +struct Comparator { + _ALWAYS_INLINE_ bool operator()(const T &p_a, const T &p_b) const { return (p_a < p_b); } +}; + +template +void memdelete(T *p_class, typename std::enable_if>::type * = nullptr) { + if (!std::is_trivially_destructible::value) { + p_class->~T(); + } + + Memory::free_static(p_class); +} + +template , bool> = true> +void memdelete(T *p_class) { + godot::internal::gde_interface->object_destroy(p_class->_owner); +} + +template +void memdelete_allocator(T *p_class) { + if (!std::is_trivially_destructible::value) { + p_class->~T(); + } + + A::free(p_class); +} + +class DefaultAllocator { +public: + _ALWAYS_INLINE_ static void *alloc(size_t p_memory) { return Memory::alloc_static(p_memory); } + _ALWAYS_INLINE_ static void free(void *p_ptr) { Memory::free_static(p_ptr); } +}; + +template +class DefaultTypedAllocator { +public: + template + _ALWAYS_INLINE_ T *new_allocation(const Args &&...p_args) { return memnew(T(p_args...)); } + _ALWAYS_INLINE_ void delete_allocation(T *p_allocation) { memdelete(p_allocation); } +}; + +#define memnew_arr(m_class, m_count) memnew_arr_template(m_count) + +template +T *memnew_arr_template(size_t p_elements, const char *p_descr = "") { + if (p_elements == 0) { + return nullptr; + } + /** overloading operator new[] cannot be done , because it may not return the real allocated address (it may pad the 'element count' before the actual array). Because of that, it must be done by hand. This is the + same strategy used by std::vector, and the Vector class, so it should be safe.*/ + + size_t len = sizeof(T) * p_elements; + uint64_t *mem = (uint64_t *)Memory::alloc_static(len, true); + T *failptr = nullptr; // Get rid of a warning. + ERR_FAIL_COND_V(!mem, failptr); + *(mem - 1) = p_elements; + + if (!std::is_trivially_destructible::value) { + T *elems = (T *)mem; + + /* call operator new */ + for (size_t i = 0; i < p_elements; i++) { + new (&elems[i], sizeof(T), p_descr) T; + } + } + + return (T *)mem; +} + +template +void memdelete_arr(T *p_class) { + uint64_t *ptr = (uint64_t *)p_class; + + if (!std::is_trivially_destructible::value) { + uint64_t elem_count = *(ptr - 1); + + for (uint64_t i = 0; i < elem_count; i++) { + p_class[i].~T(); + } + } + + Memory::free_static(ptr, true); +} + +struct _GlobalNil { + int color = 1; + _GlobalNil *right; + _GlobalNil *left; + _GlobalNil *parent; + + _GlobalNil(); +}; + +struct _GlobalNilClass { + static _GlobalNil _nil; +}; + +} // namespace godot + +#endif // GODOT_MEMORY_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/method_bind.hpp b/lib/godot-cpp/include/godot_cpp/core/method_bind.hpp new file mode 100644 index 0000000..ae2142a --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/method_bind.hpp @@ -0,0 +1,733 @@ +/**************************************************************************/ +/* method_bind.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_METHOD_BIND_HPP +#define GODOT_METHOD_BIND_HPP + +#include +#include + +#include + +#include + +#include + +#include +#include + +#include + +namespace godot { + +class MethodBind { + StringName name; + StringName instance_class; + int argument_count = 0; + uint32_t hint_flags = METHOD_FLAGS_DEFAULT; + + bool _static = false; + bool _is_const = false; + bool _has_return = false; + bool _vararg = false; + + std::vector argument_names; + GDExtensionVariantType *argument_types = nullptr; + std::vector default_arguments; + +protected: + virtual GDExtensionVariantType gen_argument_type(int p_arg) const = 0; + virtual PropertyInfo gen_argument_type_info(int p_arg) const = 0; + void generate_argument_types(int p_count); + void set_const(bool p_const); + void set_return(bool p_return); + void set_static(bool p_static); + void set_vararg(bool p_vararg); + void set_argument_count(int p_count); + +public: + StringName get_name() const; + void set_name(const StringName &p_name); + _FORCE_INLINE_ int get_default_argument_count() const { return (int)default_arguments.size(); } + _FORCE_INLINE_ const std::vector &get_default_arguments() const { return default_arguments; } + _FORCE_INLINE_ Variant has_default_argument(int p_arg) const { + const int num_default_args = (int)(default_arguments.size()); + const int idx = p_arg - (argument_count - num_default_args); + + if (idx < 0 || idx >= num_default_args) { + return false; + } else { + return true; + } + } + _FORCE_INLINE_ Variant get_default_argument(int p_arg) const { + const int num_default_args = (int)(default_arguments.size()); + const int idx = p_arg - (argument_count - num_default_args); + + if (idx < 0 || idx >= num_default_args) { + return Variant(); + } else { + return default_arguments[idx]; + } + } + _FORCE_INLINE_ StringName get_instance_class() const { return instance_class; } + _FORCE_INLINE_ void set_instance_class(StringName p_class) { instance_class = p_class; } + + _FORCE_INLINE_ int get_argument_count() const { return argument_count; } + _FORCE_INLINE_ bool is_const() const { return _is_const; } + _FORCE_INLINE_ bool is_static() const { return _static; } + _FORCE_INLINE_ bool is_vararg() const { return _vararg; } + _FORCE_INLINE_ bool has_return() const { return _has_return; } + _FORCE_INLINE_ uint32_t get_hint_flags() const { return hint_flags | (is_const() ? GDEXTENSION_METHOD_FLAG_CONST : 0) | (is_vararg() ? GDEXTENSION_METHOD_FLAG_VARARG : 0) | (is_static() ? GDEXTENSION_METHOD_FLAG_STATIC : 0); } + _FORCE_INLINE_ void set_hint_flags(uint32_t p_hint_flags) { hint_flags = p_hint_flags; } + void set_argument_names(const std::vector &p_names); + std::vector get_argument_names() const; + void set_default_arguments(const std::vector &p_default_arguments) { default_arguments = p_default_arguments; } + + _FORCE_INLINE_ GDExtensionVariantType get_argument_type(int p_argument) const { + ERR_FAIL_COND_V(p_argument < -1 || p_argument > argument_count, GDEXTENSION_VARIANT_TYPE_NIL); + return argument_types[p_argument + 1]; + } + + PropertyInfo get_argument_info(int p_argument) const; + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_argument) const = 0; + + std::vector get_arguments_info_list() const { + std::vector vec; + // First element is return value + vec.reserve(argument_count + 1); + for (int i = 0; i < argument_count + 1; i++) { + vec.push_back(get_argument_info(i - 1)); + } + return vec; + } + std::vector get_arguments_metadata_list() const { + std::vector vec; + // First element is return value + vec.reserve(argument_count + 1); + for (int i = 0; i < argument_count; i++) { + vec.push_back(get_argument_metadata(i - 1)); + } + return vec; + } + + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const = 0; + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_return) const = 0; + + static void bind_call(void *p_method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error); + static void bind_ptrcall(void *p_method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_return); + + virtual ~MethodBind(); +}; + +template +class MethodBindVarArgBase : public MethodBind { +protected: + R(T::*method) + (const Variant **, GDExtensionInt, GDExtensionCallError &); + std::vector arguments; + +public: + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + if (p_arg < 0) { + return _gen_return_type_info(); + } else if ((size_t)(p_arg) < arguments.size()) { + return arguments[p_arg]; + } else { + return make_property_info(Variant::Type::NIL, "vararg", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT); + } + } + + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + return static_cast(gen_argument_type_info(p_arg).type); + } + + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int) const { + return GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + } + + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_return) const { + ERR_FAIL(); // Can't call. + } + + MethodBindVarArgBase( + R (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), + const MethodInfo &p_method_info, + bool p_return_nil_is_variant) : + method(p_method) { + set_vararg(true); + set_const(true); + set_argument_count(p_method_info.arguments.size()); + if (p_method_info.arguments.size()) { + arguments = p_method_info.arguments; + + std::vector names; + names.reserve(p_method_info.arguments.size()); + for (size_t i = 0; i < p_method_info.arguments.size(); i++) { + names.push_back(p_method_info.arguments[i].name); + } + set_argument_names(names); + } + + generate_argument_types((int)p_method_info.arguments.size()); + set_return(should_returns); + } + + ~MethodBindVarArgBase() {} + +private: + PropertyInfo _gen_return_type_info() const { + return reinterpret_cast(this)->_gen_return_type_info_impl(); + } +}; + +template +class MethodBindVarArgT : public MethodBindVarArgBase, T, void, false> { + friend class MethodBindVarArgBase, T, void, false>; + +public: + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { + (static_cast(p_instance)->*MethodBindVarArgBase, T, void, false>::method)((const Variant **)p_args, p_argument_count, r_error); + return {}; + } + + MethodBindVarArgT( + void (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), + const MethodInfo &p_method_info, + bool p_return_nil_is_variant) : + MethodBindVarArgBase, T, void, false>(p_method, p_method_info, p_return_nil_is_variant) { + } + +private: + PropertyInfo _gen_return_type_info_impl() const { + return {}; + } +}; + +template +MethodBind *create_vararg_method_bind(void (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), const MethodInfo &p_info, bool p_return_nil_is_variant) { + MethodBind *a = memnew((MethodBindVarArgT)(p_method, p_info, p_return_nil_is_variant)); + a->set_instance_class(T::get_class_static()); + return a; +} + +template +class MethodBindVarArgTR : public MethodBindVarArgBase, T, R, true> { + friend class MethodBindVarArgBase, T, R, true>; + +public: + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { + return (static_cast(p_instance)->*MethodBindVarArgBase, T, R, true>::method)((const Variant **)p_args, p_argument_count, r_error); + } + + MethodBindVarArgTR( + R (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), + const MethodInfo &p_info, + bool p_return_nil_is_variant) : + MethodBindVarArgBase, T, R, true>(p_method, p_info, p_return_nil_is_variant) { + } + +private: + PropertyInfo _gen_return_type_info_impl() const { + return GetTypeInfo::get_class_info(); + } +}; + +template +MethodBind *create_vararg_method_bind(R (T::*p_method)(const Variant **, GDExtensionInt, GDExtensionCallError &), const MethodInfo &p_info, bool p_return_nil_is_variant) { + MethodBind *a = memnew((MethodBindVarArgTR)(p_method, p_info, p_return_nil_is_variant)); + a->set_instance_class(T::get_class_static()); + return a; +} + +#ifndef TYPED_METHOD_BIND +class ___UnexistingClass; +#define MB_T ___UnexistingClass +#else +#define MB_T T +#endif + +// No return, not const. + +#ifdef TYPED_METHOD_BIND +template +#else +template +#endif // TYPED_METHOD_BIND +class MethodBindT : public MethodBind { + void (MB_T::*method)(P...); + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDEXTENSION_VARIANT_TYPE_NIL; + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + PropertyInfo pi; + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + call_get_argument_type_info(p_arg, pi); + } else { + pi = PropertyInfo(); + } + return pi; + } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_argument) const { + return call_get_argument_metadata(p_argument); + } + + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { +#ifdef TYPED_METHOD_BIND + call_with_variant_args_dv(static_cast(p_instance), method, p_args, (int)p_argument_count, r_error, get_default_arguments()); +#else + call_with_variant_args_dv(reinterpret_cast(p_instance), method, p_args, p_argument_count, r_error, get_default_arguments()); +#endif + return Variant(); + } + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { +#ifdef TYPED_METHOD_BIND + call_with_ptr_args(static_cast(p_instance), method, p_args, nullptr); +#else + call_with_ptr_args(reinterpret_cast(p_instance), method, p_args, nullptr); +#endif // TYPED_METHOD_BIND + } + + MethodBindT(void (MB_T::*p_method)(P...)) { + method = p_method; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + } +}; + +template +MethodBind *create_method_bind(void (T::*p_method)(P...)) { +#ifdef TYPED_METHOD_BIND + MethodBind *a = memnew((MethodBindT)(p_method)); +#else + MethodBind *a = memnew((MethodBindT)(reinterpret_cast(p_method))); +#endif // TYPED_METHOD_BIND + a->set_instance_class(T::get_class_static()); + return a; +} + +// No return, const. + +#ifdef TYPED_METHOD_BIND +template +#else +template +#endif // TYPED_METHOD_BIND +class MethodBindTC : public MethodBind { + void (MB_T::*method)(P...) const; + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDEXTENSION_VARIANT_TYPE_NIL; + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + PropertyInfo pi; + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + call_get_argument_type_info(p_arg, pi); + } else { + pi = PropertyInfo(); + } + return pi; + } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_argument) const { + return call_get_argument_metadata(p_argument); + } + + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { +#ifdef TYPED_METHOD_BIND + call_with_variant_argsc_dv(static_cast(p_instance), method, p_args, (int)p_argument_count, r_error, get_default_arguments()); +#else + call_with_variant_argsc_dv(reinterpret_cast(p_instance), method, p_args, p_argument_count, r_error, get_default_arguments()); +#endif + return Variant(); + } + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { +#ifdef TYPED_METHOD_BIND + call_with_ptr_args(static_cast(p_instance), method, p_args, nullptr); +#else + call_with_ptr_args(reinterpret_cast(p_instance), method, p_args, nullptr); +#endif // TYPED_METHOD_BIND + } + + MethodBindTC(void (MB_T::*p_method)(P...) const) { + method = p_method; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + } +}; + +template +MethodBind *create_method_bind(void (T::*p_method)(P...) const) { +#ifdef TYPED_METHOD_BIND + MethodBind *a = memnew((MethodBindTC)(p_method)); +#else + MethodBind *a = memnew((MethodBindTC)(reinterpret_cast(p_method))); +#endif // TYPED_METHOD_BIND + a->set_instance_class(T::get_class_static()); + return a; +} + +// Return, not const. + +#ifdef TYPED_METHOD_BIND +template +#else +template +#endif // TYPED_METHOD_BIND +class MethodBindTR : public MethodBind { + R(MB_T::*method) + (P...); + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + PropertyInfo pi; + call_get_argument_type_info(p_arg, pi); + return pi; + } else { + return GetTypeInfo::get_class_info(); + } + } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_argument) const { + if (p_argument >= 0) { + return call_get_argument_metadata(p_argument); + } else { + return GetTypeInfo::METADATA; + } + } + + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { + Variant ret; +#ifdef TYPED_METHOD_BIND + call_with_variant_args_ret_dv(static_cast(p_instance), method, p_args, (int)p_argument_count, ret, r_error, get_default_arguments()); +#else + call_with_variant_args_ret_dv((MB_T *)p_instance, method, p_args, p_argument_count, ret, r_error, get_default_arguments()); +#endif + return ret; + } + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { +#ifdef TYPED_METHOD_BIND + call_with_ptr_args(static_cast(p_instance), method, p_args, r_ret); +#else + call_with_ptr_args(reinterpret_cast(p_instance), method, p_args, r_ret); +#endif // TYPED_METHOD_BIND + } + + MethodBindTR(R (MB_T::*p_method)(P...)) { + method = p_method; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + set_return(true); + } +}; + +template +MethodBind *create_method_bind(R (T::*p_method)(P...)) { +#ifdef TYPED_METHOD_BIND + MethodBind *a = memnew((MethodBindTR)(p_method)); +#else + MethodBind *a = memnew((MethodBindTR)(reinterpret_cast(p_method))); +#endif // TYPED_METHOD_BIND + a->set_instance_class(T::get_class_static()); + return a; +} + +// Return, const. + +#ifdef TYPED_METHOD_BIND +template +#else +template +#endif // TYPED_METHOD_BIND +class MethodBindTRC : public MethodBind { + R(MB_T::*method) + (P...) const; + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + PropertyInfo pi; + call_get_argument_type_info(p_arg, pi); + return pi; + } else { + return GetTypeInfo::get_class_info(); + } + } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_argument) const { + if (p_argument >= 0) { + return call_get_argument_metadata(p_argument); + } else { + return GetTypeInfo::METADATA; + } + } + + virtual Variant call(GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionCallError &r_error) const { + Variant ret; +#ifdef TYPED_METHOD_BIND + call_with_variant_args_retc_dv(static_cast(p_instance), method, p_args, (int)p_argument_count, ret, r_error, get_default_arguments()); +#else + call_with_variant_args_retc_dv((MB_T *)p_instance, method, p_args, p_argument_count, ret, r_error, get_default_arguments()); +#endif + return ret; + } + virtual void ptrcall(GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { +#ifdef TYPED_METHOD_BIND + call_with_ptr_args(static_cast(p_instance), method, p_args, r_ret); +#else + call_with_ptr_args(reinterpret_cast(p_instance), method, p_args, r_ret); +#endif // TYPED_METHOD_BIND + } + + MethodBindTRC(R (MB_T::*p_method)(P...) const) { + method = p_method; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + set_return(true); + } +}; + +template +MethodBind *create_method_bind(R (T::*p_method)(P...) const) { +#ifdef TYPED_METHOD_BIND + MethodBind *a = memnew((MethodBindTRC)(p_method)); +#else + MethodBind *a = memnew((MethodBindTRC)(reinterpret_cast(p_method))); +#endif // TYPED_METHOD_BIND + a->set_instance_class(T::get_class_static()); + return a; +} + +// STATIC BINDS + +// no return + +template +class MethodBindTS : public MethodBind { + void (*function)(P...); + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDEXTENSION_VARIANT_TYPE_NIL; + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + PropertyInfo pi; + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + call_get_argument_type_info(p_arg, pi); + } else { + pi = PropertyInfo(); + } + return pi; + } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_arg) const { + return call_get_argument_metadata(p_arg); + } + + virtual Variant call(GDExtensionClassInstancePtr p_object, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_arg_count, GDExtensionCallError &r_error) const { + (void)p_object; // unused + call_with_variant_args_static_dv(function, p_args, p_arg_count, r_error, get_default_arguments()); + return Variant(); + } + + virtual void ptrcall(GDExtensionClassInstancePtr p_object, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { + (void)p_object; + (void)r_ret; + call_with_ptr_args_static_method(function, p_args); + } + + MethodBindTS(void (*p_function)(P...)) { + function = p_function; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + set_static(true); + } +}; + +template +MethodBind *create_static_method_bind(void (*p_method)(P...)) { + MethodBind *a = memnew((MethodBindTS)(p_method)); + return a; +} + +// return + +template +class MethodBindTRS : public MethodBind { + R(*function) + (P...); + +protected: +// GCC raises warnings in the case P = {} as the comparison is always false... +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wlogical-op" +#endif + virtual GDExtensionVariantType gen_argument_type(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + return call_get_argument_type(p_arg); + } else { + return GDExtensionVariantType(GetTypeInfo::VARIANT_TYPE); + } + } + + virtual PropertyInfo gen_argument_type_info(int p_arg) const { + if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { + PropertyInfo pi; + call_get_argument_type_info(p_arg, pi); + return pi; + } else { + return GetTypeInfo::get_class_info(); + } + } + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +public: + virtual GDExtensionClassMethodArgumentMetadata get_argument_metadata(int p_arg) const { + if (p_arg >= 0) { + return call_get_argument_metadata(p_arg); + } else { + return GetTypeInfo::METADATA; + } + } + + virtual Variant call(GDExtensionClassInstancePtr p_object, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_arg_count, GDExtensionCallError &r_error) const { + Variant ret; + call_with_variant_args_static_ret_dv(function, p_args, p_arg_count, ret, r_error, get_default_arguments()); + return ret; + } + + virtual void ptrcall(GDExtensionClassInstancePtr p_object, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_ret) const { + (void)p_object; + call_with_ptr_args_static_method_ret(function, p_args, r_ret); + } + + MethodBindTRS(R (*p_function)(P...)) { + function = p_function; + generate_argument_types(sizeof...(P)); + set_argument_count(sizeof...(P)); + set_static(true); + set_return(true); + } +}; + +template +MethodBind *create_static_method_bind(R (*p_method)(P...)) { + MethodBind *a = memnew((MethodBindTRS)(p_method)); + return a; +} + +} // namespace godot + +#endif // GODOT_METHOD_BIND_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/method_ptrcall.hpp b/lib/godot-cpp/include/godot_cpp/core/method_ptrcall.hpp new file mode 100644 index 0000000..6a5227a --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/method_ptrcall.hpp @@ -0,0 +1,238 @@ +/**************************************************************************/ +/* method_ptrcall.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_METHOD_PTRCALL_HPP +#define GODOT_METHOD_PTRCALL_HPP + +#include + +#include +#include + +namespace godot { + +template +struct PtrToArg {}; + +#define MAKE_PTRARG(m_type) \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return *reinterpret_cast(p_ptr); \ + } \ + typedef m_type EncodeT; \ + _FORCE_INLINE_ static void encode(m_type p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + }; \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return *reinterpret_cast(p_ptr); \ + } \ + typedef m_type EncodeT; \ + _FORCE_INLINE_ static void encode(m_type p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + } + +#define MAKE_PTRARGCONV(m_type, m_conv) \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return static_cast(*reinterpret_cast(p_ptr)); \ + } \ + typedef m_conv EncodeT; \ + _FORCE_INLINE_ static void encode(m_type p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = static_cast(p_val); \ + } \ + _FORCE_INLINE_ static m_conv encode_arg(m_type p_val) { \ + return static_cast(p_val); \ + } \ + }; \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return static_cast(*reinterpret_cast(p_ptr)); \ + } \ + typedef m_conv EncodeT; \ + _FORCE_INLINE_ static void encode(m_type p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = static_cast(p_val); \ + } \ + _FORCE_INLINE_ static m_conv encode_arg(m_type p_val) { \ + return static_cast(p_val); \ + } \ + } + +#define MAKE_PTRARG_BY_REFERENCE(m_type) \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return *reinterpret_cast(p_ptr); \ + } \ + typedef m_type EncodeT; \ + _FORCE_INLINE_ static void encode(const m_type &p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + }; \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type convert(const void *p_ptr) { \ + return *reinterpret_cast(p_ptr); \ + } \ + typedef m_type EncodeT; \ + _FORCE_INLINE_ static void encode(const m_type &p_val, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_val; \ + } \ + } + +MAKE_PTRARGCONV(bool, uint8_t); +// Integer types. +MAKE_PTRARGCONV(uint8_t, int64_t); +MAKE_PTRARGCONV(int8_t, int64_t); +MAKE_PTRARGCONV(uint16_t, int64_t); +MAKE_PTRARGCONV(int16_t, int64_t); +MAKE_PTRARGCONV(uint32_t, int64_t); +MAKE_PTRARGCONV(int32_t, int64_t); +MAKE_PTRARG(int64_t); +MAKE_PTRARG(uint64_t); +// Float types +MAKE_PTRARGCONV(float, double); +MAKE_PTRARG(double); + +MAKE_PTRARG(String); +MAKE_PTRARG(Vector2); +MAKE_PTRARG(Vector2i); +MAKE_PTRARG(Rect2); +MAKE_PTRARG(Rect2i); +MAKE_PTRARG_BY_REFERENCE(Vector3); +MAKE_PTRARG_BY_REFERENCE(Vector3i); +MAKE_PTRARG(Transform2D); +MAKE_PTRARG_BY_REFERENCE(Vector4); +MAKE_PTRARG_BY_REFERENCE(Vector4i); +MAKE_PTRARG_BY_REFERENCE(Plane); +MAKE_PTRARG(Quaternion); +MAKE_PTRARG_BY_REFERENCE(AABB); +MAKE_PTRARG_BY_REFERENCE(Basis); +MAKE_PTRARG_BY_REFERENCE(Transform3D); +MAKE_PTRARG_BY_REFERENCE(Projection); +MAKE_PTRARG_BY_REFERENCE(Color); +MAKE_PTRARG(StringName); +MAKE_PTRARG(NodePath); +MAKE_PTRARG(RID); +// Object doesn't need this. +MAKE_PTRARG(Callable); +MAKE_PTRARG(Signal); +MAKE_PTRARG(Dictionary); +MAKE_PTRARG(Array); +MAKE_PTRARG(PackedByteArray); +MAKE_PTRARG(PackedInt32Array); +MAKE_PTRARG(PackedInt64Array); +MAKE_PTRARG(PackedFloat32Array); +MAKE_PTRARG(PackedFloat64Array); +MAKE_PTRARG(PackedStringArray); +MAKE_PTRARG(PackedVector2Array); +MAKE_PTRARG(PackedVector3Array); +MAKE_PTRARG(PackedColorArray); +MAKE_PTRARG_BY_REFERENCE(Variant); + +// This is for Object. + +template +struct PtrToArg { + _FORCE_INLINE_ static T *convert(const void *p_ptr) { + return reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + reinterpret_cast(const_cast(p_ptr)), + godot::internal::token, &T::___binding_callbacks)); + } + typedef Object *EncodeT; + _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { + *reinterpret_cast(p_ptr) = p_var ? p_var->_owner : nullptr; + } +}; + +template +struct PtrToArg { + _FORCE_INLINE_ static const T *convert(const void *p_ptr) { + return reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + reinterpret_cast(const_cast(p_ptr)), + godot::internal::token, &T::___binding_callbacks)); + } + typedef const Object *EncodeT; + _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { + *reinterpret_cast(p_ptr) = p_var ? p_var->_owner : nullptr; + } +}; + +// Pointers. +#define GDVIRTUAL_NATIVE_PTR(m_type) \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static m_type *convert(const void *p_ptr) { \ + return (m_type *)(*(void **)p_ptr); \ + } \ + typedef m_type *EncodeT; \ + _FORCE_INLINE_ static void encode(m_type *p_var, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_var; \ + } \ + }; \ + \ + template <> \ + struct PtrToArg { \ + _FORCE_INLINE_ static const m_type *convert(const void *p_ptr) { \ + return (const m_type *)(*(const void **)p_ptr); \ + } \ + typedef const m_type *EncodeT; \ + _FORCE_INLINE_ static void encode(const m_type *p_var, void *p_ptr) { \ + *reinterpret_cast(p_ptr) = p_var; \ + } \ + } + +GDVIRTUAL_NATIVE_PTR(void); +GDVIRTUAL_NATIVE_PTR(bool); +GDVIRTUAL_NATIVE_PTR(char); +GDVIRTUAL_NATIVE_PTR(char16_t); +GDVIRTUAL_NATIVE_PTR(char32_t); +GDVIRTUAL_NATIVE_PTR(wchar_t); +GDVIRTUAL_NATIVE_PTR(uint8_t); +GDVIRTUAL_NATIVE_PTR(uint8_t *); +GDVIRTUAL_NATIVE_PTR(int8_t); +GDVIRTUAL_NATIVE_PTR(uint16_t); +GDVIRTUAL_NATIVE_PTR(int16_t); +GDVIRTUAL_NATIVE_PTR(uint32_t); +GDVIRTUAL_NATIVE_PTR(int32_t); +GDVIRTUAL_NATIVE_PTR(int64_t); +GDVIRTUAL_NATIVE_PTR(uint64_t); +GDVIRTUAL_NATIVE_PTR(float); +GDVIRTUAL_NATIVE_PTR(double); + +} // namespace godot + +#endif // GODOT_METHOD_PTRCALL_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/mutex_lock.hpp b/lib/godot-cpp/include/godot_cpp/core/mutex_lock.hpp new file mode 100644 index 0000000..aa81d4d --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/mutex_lock.hpp @@ -0,0 +1,59 @@ +/**************************************************************************/ +/* mutex_lock.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_MUTEX_LOCK_HPP +#define GODOT_MUTEX_LOCK_HPP + +#include + +namespace godot { + +class MutexLock { + const Mutex &mutex; + +public: + _ALWAYS_INLINE_ explicit MutexLock(const Mutex &p_mutex) : + mutex(p_mutex) { + const_cast(&mutex)->lock(); + } + + _ALWAYS_INLINE_ ~MutexLock() { + const_cast(&mutex)->unlock(); + } +}; + +#define _THREAD_SAFE_CLASS_ mutable Mutex _thread_safe_; +#define _THREAD_SAFE_METHOD_ MutexLock _thread_safe_method_(_thread_safe_); +#define _THREAD_SAFE_LOCK_ _thread_safe_.lock(); +#define _THREAD_SAFE_UNLOCK_ _thread_safe_.unlock(); + +} // namespace godot + +#endif // GODOT_MUTEX_LOCK_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/object.hpp b/lib/godot-cpp/include/godot_cpp/core/object.hpp new file mode 100644 index 0000000..f5c790a --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/object.hpp @@ -0,0 +1,163 @@ +/**************************************************************************/ +/* object.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_OBJECT_HPP +#define GODOT_OBJECT_HPP + +#include + +#include + +#include + +#include + +#include + +#include + +#include + +#define ADD_SIGNAL(m_signal) godot::ClassDB::add_signal(get_class_static(), m_signal) +#define ADD_GROUP(m_name, m_prefix) godot::ClassDB::add_property_group(get_class_static(), m_name, m_prefix) +#define ADD_SUBGROUP(m_name, m_prefix) godot::ClassDB::add_property_subgroup(get_class_static(), m_name, m_prefix) +#define ADD_PROPERTY(m_property, m_setter, m_getter) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter) + +namespace godot { + +struct MethodInfo { + StringName name; + PropertyInfo return_val; + uint32_t flags; + int id = 0; + std::vector arguments; + std::vector default_arguments; + + inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; } + inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); } + + operator Dictionary() const; + + static MethodInfo from_dict(const Dictionary &p_dict); + + MethodInfo(); + MethodInfo(StringName p_name); + template + MethodInfo(StringName p_name, const Args &...args); + MethodInfo(Variant::Type ret); + MethodInfo(Variant::Type ret, StringName p_name); + template + MethodInfo(Variant::Type ret, StringName p_name, const Args &...args); + MethodInfo(const PropertyInfo &p_ret, StringName p_name); + template + MethodInfo(const PropertyInfo &p_ret, StringName p_name, const Args &...); +}; + +template +MethodInfo::MethodInfo(StringName p_name, const Args &...args) : + name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { + arguments = { args... }; +} + +template +MethodInfo::MethodInfo(Variant::Type ret, StringName p_name, const Args &...args) : + name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { + return_val.type = ret; + arguments = { args... }; +} + +template +MethodInfo::MethodInfo(const PropertyInfo &p_ret, StringName p_name, const Args &...args) : + name(p_name), return_val(p_ret), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { + arguments = { args... }; +} + +class ObjectID { + uint64_t id = 0; + +public: + _FORCE_INLINE_ bool is_ref_counted() const { return (id & (uint64_t(1) << 63)) != 0; } + _FORCE_INLINE_ bool is_valid() const { return id != 0; } + _FORCE_INLINE_ bool is_null() const { return id == 0; } + _FORCE_INLINE_ operator uint64_t() const { return id; } + _FORCE_INLINE_ operator int64_t() const { return id; } + + _FORCE_INLINE_ bool operator==(const ObjectID &p_id) const { return id == p_id.id; } + _FORCE_INLINE_ bool operator!=(const ObjectID &p_id) const { return id != p_id.id; } + _FORCE_INLINE_ bool operator<(const ObjectID &p_id) const { return id < p_id.id; } + + _FORCE_INLINE_ void operator=(int64_t p_int64) { id = p_int64; } + _FORCE_INLINE_ void operator=(uint64_t p_uint64) { id = p_uint64; } + + _FORCE_INLINE_ ObjectID() {} + _FORCE_INLINE_ explicit ObjectID(const uint64_t p_id) { id = p_id; } + _FORCE_INLINE_ explicit ObjectID(const int64_t p_id) { id = p_id; } +}; + +class ObjectDB { +public: + static Object *get_instance(uint64_t p_object_id) { + GDExtensionObjectPtr obj = internal::gde_interface->object_get_instance_from_id(p_object_id); + if (obj == nullptr) { + return nullptr; + } + return reinterpret_cast(internal::gde_interface->object_get_instance_binding(obj, internal::token, &Object::___binding_callbacks)); + } +}; + +template +T *Object::cast_to(Object *p_object) { + if (p_object == nullptr) { + return nullptr; + } + StringName class_name = T::get_class_static(); + GDExtensionObjectPtr casted = internal::gde_interface->object_cast_to(p_object->_owner, internal::gde_interface->classdb_get_class_tag(class_name._native_ptr())); + if (casted == nullptr) { + return nullptr; + } + return reinterpret_cast(internal::gde_interface->object_get_instance_binding(casted, internal::token, &T::___binding_callbacks)); +} + +template +const T *Object::cast_to(const Object *p_object) { + if (p_object == nullptr) { + return nullptr; + } + StringName class_name = T::get_class_static(); + GDExtensionObjectPtr casted = internal::gde_interface->object_cast_to(p_object->_owner, internal::gde_interface->classdb_get_class_tag(class_name._native_ptr())); + if (casted == nullptr) { + return nullptr; + } + return reinterpret_cast(internal::gde_interface->object_get_instance_binding(casted, internal::token, &T::___binding_callbacks)); +} + +} // namespace godot + +#endif // GODOT_OBJECT_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/property_info.hpp b/lib/godot-cpp/include/godot_cpp/core/property_info.hpp new file mode 100644 index 0000000..8146859 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/property_info.hpp @@ -0,0 +1,75 @@ +/**************************************************************************/ +/* property_info.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_PROPERTY_INFO_HPP +#define GODOT_PROPERTY_INFO_HPP + +#include + +#include + +#include + +#include + +#include + +namespace godot { + +struct PropertyInfo { + Variant::Type type = Variant::NIL; + StringName name; + StringName class_name; + uint32_t hint = 0; + String hint_string; + uint32_t usage = 7; + + PropertyInfo() = default; + + PropertyInfo(Variant::Type p_type, const StringName &p_name, PropertyHint p_hint = PROPERTY_HINT_NONE, const String &p_hint_string = "", uint32_t p_usage = PROPERTY_USAGE_DEFAULT, const StringName &p_class_name = "") : + type(p_type), + name(p_name), + hint(p_hint), + hint_string(p_hint_string), + usage(p_usage) { + if (hint == PROPERTY_HINT_RESOURCE_TYPE) { + class_name = hint_string; + } else { + class_name = p_class_name; + } + } + + PropertyInfo(GDExtensionVariantType p_type, const StringName &p_name, PropertyHint p_hint = PROPERTY_HINT_NONE, const String &p_hint_string = "", uint32_t p_usage = PROPERTY_USAGE_DEFAULT, const StringName &p_class_name = "") : + PropertyInfo((Variant::Type)p_type, p_name, p_hint, p_hint_string, p_usage, p_class_name) {} +}; + +} // namespace godot + +#endif // GODOT_PROPERTY_INFO_HPP diff --git a/lib/godot-cpp/include/godot_cpp/core/type_info.hpp b/lib/godot-cpp/include/godot_cpp/core/type_info.hpp new file mode 100644 index 0000000..039cb2e --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/core/type_info.hpp @@ -0,0 +1,402 @@ +/**************************************************************************/ +/* type_info.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_TYPE_INFO_HPP +#define GODOT_TYPE_INFO_HPP + +#include +#include +#include + +#include + +namespace godot { + +template +struct EnableIf { + typedef T type; +}; + +template +struct EnableIf { +}; + +template +struct TypesAreSame { + static bool const value = false; +}; + +template +struct TypesAreSame { + static bool const value = true; +}; + +template +struct TypeInherits { + static D *get_d(); + + static char (&test(B *))[1]; + static char (&test(...))[2]; + + static bool const value = sizeof(test(get_d())) == sizeof(char) && + !TypesAreSame::value; +}; + +static PropertyInfo make_property_info(Variant::Type p_type, const StringName &p_name, uint32_t p_hint = PROPERTY_HINT_NONE, const String &p_hint_string = "", uint32_t p_usage = PROPERTY_USAGE_DEFAULT, const StringName &p_class_name = "") { + PropertyInfo info; + info.type = p_type; + info.name = p_name; + info.hint = p_hint; + info.hint_string = p_hint_string; + info.usage = p_usage; + if (p_hint == PROPERTY_HINT_RESOURCE_TYPE) { + info.class_name = p_hint_string; + } else { + info.class_name = p_class_name; + } + return info; +} + +// If the compiler fails because it's trying to instantiate the primary 'GetTypeInfo' template +// instead of one of the specializations, it's most likely because the type 'T' is not supported. +// If 'T' is a class that inherits 'Object', make sure it can see the actual class declaration +// instead of a forward declaration. You can always forward declare 'T' in a header file, and then +// include the actual declaration of 'T' in the source file where 'GetTypeInfo' is instantiated. + +template +struct GetTypeInfo; + +#define MAKE_TYPE_INFO(m_type, m_var_type) \ + template <> \ + struct GetTypeInfo { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = m_var_type; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info((Variant::Type)VARIANT_TYPE, ""); \ + } \ + }; \ + template <> \ + struct GetTypeInfo { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = m_var_type; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info((Variant::Type)VARIANT_TYPE, ""); \ + } \ + }; + +#define MAKE_TYPE_INFO_WITH_META(m_type, m_var_type, m_metadata) \ + template <> \ + struct GetTypeInfo { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = m_var_type; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = m_metadata; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info((Variant::Type)VARIANT_TYPE, ""); \ + } \ + }; \ + template <> \ + struct GetTypeInfo { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = m_var_type; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = m_metadata; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info((Variant::Type)VARIANT_TYPE, ""); \ + } \ + }; + +MAKE_TYPE_INFO(bool, GDEXTENSION_VARIANT_TYPE_BOOL) +MAKE_TYPE_INFO_WITH_META(uint8_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT8) +MAKE_TYPE_INFO_WITH_META(int8_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT8) +MAKE_TYPE_INFO_WITH_META(uint16_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT16) +MAKE_TYPE_INFO_WITH_META(int16_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT16) +MAKE_TYPE_INFO_WITH_META(uint32_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT32) +MAKE_TYPE_INFO_WITH_META(int32_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT32) +MAKE_TYPE_INFO_WITH_META(uint64_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_UINT64) +MAKE_TYPE_INFO_WITH_META(int64_t, GDEXTENSION_VARIANT_TYPE_INT, GDEXTENSION_METHOD_ARGUMENT_METADATA_INT_IS_INT64) +MAKE_TYPE_INFO(char16_t, GDEXTENSION_VARIANT_TYPE_INT) +MAKE_TYPE_INFO(char32_t, GDEXTENSION_VARIANT_TYPE_INT) +MAKE_TYPE_INFO_WITH_META(float, GDEXTENSION_VARIANT_TYPE_FLOAT, GDEXTENSION_METHOD_ARGUMENT_METADATA_REAL_IS_FLOAT) +MAKE_TYPE_INFO_WITH_META(double, GDEXTENSION_VARIANT_TYPE_FLOAT, GDEXTENSION_METHOD_ARGUMENT_METADATA_REAL_IS_DOUBLE) + +MAKE_TYPE_INFO(String, GDEXTENSION_VARIANT_TYPE_STRING) +MAKE_TYPE_INFO(Vector2, GDEXTENSION_VARIANT_TYPE_VECTOR2) +MAKE_TYPE_INFO(Vector2i, GDEXTENSION_VARIANT_TYPE_VECTOR2I) +MAKE_TYPE_INFO(Rect2, GDEXTENSION_VARIANT_TYPE_RECT2) +MAKE_TYPE_INFO(Rect2i, GDEXTENSION_VARIANT_TYPE_RECT2I) +MAKE_TYPE_INFO(Vector3, GDEXTENSION_VARIANT_TYPE_VECTOR3) +MAKE_TYPE_INFO(Vector3i, GDEXTENSION_VARIANT_TYPE_VECTOR3I) +MAKE_TYPE_INFO(Transform2D, GDEXTENSION_VARIANT_TYPE_TRANSFORM2D) +MAKE_TYPE_INFO(Vector4, GDEXTENSION_VARIANT_TYPE_VECTOR4) +MAKE_TYPE_INFO(Vector4i, GDEXTENSION_VARIANT_TYPE_VECTOR4I) +MAKE_TYPE_INFO(Plane, GDEXTENSION_VARIANT_TYPE_PLANE) +MAKE_TYPE_INFO(Quaternion, GDEXTENSION_VARIANT_TYPE_QUATERNION) +MAKE_TYPE_INFO(AABB, GDEXTENSION_VARIANT_TYPE_AABB) +MAKE_TYPE_INFO(Basis, GDEXTENSION_VARIANT_TYPE_BASIS) +MAKE_TYPE_INFO(Transform3D, GDEXTENSION_VARIANT_TYPE_TRANSFORM3D) +MAKE_TYPE_INFO(Projection, GDEXTENSION_VARIANT_TYPE_PROJECTION) +MAKE_TYPE_INFO(Color, GDEXTENSION_VARIANT_TYPE_COLOR) +MAKE_TYPE_INFO(StringName, GDEXTENSION_VARIANT_TYPE_STRING_NAME) +MAKE_TYPE_INFO(NodePath, GDEXTENSION_VARIANT_TYPE_NODE_PATH) +MAKE_TYPE_INFO(RID, GDEXTENSION_VARIANT_TYPE_RID) +MAKE_TYPE_INFO(Callable, GDEXTENSION_VARIANT_TYPE_CALLABLE) +MAKE_TYPE_INFO(Signal, GDEXTENSION_VARIANT_TYPE_SIGNAL) +MAKE_TYPE_INFO(Dictionary, GDEXTENSION_VARIANT_TYPE_DICTIONARY) +MAKE_TYPE_INFO(Array, GDEXTENSION_VARIANT_TYPE_ARRAY) +MAKE_TYPE_INFO(PackedByteArray, GDEXTENSION_VARIANT_TYPE_PACKED_BYTE_ARRAY) +MAKE_TYPE_INFO(PackedInt32Array, GDEXTENSION_VARIANT_TYPE_PACKED_INT32_ARRAY) +MAKE_TYPE_INFO(PackedInt64Array, GDEXTENSION_VARIANT_TYPE_PACKED_INT64_ARRAY) +MAKE_TYPE_INFO(PackedFloat32Array, GDEXTENSION_VARIANT_TYPE_PACKED_FLOAT32_ARRAY) +MAKE_TYPE_INFO(PackedFloat64Array, GDEXTENSION_VARIANT_TYPE_PACKED_FLOAT64_ARRAY) +MAKE_TYPE_INFO(PackedStringArray, GDEXTENSION_VARIANT_TYPE_PACKED_STRING_ARRAY) +MAKE_TYPE_INFO(PackedVector2Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR2_ARRAY) +MAKE_TYPE_INFO(PackedVector3Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR3_ARRAY) +MAKE_TYPE_INFO(PackedColorArray, GDEXTENSION_VARIANT_TYPE_PACKED_COLOR_ARRAY) + +// For variant. +template <> +struct GetTypeInfo { + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_NIL; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::NIL, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT); + } +}; + +template <> +struct GetTypeInfo { + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_NIL; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::NIL, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT); + } +}; + +template +struct GetTypeInfo::value>::type> { + static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); + } +}; + +template +struct GetTypeInfo::value>::type> { + static const GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_OBJECT; + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::OBJECT, "", PROPERTY_HINT_RESOURCE_TYPE, T::get_class_static()); + } +}; + +inline String enum_qualified_name_to_class_info_name(const String &p_qualified_name) { + PackedStringArray parts = p_qualified_name.split("::", false); + if (parts.size() <= 2) { + return String(".").join(parts); + } + // Contains namespace. We only want the class and enum names. + return parts[parts.size() - 2] + "." + parts[parts.size() - 1]; +} + +#define TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_impl) \ + template <> \ + struct GetTypeInfo { \ + static const Variant::Type VARIANT_TYPE = Variant::INT; \ + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_ENUM, \ + enum_qualified_name_to_class_info_name(#m_enum)); \ + } \ + }; + +#define MAKE_ENUM_TYPE_INFO(m_enum) \ + TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum) \ + TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum const) \ + TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, m_enum &) \ + TEMPL_MAKE_ENUM_TYPE_INFO(m_enum, const m_enum &) + +template +inline StringName __constant_get_enum_name(T param, StringName p_constant) { + if (GetTypeInfo::VARIANT_TYPE == Variant::NIL) { + ERR_PRINT(("Missing VARIANT_ENUM_CAST for constant's enum: " + String(p_constant)).utf8().get_data()); + } + return GetTypeInfo::get_class_info().class_name; +} + +template +class BitField { + int64_t value = 0; + +public: + _FORCE_INLINE_ void set_flag(T p_flag) { value |= p_flag; } + _FORCE_INLINE_ bool has_flag(T p_flag) const { return value & p_flag; } + _FORCE_INLINE_ void clear_flag(T p_flag) { return value &= ~p_flag; } + _FORCE_INLINE_ BitField(int64_t p_value) { value = p_value; } + _FORCE_INLINE_ operator int64_t() const { return value; } + _FORCE_INLINE_ operator Variant() const { return value; } +}; + +#define TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_impl) \ + template <> \ + struct GetTypeInfo { \ + static const Variant::Type VARIANT_TYPE = Variant::INT; \ + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_BITFIELD, \ + enum_qualified_name_to_class_info_name(#m_enum)); \ + } \ + }; \ + template <> \ + struct GetTypeInfo> { \ + static const Variant::Type VARIANT_TYPE = Variant::INT; \ + static const GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info(Variant::Type::INT, "", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_CLASS_IS_BITFIELD, \ + enum_qualified_name_to_class_info_name(#m_enum)); \ + } \ + }; + +#define MAKE_BITFIELD_TYPE_INFO(m_enum) \ + TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_enum) \ + TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_enum const) \ + TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_enum &) \ + TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, const m_enum &) + +template +inline StringName __constant_get_bitfield_name(T param, StringName p_constant) { + if (GetTypeInfo::VARIANT_TYPE == Variant::NIL) { + ERR_PRINT(("Missing VARIANT_ENUM_CAST for constant's bitfield: " + String(p_constant)).utf8().get_data()); + } + return GetTypeInfo>::get_class_info().class_name; +} + +template +struct PtrToArg> { + _FORCE_INLINE_ static TypedArray convert(const void *p_ptr) { + return TypedArray(*reinterpret_cast(p_ptr)); + } + typedef Array EncodeT; + _FORCE_INLINE_ static void encode(TypedArray p_val, void *p_ptr) { + *reinterpret_cast(p_ptr) = p_val; + } +}; + +template +struct PtrToArg &> { + typedef Array EncodeT; + _FORCE_INLINE_ static TypedArray + convert(const void *p_ptr) { + return TypedArray(*reinterpret_cast(p_ptr)); + } +}; + +template +struct GetTypeInfo> { + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_ARRAY; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, T::get_class_static()); + } +}; + +template +struct GetTypeInfo &> { + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_ARRAY; + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; + static inline PropertyInfo get_class_info() { + return make_property_info(Variant::Type::ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, T::get_class_static()); + } +}; + +#define MAKE_TYPED_ARRAY_INFO(m_type, m_variant_type) \ + template <> \ + struct GetTypeInfo> { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_ARRAY; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info(Variant::Type::ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, Variant::get_type_name(m_variant_type).utf8().get_data()); \ + } \ + }; \ + template <> \ + struct GetTypeInfo &> { \ + static constexpr GDExtensionVariantType VARIANT_TYPE = GDEXTENSION_VARIANT_TYPE_ARRAY; \ + static constexpr GDExtensionClassMethodArgumentMetadata METADATA = GDEXTENSION_METHOD_ARGUMENT_METADATA_NONE; \ + static inline PropertyInfo get_class_info() { \ + return make_property_info(Variant::Type::ARRAY, "", PROPERTY_HINT_ARRAY_TYPE, Variant::get_type_name(m_variant_type).utf8().get_data()); \ + } \ + }; + +MAKE_TYPED_ARRAY_INFO(bool, Variant::BOOL) +MAKE_TYPED_ARRAY_INFO(uint8_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int8_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint16_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int16_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint32_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int32_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(uint64_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(int64_t, Variant::INT) +MAKE_TYPED_ARRAY_INFO(float, Variant::FLOAT) +MAKE_TYPED_ARRAY_INFO(double, Variant::FLOAT) +MAKE_TYPED_ARRAY_INFO(String, Variant::STRING) +MAKE_TYPED_ARRAY_INFO(Vector2, Variant::VECTOR2) +MAKE_TYPED_ARRAY_INFO(Vector2i, Variant::VECTOR2I) +MAKE_TYPED_ARRAY_INFO(Rect2, Variant::RECT2) +MAKE_TYPED_ARRAY_INFO(Rect2i, Variant::RECT2I) +MAKE_TYPED_ARRAY_INFO(Vector3, Variant::VECTOR3) +MAKE_TYPED_ARRAY_INFO(Vector3i, Variant::VECTOR3I) +MAKE_TYPED_ARRAY_INFO(Transform2D, Variant::TRANSFORM2D) +MAKE_TYPED_ARRAY_INFO(Plane, Variant::PLANE) +MAKE_TYPED_ARRAY_INFO(Quaternion, Variant::QUATERNION) +MAKE_TYPED_ARRAY_INFO(AABB, Variant::AABB) +MAKE_TYPED_ARRAY_INFO(Basis, Variant::BASIS) +MAKE_TYPED_ARRAY_INFO(Transform3D, Variant::TRANSFORM3D) +MAKE_TYPED_ARRAY_INFO(Color, Variant::COLOR) +MAKE_TYPED_ARRAY_INFO(StringName, Variant::STRING_NAME) +MAKE_TYPED_ARRAY_INFO(NodePath, Variant::NODE_PATH) +MAKE_TYPED_ARRAY_INFO(RID, Variant::RID) +MAKE_TYPED_ARRAY_INFO(Callable, Variant::CALLABLE) +MAKE_TYPED_ARRAY_INFO(Signal, Variant::SIGNAL) +MAKE_TYPED_ARRAY_INFO(Dictionary, Variant::DICTIONARY) +MAKE_TYPED_ARRAY_INFO(Array, Variant::ARRAY) +/* +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_BYTE_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_INT32_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_INT64_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_FLOAT32_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_FLOAT64_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_STRING_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_VECTOR2_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_VECTOR3_ARRAY) +MAKE_TYPED_ARRAY_INFO(Vector, Variant::PACKED_COLOR_ARRAY) +*/ + +#define CLASS_INFO(m_type) (GetTypeInfo::get_class_info()) + +} // namespace godot + +#endif // GODOT_TYPE_INFO_HPP diff --git a/lib/godot-cpp/include/godot_cpp/godot.hpp b/lib/godot-cpp/include/godot_cpp/godot.hpp new file mode 100644 index 0000000..35ed9f7 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/godot.hpp @@ -0,0 +1,87 @@ +/**************************************************************************/ +/* godot.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_GODOT_HPP +#define GODOT_GODOT_HPP + +#include + +namespace godot { + +namespace internal { + +extern "C" const GDExtensionInterface *gde_interface; +extern "C" GDExtensionClassLibraryPtr library; +extern "C" void *token; + +} // namespace internal + +enum ModuleInitializationLevel { + MODULE_INITIALIZATION_LEVEL_CORE = GDEXTENSION_INITIALIZATION_CORE, + MODULE_INITIALIZATION_LEVEL_SERVERS = GDEXTENSION_INITIALIZATION_SERVERS, + MODULE_INITIALIZATION_LEVEL_SCENE = GDEXTENSION_INITIALIZATION_SCENE, + MODULE_INITIALIZATION_LEVEL_EDITOR = GDEXTENSION_INITIALIZATION_EDITOR +}; + +class GDExtensionBinding { +public: + using Callback = void (*)(ModuleInitializationLevel p_level); + + static Callback init_callback; + static Callback terminate_callback; + static GDExtensionInitializationLevel minimum_initialization_level; + static GDExtensionBool init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization); + +public: + static void initialize_level(void *userdata, GDExtensionInitializationLevel p_level); + static void deinitialize_level(void *userdata, GDExtensionInitializationLevel p_level); + + class InitObject { + const GDExtensionInterface *gde_interface; + GDExtensionClassLibraryPtr library; + GDExtensionInitialization *initialization; + + public: + InitObject(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) : + gde_interface(p_interface), + library(p_library), + initialization(r_initialization) {} + + void register_initializer(Callback p_init) const; + void register_terminator(Callback p_init) const; + void set_minimum_library_initialization_level(ModuleInitializationLevel p_level) const; + + GDExtensionBool init() const; + }; +}; + +} // namespace godot + +#endif // GODOT_GODOT_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/cowdata.hpp b/lib/godot-cpp/include/godot_cpp/templates/cowdata.hpp new file mode 100644 index 0000000..1753687 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/cowdata.hpp @@ -0,0 +1,392 @@ +/**************************************************************************/ +/* cowdata.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_COWDATA_HPP +#define GODOT_COWDATA_HPP + +#include +#include +#include +#include +#include +#include + +#include + +namespace godot { + +template +class Vector; + +template +class VMap; + +// Silence a false positive warning (see GH-52119). +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wplacement-new" +#endif + +template +class CowData { + template + friend class Vector; + + template + friend class VMap; + +private: + mutable T *_ptr = nullptr; + + // internal helpers + + _FORCE_INLINE_ SafeNumeric *_get_refcount() const { + if (!_ptr) { + return nullptr; + } + + return reinterpret_cast *>(_ptr) - 2; + } + + _FORCE_INLINE_ uint32_t *_get_size() const { + if (!_ptr) { + return nullptr; + } + + return reinterpret_cast(_ptr) - 1; + } + + _FORCE_INLINE_ T *_get_data() const { + if (!_ptr) { + return nullptr; + } + return reinterpret_cast(_ptr); + } + + _FORCE_INLINE_ size_t _get_alloc_size(size_t p_elements) const { + return next_power_of_2(p_elements * sizeof(T)); + } + + _FORCE_INLINE_ bool _get_alloc_size_checked(size_t p_elements, size_t *out) const { +#if defined(__GNUC__) + size_t o; + size_t p; + if (__builtin_mul_overflow(p_elements, sizeof(T), &o)) { + *out = 0; + return false; + } + *out = next_power_of_2(o); + if (__builtin_add_overflow(o, static_cast(32), &p)) { + return false; // No longer allocated here. + } + return true; +#else + // Speed is more important than correctness here, do the operations unchecked + // and hope for the best. + *out = _get_alloc_size(p_elements); + return true; +#endif + } + + void _unref(void *p_data); + void _ref(const CowData *p_from); + void _ref(const CowData &p_from); + uint32_t _copy_on_write(); + +public: + void operator=(const CowData &p_from) { _ref(p_from); } + + _FORCE_INLINE_ T *ptrw() { + _copy_on_write(); + return (T *)_get_data(); + } + + _FORCE_INLINE_ const T *ptr() const { + return _get_data(); + } + + _FORCE_INLINE_ int size() const { + uint32_t *size = (uint32_t *)_get_size(); + if (size) { + return *size; + } else { + return 0; + } + } + + _FORCE_INLINE_ void clear() { resize(0); } + _FORCE_INLINE_ bool is_empty() const { return _ptr == nullptr; } + + _FORCE_INLINE_ void set(int p_index, const T &p_elem) { + ERR_FAIL_INDEX(p_index, size()); + _copy_on_write(); + _get_data()[p_index] = p_elem; + } + + _FORCE_INLINE_ T &get_m(int p_index) { + CRASH_BAD_INDEX(p_index, size()); + _copy_on_write(); + return _get_data()[p_index]; + } + + _FORCE_INLINE_ const T &get(int p_index) const { + CRASH_BAD_INDEX(p_index, size()); + + return _get_data()[p_index]; + } + + Error resize(int p_size); + + _FORCE_INLINE_ void remove_at(int p_index) { + ERR_FAIL_INDEX(p_index, size()); + T *p = ptrw(); + int len = size(); + for (int i = p_index; i < len - 1; i++) { + p[i] = p[i + 1]; + } + + resize(len - 1); + } + + Error insert(int p_pos, const T &p_val) { + ERR_FAIL_INDEX_V(p_pos, size() + 1, ERR_INVALID_PARAMETER); + resize(size() + 1); + for (int i = (size() - 1); i > p_pos; i--) { + set(i, get(i - 1)); + } + set(p_pos, p_val); + + return OK; + } + + int find(const T &p_val, int p_from = 0) const; + + _FORCE_INLINE_ CowData() {} + _FORCE_INLINE_ ~CowData(); + _FORCE_INLINE_ CowData(CowData &p_from) { _ref(p_from); } +}; + +template +void CowData::_unref(void *p_data) { + if (!p_data) { + return; + } + + SafeNumeric *refc = _get_refcount(); + + if (refc->decrement() > 0) { + return; // still in use + } + // clean up + + if (!__has_trivial_destructor(T)) { + uint32_t *count = _get_size(); + T *data = (T *)(count + 1); + + for (uint32_t i = 0; i < *count; ++i) { + // call destructors + data[i].~T(); + } + } + + // free mem + Memory::free_static((uint8_t *)p_data, true); +} + +template +uint32_t CowData::_copy_on_write() { + if (!_ptr) { + return 0; + } + + SafeNumeric *refc = _get_refcount(); + + uint32_t rc = refc->get(); + if (unlikely(rc > 1)) { + /* in use by more than me */ + uint32_t current_size = *_get_size(); + + uint32_t *mem_new = (uint32_t *)Memory::alloc_static(_get_alloc_size(current_size), true); + + new (mem_new - 2) SafeNumeric(1); // refcount + *(mem_new - 1) = current_size; // size + + T *_data = (T *)(mem_new); + + // initialize new elements + if (__has_trivial_copy(T)) { + memcpy(mem_new, _ptr, current_size * sizeof(T)); + + } else { + for (uint32_t i = 0; i < current_size; i++) { + memnew_placement(&_data[i], T(_get_data()[i])); + } + } + + _unref(_ptr); + _ptr = _data; + + rc = 1; + } + return rc; +} + +template +Error CowData::resize(int p_size) { + ERR_FAIL_COND_V(p_size < 0, ERR_INVALID_PARAMETER); + + int current_size = size(); + + if (p_size == current_size) { + return OK; + } + + if (p_size == 0) { + // wants to clean up + _unref(_ptr); + _ptr = nullptr; + return OK; + } + + // possibly changing size, copy on write + uint32_t rc = _copy_on_write(); + + size_t current_alloc_size = _get_alloc_size(current_size); + size_t alloc_size; + ERR_FAIL_COND_V(!_get_alloc_size_checked(p_size, &alloc_size), ERR_OUT_OF_MEMORY); + + if (p_size > current_size) { + if (alloc_size != current_alloc_size) { + if (current_size == 0) { + // alloc from scratch + uint32_t *ptr = (uint32_t *)Memory::alloc_static(alloc_size, true); + ERR_FAIL_COND_V(!ptr, ERR_OUT_OF_MEMORY); + *(ptr - 1) = 0; // size, currently none + new (ptr - 2) SafeNumeric(1); // refcount + + _ptr = (T *)ptr; + + } else { + uint32_t *_ptrnew = (uint32_t *)Memory::realloc_static(_ptr, alloc_size, true); + ERR_FAIL_COND_V(!_ptrnew, ERR_OUT_OF_MEMORY); + new (_ptrnew - 2) SafeNumeric(rc); // refcount + + _ptr = (T *)(_ptrnew); + } + } + + // construct the newly created elements + + if (!__has_trivial_constructor(T)) { + T *elems = _get_data(); + + for (int i = *_get_size(); i < p_size; i++) { + memnew_placement(&elems[i], T); + } + } + + *_get_size() = p_size; + + } else if (p_size < current_size) { + if (!__has_trivial_destructor(T)) { + // deinitialize no longer needed elements + for (uint32_t i = p_size; i < *_get_size(); i++) { + T *t = &_get_data()[i]; + t->~T(); + } + } + + if (alloc_size != current_alloc_size) { + uint32_t *_ptrnew = (uint32_t *)Memory::realloc_static(_ptr, alloc_size, true); + ERR_FAIL_COND_V(!_ptrnew, ERR_OUT_OF_MEMORY); + new (_ptrnew - 2) SafeNumeric(rc); // refcount + + _ptr = (T *)(_ptrnew); + } + + *_get_size() = p_size; + } + + return OK; +} + +template +int CowData::find(const T &p_val, int p_from) const { + int ret = -1; + + if (p_from < 0 || size() == 0) { + return ret; + } + + for (int i = p_from; i < size(); i++) { + if (get(i) == p_val) { + ret = i; + break; + } + } + + return ret; +} + +template +void CowData::_ref(const CowData *p_from) { + _ref(*p_from); +} + +template +void CowData::_ref(const CowData &p_from) { + if (_ptr == p_from._ptr) { + return; // self assign, do nothing. + } + + _unref(_ptr); + _ptr = nullptr; + + if (!p_from._ptr) { + return; // nothing to do + } + + if (p_from._get_refcount()->conditional_increment() > 0) { // could reference + _ptr = p_from._ptr; + } +} + +template +CowData::~CowData() { + _unref(_ptr); +} + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif + +} // namespace godot + +#endif // GODOT_COWDATA_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/hash_map.hpp b/lib/godot-cpp/include/godot_cpp/templates/hash_map.hpp new file mode 100644 index 0000000..77c7b7a --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/hash_map.hpp @@ -0,0 +1,591 @@ +/**************************************************************************/ +/* hash_map.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_HASH_MAP_HPP +#define GODOT_HASH_MAP_HPP + +#include +#include +#include +#include + +namespace godot { + +/** + * A HashMap implementation that uses open addressing with Robin Hood hashing. + * Robin Hood hashing swaps out entries that have a smaller probing distance + * than the to-be-inserted entry, that evens out the average probing distance + * and enables faster lookups. Backward shift deletion is employed to further + * improve the performance and to avoid infinite loops in rare cases. + * + * Keys and values are stored in a double linked list by insertion order. This + * has a slight performance overhead on lookup, which can be mostly compensated + * using a paged allocator if required. + * + * The assignment operator copy the pairs from one map to the other. + */ + +template +struct HashMapElement { + HashMapElement *next = nullptr; + HashMapElement *prev = nullptr; + KeyValue data; + HashMapElement() {} + HashMapElement(const TKey &p_key, const TValue &p_value) : + data(p_key, p_value) {} +}; + +template , + class Allocator = DefaultTypedAllocator>> +class HashMap { +public: + const uint32_t MIN_CAPACITY_INDEX = 2; // Use a prime. + const float MAX_OCCUPANCY = 0.75; + const uint32_t EMPTY_HASH = 0; + +private: + Allocator element_alloc; + HashMapElement **elements = nullptr; + uint32_t *hashes = nullptr; + HashMapElement *head_element = nullptr; + HashMapElement *tail_element = nullptr; + + uint32_t capacity_index = 0; + uint32_t num_elements = 0; + + _FORCE_INLINE_ uint32_t _hash(const TKey &p_key) const { + uint32_t hash = Hasher::hash(p_key); + + if (unlikely(hash == EMPTY_HASH)) { + hash = EMPTY_HASH + 1; + } + + return hash; + } + + _FORCE_INLINE_ uint32_t _get_probe_length(uint32_t p_pos, uint32_t p_hash, uint32_t p_capacity) const { + uint32_t original_pos = p_hash % p_capacity; + return (p_pos - original_pos + p_capacity) % p_capacity; + } + + bool _lookup_pos(const TKey &p_key, uint32_t &r_pos) const { + if (elements == nullptr) { + return false; // Failed lookups, no elements + } + + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t hash = _hash(p_key); + uint32_t pos = hash % capacity; + uint32_t distance = 0; + + while (true) { + if (hashes[pos] == EMPTY_HASH) { + return false; + } + + if (distance > _get_probe_length(pos, hashes[pos], capacity)) { + return false; + } + + if (hashes[pos] == hash && Comparator::compare(elements[pos]->data.key, p_key)) { + r_pos = pos; + return true; + } + + pos = (pos + 1) % capacity; + distance++; + } + } + + void _insert_with_hash(uint32_t p_hash, HashMapElement *p_value) { + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t hash = p_hash; + HashMapElement *value = p_value; + uint32_t distance = 0; + uint32_t pos = hash % capacity; + + while (true) { + if (hashes[pos] == EMPTY_HASH) { + elements[pos] = value; + hashes[pos] = hash; + + num_elements++; + + return; + } + + // Not an empty slot, let's check the probing length of the existing one. + uint32_t existing_probe_len = _get_probe_length(pos, hashes[pos], capacity); + if (existing_probe_len < distance) { + SWAP(hash, hashes[pos]); + SWAP(value, elements[pos]); + distance = existing_probe_len; + } + + pos = (pos + 1) % capacity; + distance++; + } + } + + void _resize_and_rehash(uint32_t p_new_capacity_index) { + uint32_t old_capacity = hash_table_size_primes[capacity_index]; + + // Capacity can't be 0. + capacity_index = MAX((uint32_t)MIN_CAPACITY_INDEX, p_new_capacity_index); + + uint32_t capacity = hash_table_size_primes[capacity_index]; + + HashMapElement **old_elements = elements; + uint32_t *old_hashes = hashes; + + num_elements = 0; + hashes = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + elements = reinterpret_cast **>(Memory::alloc_static(sizeof(HashMapElement *) * capacity)); + + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = 0; + elements[i] = nullptr; + } + + if (old_capacity == 0) { + // Nothing to do. + return; + } + + for (uint32_t i = 0; i < old_capacity; i++) { + if (old_hashes[i] == EMPTY_HASH) { + continue; + } + + _insert_with_hash(old_hashes[i], old_elements[i]); + } + + Memory::free_static(old_elements); + Memory::free_static(old_hashes); + } + + _FORCE_INLINE_ HashMapElement *_insert(const TKey &p_key, const TValue &p_value, bool p_front_insert = false) { + uint32_t capacity = hash_table_size_primes[capacity_index]; + if (unlikely(elements == nullptr)) { + // Allocate on demand to save memory. + + hashes = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + elements = reinterpret_cast **>(Memory::alloc_static(sizeof(HashMapElement *) * capacity)); + + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = EMPTY_HASH; + elements[i] = nullptr; + } + } + + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (exists) { + elements[pos]->data.value = p_value; + return elements[pos]; + } else { + if (num_elements + 1 > MAX_OCCUPANCY * capacity) { + ERR_FAIL_COND_V_MSG(capacity_index + 1 == HASH_TABLE_SIZE_MAX, nullptr, "Hash table maximum capacity reached, aborting insertion."); + _resize_and_rehash(capacity_index + 1); + } + + HashMapElement *elem = element_alloc.new_allocation(HashMapElement(p_key, p_value)); + + if (tail_element == nullptr) { + head_element = elem; + tail_element = elem; + } else if (p_front_insert) { + head_element->prev = elem; + elem->next = head_element; + head_element = elem; + } else { + tail_element->next = elem; + elem->prev = tail_element; + tail_element = elem; + } + + uint32_t hash = _hash(p_key); + _insert_with_hash(hash, elem); + return elem; + } + } + +public: + _FORCE_INLINE_ uint32_t get_capacity() const { return hash_table_size_primes[capacity_index]; } + _FORCE_INLINE_ uint32_t size() const { return num_elements; } + + /* Standard Godot Container API */ + + bool is_empty() const { + return num_elements == 0; + } + + void clear() { + if (elements == nullptr) { + return; + } + uint32_t capacity = hash_table_size_primes[capacity_index]; + for (uint32_t i = 0; i < capacity; i++) { + if (hashes[i] == EMPTY_HASH) { + continue; + } + + hashes[i] = EMPTY_HASH; + element_alloc.delete_allocation(elements[i]); + elements[i] = nullptr; + } + + tail_element = nullptr; + head_element = nullptr; + num_elements = 0; + } + + TValue &get(const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + CRASH_COND_MSG(!exists, "HashMap key not found."); + return elements[pos]->data.value; + } + + const TValue &get(const TKey &p_key) const { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + CRASH_COND_MSG(!exists, "HashMap key not found."); + return elements[pos]->data.value; + } + + const TValue *getptr(const TKey &p_key) const { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (exists) { + return &elements[pos]->data.value; + } + return nullptr; + } + + TValue *getptr(const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (exists) { + return &elements[pos]->data.value; + } + return nullptr; + } + + _FORCE_INLINE_ bool has(const TKey &p_key) const { + uint32_t _pos = 0; + return _lookup_pos(p_key, _pos); + } + + bool erase(const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (!exists) { + return false; + } + + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t next_pos = (pos + 1) % capacity; + while (hashes[next_pos] != EMPTY_HASH && _get_probe_length(next_pos, hashes[next_pos], capacity) != 0) { + SWAP(hashes[next_pos], hashes[pos]); + SWAP(elements[next_pos], elements[pos]); + pos = next_pos; + next_pos = (pos + 1) % capacity; + } + + hashes[pos] = EMPTY_HASH; + + if (head_element == elements[pos]) { + head_element = elements[pos]->next; + } + + if (tail_element == elements[pos]) { + tail_element = elements[pos]->prev; + } + + if (elements[pos]->prev) { + elements[pos]->prev->next = elements[pos]->next; + } + + if (elements[pos]->next) { + elements[pos]->next->prev = elements[pos]->prev; + } + + element_alloc.delete_allocation(elements[pos]); + elements[pos] = nullptr; + + num_elements--; + return true; + } + + // Reserves space for a number of elements, useful to avoid many resizes and rehashes. + // If adding a known (possibly large) number of elements at once, must be larger than old capacity. + void reserve(uint32_t p_new_capacity) { + uint32_t new_index = capacity_index; + + while (hash_table_size_primes[new_index] < p_new_capacity) { + ERR_FAIL_COND_MSG(new_index + 1 == (uint32_t)HASH_TABLE_SIZE_MAX, nullptr); + new_index++; + } + + if (new_index == capacity_index) { + return; + } + + if (elements == nullptr) { + capacity_index = new_index; + return; // Unallocated yet. + } + _resize_and_rehash(new_index); + } + + /** Iterator API **/ + + struct ConstIterator { + _FORCE_INLINE_ const KeyValue &operator*() const { + return E->data; + } + _FORCE_INLINE_ const KeyValue *operator->() const { return &E->data; } + _FORCE_INLINE_ ConstIterator &operator++() { + if (E) { + E = E->next; + } + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + if (E) { + E = E->prev; + } + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; } + + _FORCE_INLINE_ explicit operator bool() const { + return E != nullptr; + } + + _FORCE_INLINE_ ConstIterator(const HashMapElement *p_E) { E = p_E; } + _FORCE_INLINE_ ConstIterator() {} + _FORCE_INLINE_ ConstIterator(const ConstIterator &p_it) { E = p_it.E; } + _FORCE_INLINE_ void operator=(const ConstIterator &p_it) { + E = p_it.E; + } + + private: + const HashMapElement *E = nullptr; + }; + + struct Iterator { + _FORCE_INLINE_ KeyValue &operator*() const { + return E->data; + } + _FORCE_INLINE_ KeyValue *operator->() const { return &E->data; } + _FORCE_INLINE_ Iterator &operator++() { + if (E) { + E = E->next; + } + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + if (E) { + E = E->prev; + } + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + + _FORCE_INLINE_ explicit operator bool() const { + return E != nullptr; + } + + _FORCE_INLINE_ Iterator(HashMapElement *p_E) { E = p_E; } + _FORCE_INLINE_ Iterator() {} + _FORCE_INLINE_ Iterator(const Iterator &p_it) { E = p_it.E; } + _FORCE_INLINE_ void operator=(const Iterator &p_it) { + E = p_it.E; + } + + operator ConstIterator() const { + return ConstIterator(E); + } + + private: + HashMapElement *E = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(head_element); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(nullptr); + } + _FORCE_INLINE_ Iterator last() { + return Iterator(tail_element); + } + + _FORCE_INLINE_ Iterator find(const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + if (!exists) { + return end(); + } + return Iterator(elements[pos]); + } + + _FORCE_INLINE_ void remove(const Iterator &p_iter) { + if (p_iter) { + erase(p_iter->key); + } + } + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(head_element); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(nullptr); + } + _FORCE_INLINE_ ConstIterator last() const { + return ConstIterator(tail_element); + } + + _FORCE_INLINE_ ConstIterator find(const TKey &p_key) const { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + if (!exists) { + return end(); + } + return ConstIterator(elements[pos]); + } + + /* Indexing */ + + const TValue &operator[](const TKey &p_key) const { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + CRASH_COND(!exists); + return elements[pos]->data.value; + } + + TValue &operator[](const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + if (!exists) { + return _insert(p_key, TValue())->data.value; + } else { + return elements[pos]->data.value; + } + } + + /* Insert */ + + Iterator insert(const TKey &p_key, const TValue &p_value, bool p_front_insert = false) { + return Iterator(_insert(p_key, p_value, p_front_insert)); + } + + /* Constructors */ + + HashMap(const HashMap &p_other) { + reserve(hash_table_size_primes[p_other.capacity_index]); + + if (p_other.num_elements == 0) { + return; + } + + for (const KeyValue &E : p_other) { + insert(E.key, E.value); + } + } + + void operator=(const HashMap &p_other) { + if (this == &p_other) { + return; // Ignore self assignment. + } + if (num_elements != 0) { + clear(); + } + + reserve(hash_table_size_primes[p_other.capacity_index]); + + if (p_other.elements == nullptr) { + return; // Nothing to copy. + } + + for (const KeyValue &E : p_other) { + insert(E.key, E.value); + } + } + + HashMap(uint32_t p_initial_capacity) { + // Capacity can't be 0. + capacity_index = 0; + reserve(p_initial_capacity); + } + HashMap() { + capacity_index = MIN_CAPACITY_INDEX; + } + + uint32_t debug_get_hash(uint32_t p_index) { + if (num_elements == 0) { + return 0; + } + ERR_FAIL_INDEX_V(p_index, get_capacity(), 0); + return hashes[p_index]; + } + Iterator debug_get_element(uint32_t p_index) { + if (num_elements == 0) { + return Iterator(); + } + ERR_FAIL_INDEX_V(p_index, get_capacity(), Iterator()); + return Iterator(elements[p_index]); + } + + ~HashMap() { + clear(); + + if (elements != nullptr) { + Memory::free_static(elements); + Memory::free_static(hashes); + } + } +}; + +} // namespace godot + +#endif // GODOT_HASH_MAP_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/hash_set.hpp b/lib/godot-cpp/include/godot_cpp/templates/hash_set.hpp new file mode 100644 index 0000000..884ae4d --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/hash_set.hpp @@ -0,0 +1,477 @@ +/**************************************************************************/ +/* hash_set.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_HASH_SET_HPP +#define GODOT_HASH_SET_HPP + +#include +#include +#include +#include +#include + +namespace godot { + +/** + * Implementation of Set using a bidi indexed hash map. + * Use RBSet instead of this only if the following conditions are met: + * + * - You need to keep an iterator or const pointer to Key and you intend to add/remove elements in the meantime. + * - Iteration order does matter (via operator<) + * + */ + +template > +class HashSet { +public: + static constexpr uint32_t MIN_CAPACITY_INDEX = 2; // Use a prime. + static constexpr float MAX_OCCUPANCY = 0.75; + static constexpr uint32_t EMPTY_HASH = 0; + +private: + TKey *keys = nullptr; + uint32_t *hash_to_key = nullptr; + uint32_t *key_to_hash = nullptr; + uint32_t *hashes = nullptr; + + uint32_t capacity_index = 0; + uint32_t num_elements = 0; + + _FORCE_INLINE_ uint32_t _hash(const TKey &p_key) const { + uint32_t hash = Hasher::hash(p_key); + + if (unlikely(hash == EMPTY_HASH)) { + hash = EMPTY_HASH + 1; + } + + return hash; + } + + _FORCE_INLINE_ uint32_t _get_probe_length(uint32_t p_pos, uint32_t p_hash, uint32_t p_capacity) const { + uint32_t original_pos = p_hash % p_capacity; + return (p_pos - original_pos + p_capacity) % p_capacity; + } + + bool _lookup_pos(const TKey &p_key, uint32_t &r_pos) const { + if (keys == nullptr) { + return false; // Failed lookups, no elements + } + + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t hash = _hash(p_key); + uint32_t pos = hash % capacity; + uint32_t distance = 0; + + while (true) { + if (hashes[pos] == EMPTY_HASH) { + return false; + } + + if (distance > _get_probe_length(pos, hashes[pos], capacity)) { + return false; + } + + if (hashes[pos] == hash && Comparator::compare(keys[hash_to_key[pos]], p_key)) { + r_pos = hash_to_key[pos]; + return true; + } + + pos = (pos + 1) % capacity; + distance++; + } + } + + uint32_t _insert_with_hash(uint32_t p_hash, uint32_t p_index) { + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t hash = p_hash; + uint32_t index = p_index; + uint32_t distance = 0; + uint32_t pos = hash % capacity; + + while (true) { + if (hashes[pos] == EMPTY_HASH) { + hashes[pos] = hash; + key_to_hash[index] = pos; + hash_to_key[pos] = index; + return pos; + } + + // Not an empty slot, let's check the probing length of the existing one. + uint32_t existing_probe_len = _get_probe_length(pos, hashes[pos], capacity); + if (existing_probe_len < distance) { + key_to_hash[index] = pos; + SWAP(hash, hashes[pos]); + SWAP(index, hash_to_key[pos]); + distance = existing_probe_len; + } + + pos = (pos + 1) % capacity; + distance++; + } + } + + void _resize_and_rehash(uint32_t p_new_capacity_index) { + // Capacity can't be 0. + capacity_index = MAX((uint32_t)MIN_CAPACITY_INDEX, p_new_capacity_index); + + uint32_t capacity = hash_table_size_primes[capacity_index]; + + uint32_t *old_hashes = hashes; + uint32_t *old_key_to_hash = key_to_hash; + + hashes = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + keys = reinterpret_cast(Memory::realloc_static(keys, sizeof(TKey) * capacity)); + key_to_hash = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + hash_to_key = reinterpret_cast(Memory::realloc_static(hash_to_key, sizeof(uint32_t) * capacity)); + + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = EMPTY_HASH; + } + + for (uint32_t i = 0; i < num_elements; i++) { + uint32_t h = old_hashes[old_key_to_hash[i]]; + _insert_with_hash(h, i); + } + + Memory::free_static(old_hashes); + Memory::free_static(old_key_to_hash); + } + + _FORCE_INLINE_ int32_t _insert(const TKey &p_key) { + uint32_t capacity = hash_table_size_primes[capacity_index]; + if (unlikely(keys == nullptr)) { + // Allocate on demand to save memory. + + hashes = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + keys = reinterpret_cast(Memory::alloc_static(sizeof(TKey) * capacity)); + key_to_hash = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + hash_to_key = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = EMPTY_HASH; + } + } + + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (exists) { + return pos; + } else { + if (num_elements + 1 > MAX_OCCUPANCY * capacity) { + ERR_FAIL_COND_V_MSG(capacity_index + 1 == HASH_TABLE_SIZE_MAX, -1, "Hash table maximum capacity reached, aborting insertion."); + _resize_and_rehash(capacity_index + 1); + } + + uint32_t hash = _hash(p_key); + memnew_placement(&keys[num_elements], TKey(p_key)); + _insert_with_hash(hash, num_elements); + num_elements++; + return num_elements - 1; + } + } + + void _init_from(const HashSet &p_other) { + capacity_index = p_other.capacity_index; + num_elements = p_other.num_elements; + + if (p_other.num_elements == 0) { + return; + } + + uint32_t capacity = hash_table_size_primes[capacity_index]; + + hashes = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + keys = reinterpret_cast(Memory::alloc_static(sizeof(TKey) * capacity)); + key_to_hash = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + hash_to_key = reinterpret_cast(Memory::alloc_static(sizeof(uint32_t) * capacity)); + + for (uint32_t i = 0; i < num_elements; i++) { + memnew_placement(&keys[i], TKey(p_other.keys[i])); + key_to_hash[i] = p_other.key_to_hash[i]; + } + + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = p_other.hashes[i]; + hash_to_key[i] = p_other.hash_to_key[i]; + } + } + +public: + _FORCE_INLINE_ uint32_t get_capacity() const { return hash_table_size_primes[capacity_index]; } + _FORCE_INLINE_ uint32_t size() const { return num_elements; } + + /* Standard Godot Container API */ + + bool is_empty() const { + return num_elements == 0; + } + + void clear() { + if (keys == nullptr) { + return; + } + uint32_t capacity = hash_table_size_primes[capacity_index]; + for (uint32_t i = 0; i < capacity; i++) { + hashes[i] = EMPTY_HASH; + } + for (uint32_t i = 0; i < num_elements; i++) { + keys[i].~TKey(); + } + + num_elements = 0; + } + + _FORCE_INLINE_ bool has(const TKey &p_key) const { + uint32_t _pos = 0; + return _lookup_pos(p_key, _pos); + } + + bool erase(const TKey &p_key) { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + + if (!exists) { + return false; + } + + uint32_t key_pos = pos; + pos = key_to_hash[pos]; // make hash pos + + uint32_t capacity = hash_table_size_primes[capacity_index]; + uint32_t next_pos = (pos + 1) % capacity; + while (hashes[next_pos] != EMPTY_HASH && _get_probe_length(next_pos, hashes[next_pos], capacity) != 0) { + uint32_t kpos = hash_to_key[pos]; + uint32_t kpos_next = hash_to_key[next_pos]; + SWAP(key_to_hash[kpos], key_to_hash[kpos_next]); + SWAP(hashes[next_pos], hashes[pos]); + SWAP(hash_to_key[next_pos], hash_to_key[pos]); + + pos = next_pos; + next_pos = (pos + 1) % capacity; + } + + hashes[pos] = EMPTY_HASH; + keys[key_pos].~TKey(); + num_elements--; + if (key_pos < num_elements) { + // Not the last key, move the last one here to keep keys lineal + memnew_placement(&keys[key_pos], TKey(keys[num_elements])); + keys[num_elements].~TKey(); + key_to_hash[key_pos] = key_to_hash[num_elements]; + hash_to_key[key_to_hash[num_elements]] = key_pos; + } + + return true; + } + + // Reserves space for a number of elements, useful to avoid many resizes and rehashes. + // If adding a known (possibly large) number of elements at once, must be larger than old capacity. + void reserve(uint32_t p_new_capacity) { + uint32_t new_index = capacity_index; + + while (hash_table_size_primes[new_index] < p_new_capacity) { + ERR_FAIL_COND_MSG(new_index + 1 == (uint32_t)HASH_TABLE_SIZE_MAX, nullptr); + new_index++; + } + + if (new_index == capacity_index) { + return; + } + + if (keys == nullptr) { + capacity_index = new_index; + return; // Unallocated yet. + } + _resize_and_rehash(new_index); + } + + /** Iterator API **/ + + struct Iterator { + _FORCE_INLINE_ const TKey &operator*() const { + return keys[index]; + } + _FORCE_INLINE_ const TKey *operator->() const { + return &keys[index]; + } + _FORCE_INLINE_ Iterator &operator++() { + index++; + if (index >= (int32_t)num_keys) { + index = -1; + keys = nullptr; + num_keys = 0; + } + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + index--; + if (index < 0) { + index = -1; + keys = nullptr; + num_keys = 0; + } + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return keys == b.keys && index == b.index; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return keys != b.keys || index != b.index; } + + _FORCE_INLINE_ explicit operator bool() const { + return keys != nullptr; + } + + _FORCE_INLINE_ Iterator(const TKey *p_keys, uint32_t p_num_keys, int32_t p_index = -1) { + keys = p_keys; + num_keys = p_num_keys; + index = p_index; + } + _FORCE_INLINE_ Iterator() {} + _FORCE_INLINE_ Iterator(const Iterator &p_it) { + keys = p_it.keys; + num_keys = p_it.num_keys; + index = p_it.index; + } + _FORCE_INLINE_ void operator=(const Iterator &p_it) { + keys = p_it.keys; + num_keys = p_it.num_keys; + index = p_it.index; + } + + private: + const TKey *keys = nullptr; + uint32_t num_keys = 0; + int32_t index = -1; + }; + + _FORCE_INLINE_ Iterator begin() const { + return num_elements ? Iterator(keys, num_elements, 0) : Iterator(); + } + _FORCE_INLINE_ Iterator end() const { + return Iterator(); + } + _FORCE_INLINE_ Iterator last() const { + if (num_elements == 0) { + return Iterator(); + } + return Iterator(keys, num_elements, num_elements - 1); + } + + _FORCE_INLINE_ Iterator find(const TKey &p_key) const { + uint32_t pos = 0; + bool exists = _lookup_pos(p_key, pos); + if (!exists) { + return end(); + } + return Iterator(keys, num_elements, pos); + } + + _FORCE_INLINE_ void remove(const Iterator &p_iter) { + if (p_iter) { + erase(*p_iter); + } + } + + /* Insert */ + + Iterator insert(const TKey &p_key) { + uint32_t pos = _insert(p_key); + return Iterator(keys, num_elements, pos); + } + + /* Constructors */ + + HashSet(const HashSet &p_other) { + _init_from(p_other); + } + + void operator=(const HashSet &p_other) { + if (this == &p_other) { + return; // Ignore self assignment. + } + + clear(); + + if (keys != nullptr) { + Memory::free_static(keys); + Memory::free_static(key_to_hash); + Memory::free_static(hash_to_key); + Memory::free_static(hashes); + keys = nullptr; + hashes = nullptr; + hash_to_key = nullptr; + key_to_hash = nullptr; + } + + _init_from(p_other); + } + + HashSet(uint32_t p_initial_capacity) { + // Capacity can't be 0. + capacity_index = 0; + reserve(p_initial_capacity); + } + HashSet() { + capacity_index = MIN_CAPACITY_INDEX; + } + + void reset() { + clear(); + + if (keys != nullptr) { + Memory::free_static(keys); + Memory::free_static(key_to_hash); + Memory::free_static(hash_to_key); + Memory::free_static(hashes); + keys = nullptr; + hashes = nullptr; + hash_to_key = nullptr; + key_to_hash = nullptr; + } + capacity_index = MIN_CAPACITY_INDEX; + } + + ~HashSet() { + clear(); + + if (keys != nullptr) { + Memory::free_static(keys); + Memory::free_static(key_to_hash); + Memory::free_static(hash_to_key); + Memory::free_static(hashes); + } + } +}; + +} // namespace godot + +#endif // GODOT_HASH_SET_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/hashfuncs.hpp b/lib/godot-cpp/include/godot_cpp/templates/hashfuncs.hpp new file mode 100644 index 0000000..d6f3400 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/hashfuncs.hpp @@ -0,0 +1,526 @@ +/**************************************************************************/ +/* hashfuncs.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_HASHFUNCS_HPP +#define GODOT_HASHFUNCS_HPP + +// Needed for fastmod. +#if defined(_MSC_VER) +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/** + * Hashing functions + */ + +namespace godot { + +/** + * DJB2 Hash function + * @param C String + * @return 32-bits hashcode + */ +static _FORCE_INLINE_ uint32_t hash_djb2(const char *p_cstr) { + const unsigned char *chr = (const unsigned char *)p_cstr; + uint32_t hash = 5381; + uint32_t c; + + while ((c = *chr++)) { + hash = ((hash << 5) + hash) ^ c; /* hash * 33 ^ c */ + } + + return hash; +} + +static _FORCE_INLINE_ uint32_t hash_djb2_buffer(const uint8_t *p_buff, int p_len, uint32_t p_prev = 5381) { + uint32_t hash = p_prev; + + for (int i = 0; i < p_len; i++) { + hash = ((hash << 5) + hash) ^ p_buff[i]; /* hash * 33 + c */ + } + + return hash; +} + +static _FORCE_INLINE_ uint32_t hash_djb2_one_32(uint32_t p_in, uint32_t p_prev = 5381) { + return ((p_prev << 5) + p_prev) ^ p_in; +} + +/** + * Thomas Wang's 64-bit to 32-bit Hash function: + * https://web.archive.org/web/20071223173210/https:/www.concentric.net/~Ttwang/tech/inthash.htm + * + * @param p_int - 64-bit unsigned integer key to be hashed + * @return unsigned 32-bit value representing hashcode + */ +static _FORCE_INLINE_ uint32_t hash_one_uint64(const uint64_t p_int) { + uint64_t v = p_int; + v = (~v) + (v << 18); // v = (v << 18) - v - 1; + v = v ^ (v >> 31); + v = v * 21; // v = (v + (v << 2)) + (v << 4); + v = v ^ (v >> 11); + v = v + (v << 6); + v = v ^ (v >> 22); + return uint32_t(v); +} + +#define HASH_MURMUR3_SEED 0x7F07C65 +// Murmurhash3 32-bit version. +// All MurmurHash versions are public domain software, and the author disclaims all copyright to their code. + +static _FORCE_INLINE_ uint32_t hash_murmur3_one_32(uint32_t p_in, uint32_t p_seed = HASH_MURMUR3_SEED) { + p_in *= 0xcc9e2d51; + p_in = (p_in << 15) | (p_in >> 17); + p_in *= 0x1b873593; + + p_seed ^= p_in; + p_seed = (p_seed << 13) | (p_seed >> 19); + p_seed = p_seed * 5 + 0xe6546b64; + + return p_seed; +} + +static _FORCE_INLINE_ uint32_t hash_murmur3_one_float(float p_in, uint32_t p_seed = HASH_MURMUR3_SEED) { + union { + float f; + uint32_t i; + } u; + + // Normalize +/- 0.0 and NaN values so they hash the same. + if (p_in == 0.0f) { + u.f = 0.0; + } else if (Math::is_nan(p_in)) { + u.f = NAN; + } else { + u.f = p_in; + } + + return hash_murmur3_one_32(u.i, p_seed); +} + +static _FORCE_INLINE_ uint32_t hash_murmur3_one_64(uint64_t p_in, uint32_t p_seed = HASH_MURMUR3_SEED) { + p_seed = hash_murmur3_one_32(p_in & 0xFFFFFFFF, p_seed); + return hash_murmur3_one_32(p_in >> 32, p_seed); +} + +static _FORCE_INLINE_ uint32_t hash_murmur3_one_double(double p_in, uint32_t p_seed = HASH_MURMUR3_SEED) { + union { + double d; + uint64_t i; + } u; + + // Normalize +/- 0.0 and NaN values so they hash the same. + if (p_in == 0.0f) { + u.d = 0.0; + } else if (Math::is_nan(p_in)) { + u.d = NAN; + } else { + u.d = p_in; + } + + return hash_murmur3_one_64(u.i, p_seed); +} + +static _FORCE_INLINE_ uint32_t hash_murmur3_one_real(real_t p_in, uint32_t p_seed = HASH_MURMUR3_SEED) { +#ifdef REAL_T_IS_DOUBLE + return hash_murmur3_one_double(p_in, p_seed); +#else + return hash_murmur3_one_float(p_in, p_seed); +#endif +} + +static _FORCE_INLINE_ uint32_t hash_rotl32(uint32_t x, int8_t r) { + return (x << r) | (x >> (32 - r)); +} + +static _FORCE_INLINE_ uint32_t hash_fmix32(uint32_t h) { + h ^= h >> 16; + h *= 0x85ebca6b; + h ^= h >> 13; + h *= 0xc2b2ae35; + h ^= h >> 16; + + return h; +} + +static _FORCE_INLINE_ uint32_t hash_murmur3_buffer(const void *key, int length, const uint32_t seed = HASH_MURMUR3_SEED) { + // Although not required, this is a random prime number. + const uint8_t *data = (const uint8_t *)key; + const int nblocks = length / 4; + + uint32_t h1 = seed; + + const uint32_t c1 = 0xcc9e2d51; + const uint32_t c2 = 0x1b873593; + + const uint32_t *blocks = (const uint32_t *)(data + nblocks * 4); + + for (int i = -nblocks; i; i++) { + uint32_t k1 = blocks[i]; + + k1 *= c1; + k1 = hash_rotl32(k1, 15); + k1 *= c2; + + h1 ^= k1; + h1 = hash_rotl32(h1, 13); + h1 = h1 * 5 + 0xe6546b64; + } + + const uint8_t *tail = (const uint8_t *)(data + nblocks * 4); + + uint32_t k1 = 0; + + switch (length & 3) { + case 3: + k1 ^= tail[2] << 16; + [[fallthrough]]; + case 2: + k1 ^= tail[1] << 8; + [[fallthrough]]; + case 1: + k1 ^= tail[0]; + k1 *= c1; + k1 = hash_rotl32(k1, 15); + k1 *= c2; + h1 ^= k1; + } + + // Finalize with additional bit mixing. + h1 ^= length; + return hash_fmix32(h1); +} + +static _FORCE_INLINE_ uint32_t hash_djb2_one_float(double p_in, uint32_t p_prev = 5381) { + union { + double d; + uint64_t i; + } u; + + // Normalize +/- 0.0 and NaN values so they hash the same. + if (p_in == 0.0f) { + u.d = 0.0; + } else if (Math::is_nan(p_in)) { + u.d = NAN; + } else { + u.d = p_in; + } + + return ((p_prev << 5) + p_prev) + hash_one_uint64(u.i); +} + +template +static _FORCE_INLINE_ uint32_t hash_make_uint32_t(T p_in) { + union { + T t; + uint32_t _u32; + } _u; + _u._u32 = 0; + _u.t = p_in; + return _u._u32; +} + +static _FORCE_INLINE_ uint64_t hash_djb2_one_float_64(double p_in, uint64_t p_prev = 5381) { + union { + double d; + uint64_t i; + } u; + + // Normalize +/- 0.0 and NaN values so they hash the same. + if (p_in == 0.0f) { + u.d = 0.0; + } else if (Math::is_nan(p_in)) { + u.d = NAN; + } else { + u.d = p_in; + } + + return ((p_prev << 5) + p_prev) + u.i; +} + +static _FORCE_INLINE_ uint64_t hash_djb2_one_64(uint64_t p_in, uint64_t p_prev = 5381) { + return ((p_prev << 5) + p_prev) ^ p_in; +} + +template +static _FORCE_INLINE_ uint64_t hash_make_uint64_t(T p_in) { + union { + T t; + uint64_t _u64; + } _u; + _u._u64 = 0; // in case p_in is smaller + + _u.t = p_in; + return _u._u64; +} + +template +class Ref; + +struct HashMapHasherDefault { + // Generic hash function for any type. + template + static _FORCE_INLINE_ uint32_t hash(const T *p_pointer) { return hash_one_uint64((uint64_t)p_pointer); } + + template + static _FORCE_INLINE_ uint32_t hash(const Ref &p_ref) { return hash_one_uint64((uint64_t)p_ref.operator->()); } + + static _FORCE_INLINE_ uint32_t hash(const String &p_string) { return p_string.hash(); } + static _FORCE_INLINE_ uint32_t hash(const char *p_cstr) { return hash_djb2(p_cstr); } + static _FORCE_INLINE_ uint32_t hash(const wchar_t p_wchar) { return hash_fmix32(p_wchar); } + static _FORCE_INLINE_ uint32_t hash(const char16_t p_uchar) { return hash_fmix32(p_uchar); } + static _FORCE_INLINE_ uint32_t hash(const char32_t p_uchar) { return hash_fmix32(p_uchar); } + static _FORCE_INLINE_ uint32_t hash(const RID &p_rid) { return hash_one_uint64(p_rid.get_id()); } + static _FORCE_INLINE_ uint32_t hash(const StringName &p_string_name) { return p_string_name.hash(); } + static _FORCE_INLINE_ uint32_t hash(const NodePath &p_path) { return p_path.hash(); } + static _FORCE_INLINE_ uint32_t hash(const ObjectID &p_id) { return hash_one_uint64(p_id); } + + static _FORCE_INLINE_ uint32_t hash(const uint64_t p_int) { return hash_one_uint64(p_int); } + static _FORCE_INLINE_ uint32_t hash(const int64_t p_int) { return hash_one_uint64(p_int); } + static _FORCE_INLINE_ uint32_t hash(const float p_float) { return hash_murmur3_one_float(p_float); } + static _FORCE_INLINE_ uint32_t hash(const double p_double) { return hash_murmur3_one_double(p_double); } + static _FORCE_INLINE_ uint32_t hash(const uint32_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const int32_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const uint16_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const int16_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const uint8_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const int8_t p_int) { return hash_fmix32(p_int); } + static _FORCE_INLINE_ uint32_t hash(const Vector2i &p_vec) { + uint32_t h = hash_murmur3_one_32(p_vec.x); + h = hash_murmur3_one_32(p_vec.y, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Vector3i &p_vec) { + uint32_t h = hash_murmur3_one_32(p_vec.x); + h = hash_murmur3_one_32(p_vec.y, h); + h = hash_murmur3_one_32(p_vec.z, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Vector4i &p_vec) { + uint32_t h = hash_murmur3_one_32(p_vec.x); + h = hash_murmur3_one_32(p_vec.y, h); + h = hash_murmur3_one_32(p_vec.z, h); + h = hash_murmur3_one_32(p_vec.w, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Vector2 &p_vec) { + uint32_t h = hash_murmur3_one_real(p_vec.x); + h = hash_murmur3_one_real(p_vec.y, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Vector3 &p_vec) { + uint32_t h = hash_murmur3_one_real(p_vec.x); + h = hash_murmur3_one_real(p_vec.y, h); + h = hash_murmur3_one_real(p_vec.z, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Vector4 &p_vec) { + uint32_t h = hash_murmur3_one_real(p_vec.x); + h = hash_murmur3_one_real(p_vec.y, h); + h = hash_murmur3_one_real(p_vec.z, h); + h = hash_murmur3_one_real(p_vec.w, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Rect2i &p_rect) { + uint32_t h = hash_murmur3_one_32(p_rect.position.x); + h = hash_murmur3_one_32(p_rect.position.y, h); + h = hash_murmur3_one_32(p_rect.size.x, h); + h = hash_murmur3_one_32(p_rect.size.y, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const Rect2 &p_rect) { + uint32_t h = hash_murmur3_one_real(p_rect.position.x); + h = hash_murmur3_one_real(p_rect.position.y, h); + h = hash_murmur3_one_real(p_rect.size.x, h); + h = hash_murmur3_one_real(p_rect.size.y, h); + return hash_fmix32(h); + } + static _FORCE_INLINE_ uint32_t hash(const AABB &p_aabb) { + uint32_t h = hash_murmur3_one_real(p_aabb.position.x); + h = hash_murmur3_one_real(p_aabb.position.y, h); + h = hash_murmur3_one_real(p_aabb.position.z, h); + h = hash_murmur3_one_real(p_aabb.size.x, h); + h = hash_murmur3_one_real(p_aabb.size.y, h); + h = hash_murmur3_one_real(p_aabb.size.z, h); + return hash_fmix32(h); + } +}; + +template +struct HashMapComparatorDefault { + static bool compare(const T &p_lhs, const T &p_rhs) { + return p_lhs == p_rhs; + } +}; + +template <> +struct HashMapComparatorDefault { + static bool compare(const float &p_lhs, const float &p_rhs) { + return (p_lhs == p_rhs) || (Math::is_nan(p_lhs) && Math::is_nan(p_rhs)); + } +}; + +template <> +struct HashMapComparatorDefault { + static bool compare(const double &p_lhs, const double &p_rhs) { + return (p_lhs == p_rhs) || (Math::is_nan(p_lhs) && Math::is_nan(p_rhs)); + } +}; + +template <> +struct HashMapComparatorDefault { + static bool compare(const Vector2 &p_lhs, const Vector2 &p_rhs) { + return ((p_lhs.x == p_rhs.x) || (Math::is_nan(p_lhs.x) && Math::is_nan(p_rhs.x))) && ((p_lhs.y == p_rhs.y) || (Math::is_nan(p_lhs.y) && Math::is_nan(p_rhs.y))); + } +}; + +template <> +struct HashMapComparatorDefault { + static bool compare(const Vector3 &p_lhs, const Vector3 &p_rhs) { + return ((p_lhs.x == p_rhs.x) || (Math::is_nan(p_lhs.x) && Math::is_nan(p_rhs.x))) && ((p_lhs.y == p_rhs.y) || (Math::is_nan(p_lhs.y) && Math::is_nan(p_rhs.y))) && ((p_lhs.z == p_rhs.z) || (Math::is_nan(p_lhs.z) && Math::is_nan(p_rhs.z))); + } +}; + +constexpr uint32_t HASH_TABLE_SIZE_MAX = 29; + +const uint32_t hash_table_size_primes[HASH_TABLE_SIZE_MAX] = { + 5, + 13, + 23, + 47, + 97, + 193, + 389, + 769, + 1543, + 3079, + 6151, + 12289, + 24593, + 49157, + 98317, + 196613, + 393241, + 786433, + 1572869, + 3145739, + 6291469, + 12582917, + 25165843, + 50331653, + 100663319, + 201326611, + 402653189, + 805306457, + 1610612741, +}; + +// Computed with elem_i = UINT64_C (0 x FFFFFFFF FFFFFFFF ) / d_i + 1, where d_i is the i-th element of the above array. +const uint64_t hash_table_size_primes_inv[HASH_TABLE_SIZE_MAX] = { + 3689348814741910324, + 1418980313362273202, + 802032351030850071, + 392483916461905354, + 190172619316593316, + 95578984837873325, + 47420935922132524, + 23987963684927896, + 11955116055547344, + 5991147799191151, + 2998982941588287, + 1501077717772769, + 750081082979285, + 375261795343686, + 187625172388393, + 93822606204624, + 46909513691883, + 23456218233098, + 11728086747027, + 5864041509391, + 2932024948977, + 1466014921160, + 733007198436, + 366503839517, + 183251896093, + 91625960335, + 45812983922, + 22906489714, + 11453246088 +}; + +/** + * Fastmod computes ( n mod d ) given the precomputed c much faster than n % d. + * The implementation of fastmod is based on the following paper by Daniel Lemire et al. + * Faster Remainder by Direct Computation: Applications to Compilers and Software Libraries + * https://arxiv.org/abs/1902.01961 + */ +static _FORCE_INLINE_ uint32_t fastmod(const uint32_t n, const uint64_t c, const uint32_t d) { +#if defined(_MSC_VER) + // Returns the upper 64 bits of the product of two 64-bit unsigned integers. + // This intrinsic function is required since MSVC does not support unsigned 128-bit integers. +#if defined(_M_X64) || defined(_M_ARM64) + return __umulh(c * n, d); +#else + // Fallback to the slower method for 32-bit platforms. + return n % d; +#endif // _M_X64 || _M_ARM64 +#else +#ifdef __SIZEOF_INT128__ + // Prevent compiler warning, because we know what we are doing. + uint64_t lowbits = c * n; + __extension__ typedef unsigned __int128 uint128; + return static_cast(((uint128)lowbits * d) >> 64); +#else + // Fallback to the slower method if no 128-bit unsigned integer type is available. + return n % d; +#endif // __SIZEOF_INT128__ +#endif // _MSC_VER +} + +} // namespace godot + +#endif // GODOT_HASHFUNCS_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/list.hpp b/lib/godot-cpp/include/godot_cpp/templates/list.hpp new file mode 100644 index 0000000..36285f8 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/list.hpp @@ -0,0 +1,769 @@ +/**************************************************************************/ +/* list.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_LIST_HPP +#define GODOT_LIST_HPP + +#include +#include +#include + +/** + * Generic Templatized Linked List Implementation. + * The implementation differs from the STL one because + * a compatible preallocated linked list can be written + * using the same API, or features such as erasing an element + * from the iterator. + */ + +namespace godot { + +template +class List { + struct _Data; + +public: + class Element { + private: + friend class List; + + T value; + Element *next_ptr = nullptr; + Element *prev_ptr = nullptr; + _Data *data = nullptr; + + public: + /** + * Get NEXT Element iterator, for constant lists. + */ + _FORCE_INLINE_ const Element *next() const { + return next_ptr; + } + /** + * Get NEXT Element iterator, + */ + _FORCE_INLINE_ Element *next() { + return next_ptr; + } + + /** + * Get PREV Element iterator, for constant lists. + */ + _FORCE_INLINE_ const Element *prev() const { + return prev_ptr; + } + /** + * Get PREV Element iterator, + */ + _FORCE_INLINE_ Element *prev() { + return prev_ptr; + } + + /** + * * operator, for using as *iterator, when iterators are defined on stack. + */ + _FORCE_INLINE_ const T &operator*() const { + return value; + } + /** + * operator->, for using as iterator->, when iterators are defined on stack, for constant lists. + */ + _FORCE_INLINE_ const T *operator->() const { + return &value; + } + /** + * * operator, for using as *iterator, when iterators are defined on stack, + */ + _FORCE_INLINE_ T &operator*() { + return value; + } + /** + * operator->, for using as iterator->, when iterators are defined on stack, for constant lists. + */ + _FORCE_INLINE_ T *operator->() { + return &value; + } + + /** + * get the value stored in this element. + */ + _FORCE_INLINE_ T &get() { + return value; + } + /** + * get the value stored in this element, for constant lists + */ + _FORCE_INLINE_ const T &get() const { + return value; + } + /** + * set the value stored in this element. + */ + _FORCE_INLINE_ void set(const T &p_value) { + value = (T &)p_value; + } + + void erase() { + data->erase(this); + } + + _FORCE_INLINE_ Element() {} + }; + + typedef T ValueType; + + struct Iterator { + _FORCE_INLINE_ T &operator*() const { + return E->get(); + } + _FORCE_INLINE_ T *operator->() const { return &E->get(); } + _FORCE_INLINE_ Iterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + + Iterator(Element *p_E) { E = p_E; } + Iterator() {} + Iterator(const Iterator &p_it) { E = p_it.E; } + + private: + Element *E = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const T &operator*() const { + return E->get(); + } + _FORCE_INLINE_ const T *operator->() const { return &E->get(); } + _FORCE_INLINE_ ConstIterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; } + + _FORCE_INLINE_ ConstIterator(const Element *p_E) { E = p_E; } + _FORCE_INLINE_ ConstIterator() {} + _FORCE_INLINE_ ConstIterator(const ConstIterator &p_it) { E = p_it.E; } + + private: + const Element *E = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(front()); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(nullptr); + } + +#if 0 + //to use when replacing find() + _FORCE_INLINE_ Iterator find(const K &p_key) { + return Iterator(find(p_key)); + } +#endif + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(front()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(nullptr); + } +#if 0 + //to use when replacing find() + _FORCE_INLINE_ ConstIterator find(const K &p_key) const { + return ConstIterator(find(p_key)); + } +#endif +private: + struct _Data { + Element *first = nullptr; + Element *last = nullptr; + int size_cache = 0; + + bool erase(const Element *p_I) { + ERR_FAIL_COND_V(!p_I, false); + ERR_FAIL_COND_V(p_I->data != this, false); + + if (first == p_I) { + first = p_I->next_ptr; + } + + if (last == p_I) { + last = p_I->prev_ptr; + } + + if (p_I->prev_ptr) { + p_I->prev_ptr->next_ptr = p_I->next_ptr; + } + + if (p_I->next_ptr) { + p_I->next_ptr->prev_ptr = p_I->prev_ptr; + } + + memdelete_allocator(const_cast(p_I)); + size_cache--; + + return true; + } + }; + + _Data *_data = nullptr; + +public: + /** + * return a const iterator to the beginning of the list. + */ + _FORCE_INLINE_ const Element *front() const { + return _data ? _data->first : nullptr; + } + + /** + * return an iterator to the beginning of the list. + */ + _FORCE_INLINE_ Element *front() { + return _data ? _data->first : nullptr; + } + + /** + * return a const iterator to the last member of the list. + */ + _FORCE_INLINE_ const Element *back() const { + return _data ? _data->last : nullptr; + } + + /** + * return an iterator to the last member of the list. + */ + _FORCE_INLINE_ Element *back() { + return _data ? _data->last : nullptr; + } + + /** + * store a new element at the end of the list + */ + Element *push_back(const T &value) { + if (!_data) { + _data = memnew_allocator(_Data, A); + _data->first = nullptr; + _data->last = nullptr; + _data->size_cache = 0; + } + + Element *n = memnew_allocator(Element, A); + n->value = (T &)value; + + n->prev_ptr = _data->last; + n->next_ptr = nullptr; + n->data = _data; + + if (_data->last) { + _data->last->next_ptr = n; + } + + _data->last = n; + + if (!_data->first) { + _data->first = n; + } + + _data->size_cache++; + + return n; + } + + void pop_back() { + if (_data && _data->last) { + erase(_data->last); + } + } + + /** + * store a new element at the beginning of the list + */ + Element *push_front(const T &value) { + if (!_data) { + _data = memnew_allocator(_Data, A); + _data->first = nullptr; + _data->last = nullptr; + _data->size_cache = 0; + } + + Element *n = memnew_allocator(Element, A); + n->value = (T &)value; + n->prev_ptr = nullptr; + n->next_ptr = _data->first; + n->data = _data; + + if (_data->first) { + _data->first->prev_ptr = n; + } + + _data->first = n; + + if (!_data->last) { + _data->last = n; + } + + _data->size_cache++; + + return n; + } + + void pop_front() { + if (_data && _data->first) { + erase(_data->first); + } + } + + Element *insert_after(Element *p_element, const T &p_value) { + CRASH_COND(p_element && (!_data || p_element->data != _data)); + + if (!p_element) { + return push_back(p_value); + } + + Element *n = memnew_allocator(Element, A); + n->value = (T &)p_value; + n->prev_ptr = p_element; + n->next_ptr = p_element->next_ptr; + n->data = _data; + + if (!p_element->next_ptr) { + _data->last = n; + } else { + p_element->next_ptr->prev_ptr = n; + } + + p_element->next_ptr = n; + + _data->size_cache++; + + return n; + } + + Element *insert_before(Element *p_element, const T &p_value) { + CRASH_COND(p_element && (!_data || p_element->data != _data)); + + if (!p_element) { + return push_back(p_value); + } + + Element *n = memnew_allocator(Element, A); + n->value = (T &)p_value; + n->prev_ptr = p_element->prev_ptr; + n->next_ptr = p_element; + n->data = _data; + + if (!p_element->prev_ptr) { + _data->first = n; + } else { + p_element->prev_ptr->next_ptr = n; + } + + p_element->prev_ptr = n; + + _data->size_cache++; + + return n; + } + + /** + * find an element in the list, + */ + template + Element *find(const T_v &p_val) { + Element *it = front(); + while (it) { + if (it->value == p_val) { + return it; + } + it = it->next(); + } + + return nullptr; + } + + /** + * erase an element in the list, by iterator pointing to it. Return true if it was found/erased. + */ + bool erase(const Element *p_I) { + if (_data && p_I) { + bool ret = _data->erase(p_I); + + if (_data->size_cache == 0) { + memdelete_allocator<_Data, A>(_data); + _data = nullptr; + } + + return ret; + } + + return false; + } + + /** + * erase the first element in the list, that contains value + */ + bool erase(const T &value) { + Element *I = find(value); + return erase(I); + } + + /** + * return whether the list is empty + */ + _FORCE_INLINE_ bool is_empty() const { + return (!_data || !_data->size_cache); + } + + /** + * clear the list + */ + void clear() { + while (front()) { + erase(front()); + } + } + + _FORCE_INLINE_ int size() const { + return _data ? _data->size_cache : 0; + } + + void swap(Element *p_A, Element *p_B) { + ERR_FAIL_COND(!p_A || !p_B); + ERR_FAIL_COND(p_A->data != _data); + ERR_FAIL_COND(p_B->data != _data); + + if (p_A == p_B) { + return; + } + Element *A_prev = p_A->prev_ptr; + Element *A_next = p_A->next_ptr; + Element *B_prev = p_B->prev_ptr; + Element *B_next = p_B->next_ptr; + + if (A_prev) { + A_prev->next_ptr = p_B; + } else { + _data->first = p_B; + } + if (B_prev) { + B_prev->next_ptr = p_A; + } else { + _data->first = p_A; + } + if (A_next) { + A_next->prev_ptr = p_B; + } else { + _data->last = p_B; + } + if (B_next) { + B_next->prev_ptr = p_A; + } else { + _data->last = p_A; + } + p_A->prev_ptr = A_next == p_B ? p_B : B_prev; + p_A->next_ptr = B_next == p_A ? p_B : B_next; + p_B->prev_ptr = B_next == p_A ? p_A : A_prev; + p_B->next_ptr = A_next == p_B ? p_A : A_next; + } + /** + * copy the list + */ + void operator=(const List &p_list) { + clear(); + const Element *it = p_list.front(); + while (it) { + push_back(it->get()); + it = it->next(); + } + } + + T &operator[](int p_index) { + CRASH_BAD_INDEX(p_index, size()); + + Element *I = front(); + int c = 0; + while (c < p_index) { + I = I->next(); + c++; + } + + return I->get(); + } + + const T &operator[](int p_index) const { + CRASH_BAD_INDEX(p_index, size()); + + const Element *I = front(); + int c = 0; + while (c < p_index) { + I = I->next(); + c++; + } + + return I->get(); + } + + void move_to_back(Element *p_I) { + ERR_FAIL_COND(p_I->data != _data); + if (!p_I->next_ptr) { + return; + } + + if (_data->first == p_I) { + _data->first = p_I->next_ptr; + } + + if (_data->last == p_I) { + _data->last = p_I->prev_ptr; + } + + if (p_I->prev_ptr) { + p_I->prev_ptr->next_ptr = p_I->next_ptr; + } + + p_I->next_ptr->prev_ptr = p_I->prev_ptr; + + _data->last->next_ptr = p_I; + p_I->prev_ptr = _data->last; + p_I->next_ptr = nullptr; + _data->last = p_I; + } + + void reverse() { + int s = size() / 2; + Element *F = front(); + Element *B = back(); + for (int i = 0; i < s; i++) { + SWAP(F->value, B->value); + F = F->next(); + B = B->prev(); + } + } + + void move_to_front(Element *p_I) { + ERR_FAIL_COND(p_I->data != _data); + if (!p_I->prev_ptr) { + return; + } + + if (_data->first == p_I) { + _data->first = p_I->next_ptr; + } + + if (_data->last == p_I) { + _data->last = p_I->prev_ptr; + } + + p_I->prev_ptr->next_ptr = p_I->next_ptr; + + if (p_I->next_ptr) { + p_I->next_ptr->prev_ptr = p_I->prev_ptr; + } + + _data->first->prev_ptr = p_I; + p_I->next_ptr = _data->first; + p_I->prev_ptr = nullptr; + _data->first = p_I; + } + + void move_before(Element *value, Element *where) { + if (value->prev_ptr) { + value->prev_ptr->next_ptr = value->next_ptr; + } else { + _data->first = value->next_ptr; + } + if (value->next_ptr) { + value->next_ptr->prev_ptr = value->prev_ptr; + } else { + _data->last = value->prev_ptr; + } + + value->next_ptr = where; + if (!where) { + value->prev_ptr = _data->last; + _data->last = value; + return; + } + + value->prev_ptr = where->prev_ptr; + + if (where->prev_ptr) { + where->prev_ptr->next_ptr = value; + } else { + _data->first = value; + } + + where->prev_ptr = value; + } + + /** + * simple insertion sort + */ + + void sort() { + sort_custom>(); + } + + template + void sort_custom_inplace() { + if (size() < 2) { + return; + } + + Element *from = front(); + Element *current = from; + Element *to = from; + + while (current) { + Element *next = current->next_ptr; + + if (from != current) { + current->prev_ptr = nullptr; + current->next_ptr = from; + + Element *find = from; + C less; + while (find && less(find->value, current->value)) { + current->prev_ptr = find; + current->next_ptr = find->next_ptr; + find = find->next_ptr; + } + + if (current->prev_ptr) { + current->prev_ptr->next_ptr = current; + } else { + from = current; + } + + if (current->next_ptr) { + current->next_ptr->prev_ptr = current; + } else { + to = current; + } + } else { + current->prev_ptr = nullptr; + current->next_ptr = nullptr; + } + + current = next; + } + _data->first = from; + _data->last = to; + } + + template + struct AuxiliaryComparator { + C compare; + _FORCE_INLINE_ bool operator()(const Element *a, const Element *b) const { + return compare(a->value, b->value); + } + }; + + template + void sort_custom() { + // this version uses auxiliary memory for speed. + // if you don't want to use auxiliary memory, use the in_place version + + int s = size(); + if (s < 2) { + return; + } + + Element **aux_buffer = memnew_arr(Element *, s); + + int idx = 0; + for (Element *E = front(); E; E = E->next_ptr) { + aux_buffer[idx] = E; + idx++; + } + + SortArray> sort; + sort.sort(aux_buffer, s); + + _data->first = aux_buffer[0]; + aux_buffer[0]->prev_ptr = nullptr; + aux_buffer[0]->next_ptr = aux_buffer[1]; + + _data->last = aux_buffer[s - 1]; + aux_buffer[s - 1]->prev_ptr = aux_buffer[s - 2]; + aux_buffer[s - 1]->next_ptr = nullptr; + + for (int i = 1; i < s - 1; i++) { + aux_buffer[i]->prev_ptr = aux_buffer[i - 1]; + aux_buffer[i]->next_ptr = aux_buffer[i + 1]; + } + + memdelete_arr(aux_buffer); + } + + const void *id() const { + return (void *)_data; + } + + /** + * copy constructor for the list + */ + List(const List &p_list) { + const Element *it = p_list.front(); + while (it) { + push_back(it->get()); + it = it->next(); + } + } + + List() {} + + ~List() { + clear(); + if (_data) { + ERR_FAIL_COND(_data->size_cache); + memdelete_allocator<_Data, A>(_data); + } + } +}; + +} // namespace godot + +#endif // GODOT_LIST_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/local_vector.hpp b/lib/godot-cpp/include/godot_cpp/templates/local_vector.hpp new file mode 100644 index 0000000..8ce4e65 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/local_vector.hpp @@ -0,0 +1,339 @@ +/**************************************************************************/ +/* local_vector.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_LOCAL_VECTOR_HPP +#define GODOT_LOCAL_VECTOR_HPP + +#include "godot_cpp/core/error_macros.hpp" +#include "godot_cpp/core/memory.hpp" +#include "godot_cpp/templates/sort_array.hpp" +#include "godot_cpp/templates/vector.hpp" + +#include +#include + +namespace godot { + +// If tight, it grows strictly as much as needed. +// Otherwise, it grows exponentially (the default and what you want in most cases). +template +class LocalVector { +private: + U count = 0; + U capacity = 0; + T *data = nullptr; + +public: + T *ptr() { + return data; + } + + const T *ptr() const { + return data; + } + + _FORCE_INLINE_ void push_back(T p_elem) { + if (unlikely(count == capacity)) { + if (capacity == 0) { + capacity = 1; + } else { + capacity <<= 1; + } + data = (T *)memrealloc(data, capacity * sizeof(T)); + CRASH_COND_MSG(!data, "Out of memory"); + } + + if constexpr (!std::is_trivially_constructible::value && !force_trivial) { + memnew_placement(&data[count++], T(p_elem)); + } else { + data[count++] = p_elem; + } + } + + void remove_at(U p_index) { + ERR_FAIL_UNSIGNED_INDEX(p_index, count); + count--; + for (U i = p_index; i < count; i++) { + data[i] = data[i + 1]; + } + if constexpr (!std::is_trivially_destructible::value && !force_trivial) { + data[count].~T(); + } + } + + /// Removes the item copying the last value into the position of the one to + /// remove. It's generally faster than `remove`. + void remove_at_unordered(U p_index) { + ERR_FAIL_INDEX(p_index, count); + count--; + if (count > p_index) { + data[p_index] = data[count]; + } + if constexpr (!std::is_trivially_destructible::value && !force_trivial) { + data[count].~T(); + } + } + + void erase(const T &p_val) { + int64_t idx = find(p_val); + if (idx >= 0) { + remove_at(idx); + } + } + + void invert() { + for (U i = 0; i < count / 2; i++) { + SWAP(data[i], data[count - i - 1]); + } + } + + _FORCE_INLINE_ void clear() { resize(0); } + _FORCE_INLINE_ void reset() { + clear(); + if (data) { + memfree(data); + data = nullptr; + capacity = 0; + } + } + _FORCE_INLINE_ bool is_empty() const { return count == 0; } + _FORCE_INLINE_ U get_capacity() const { return capacity; } + _FORCE_INLINE_ void reserve(U p_size) { + p_size = tight ? p_size : nearest_power_of_2_templated(p_size); + if (p_size > capacity) { + capacity = p_size; + data = (T *)memrealloc(data, capacity * sizeof(T)); + CRASH_COND_MSG(!data, "Out of memory"); + } + } + + _FORCE_INLINE_ U size() const { return count; } + void resize(U p_size) { + if (p_size < count) { + if constexpr (!std::is_trivially_destructible::value && !force_trivial) { + for (U i = p_size; i < count; i++) { + data[i].~T(); + } + } + count = p_size; + } else if (p_size > count) { + if (unlikely(p_size > capacity)) { + if (capacity == 0) { + capacity = 1; + } + while (capacity < p_size) { + capacity <<= 1; + } + data = (T *)memrealloc(data, capacity * sizeof(T)); + CRASH_COND_MSG(!data, "Out of memory"); + } + if constexpr (!std::is_trivially_constructible::value && !force_trivial) { + for (U i = count; i < p_size; i++) { + memnew_placement(&data[i], T); + } + } + count = p_size; + } + } + _FORCE_INLINE_ const T &operator[](U p_index) const { + CRASH_BAD_UNSIGNED_INDEX(p_index, count); + return data[p_index]; + } + _FORCE_INLINE_ T &operator[](U p_index) { + CRASH_BAD_UNSIGNED_INDEX(p_index, count); + return data[p_index]; + } + + struct Iterator { + _FORCE_INLINE_ T &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ T *operator->() const { return elem_ptr; } + _FORCE_INLINE_ Iterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return elem_ptr != b.elem_ptr; } + + Iterator(T *p_ptr) { elem_ptr = p_ptr; } + Iterator() {} + Iterator(const Iterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + T *elem_ptr = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const T &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ const T *operator->() const { return elem_ptr; } + _FORCE_INLINE_ ConstIterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return elem_ptr != b.elem_ptr; } + + ConstIterator(const T *p_ptr) { elem_ptr = p_ptr; } + ConstIterator() {} + ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + const T *elem_ptr = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(data); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(data + size()); + } + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(ptr()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(ptr() + size()); + } + + void insert(U p_pos, T p_val) { + ERR_FAIL_UNSIGNED_INDEX(p_pos, count + 1); + if (p_pos == count) { + push_back(p_val); + } else { + resize(count + 1); + for (U i = count - 1; i > p_pos; i--) { + data[i] = data[i - 1]; + } + data[p_pos] = p_val; + } + } + + int64_t find(const T &p_val, U p_from = 0) const { + for (U i = p_from; i < count; i++) { + if (data[i] == p_val) { + return int64_t(i); + } + } + return -1; + } + + template + void sort_custom() { + U len = count; + if (len == 0) { + return; + } + + SortArray sorter; + sorter.sort(data, len); + } + + void sort() { + sort_custom<_DefaultComparator>(); + } + + void ordered_insert(T p_val) { + U i; + for (i = 0; i < count; i++) { + if (p_val < data[i]) { + break; + } + } + insert(i, p_val); + } + + operator Vector() const { + Vector ret; + ret.resize(size()); + T *w = ret.ptrw(); + memcpy(w, data, sizeof(T) * count); + return ret; + } + + Vector to_byte_array() const { //useful to pass stuff to gpu or variant + Vector ret; + ret.resize(count * sizeof(T)); + uint8_t *w = ret.ptrw(); + memcpy(w, data, sizeof(T) * count); + return ret; + } + + _FORCE_INLINE_ LocalVector() {} + _FORCE_INLINE_ LocalVector(std::initializer_list p_init) { + reserve(p_init.size()); + for (const T &element : p_init) { + push_back(element); + } + } + _FORCE_INLINE_ LocalVector(const LocalVector &p_from) { + resize(p_from.size()); + for (U i = 0; i < p_from.count; i++) { + data[i] = p_from.data[i]; + } + } + inline void operator=(const LocalVector &p_from) { + resize(p_from.size()); + for (U i = 0; i < p_from.count; i++) { + data[i] = p_from.data[i]; + } + } + inline void operator=(const Vector &p_from) { + resize(p_from.size()); + for (U i = 0; i < count; i++) { + data[i] = p_from[i]; + } + } + + _FORCE_INLINE_ ~LocalVector() { + if (data) { + reset(); + } + } +}; + +template +using TightLocalVector = LocalVector; + +} // namespace godot + +#endif // GODOT_LOCAL_VECTOR_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/pair.hpp b/lib/godot-cpp/include/godot_cpp/templates/pair.hpp new file mode 100644 index 0000000..ed35302 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/pair.hpp @@ -0,0 +1,107 @@ +/**************************************************************************/ +/* pair.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_PAIR_HPP +#define GODOT_PAIR_HPP + +namespace godot { + +template +struct Pair { + F first; + S second; + + Pair() : + first(), + second() { + } + + Pair(F p_first, const S &p_second) : + first(p_first), + second(p_second) { + } +}; + +template +bool operator==(const Pair &pair, const Pair &other) { + return (pair.first == other.first) && (pair.second == other.second); +} + +template +bool operator!=(const Pair &pair, const Pair &other) { + return (pair.first != other.first) || (pair.second != other.second); +} + +template +struct PairSort { + bool operator()(const Pair &A, const Pair &B) const { + if (A.first != B.first) { + return A.first < B.first; + } + return A.second < B.second; + } +}; + +template +struct KeyValue { + const K key; + V value; + + void operator=(const KeyValue &p_kv) = delete; + _FORCE_INLINE_ KeyValue(const KeyValue &p_kv) : + key(p_kv.key), + value(p_kv.value) { + } + _FORCE_INLINE_ KeyValue(const K &p_key, const V &p_value) : + key(p_key), + value(p_value) { + } +}; + +template +bool operator==(const KeyValue &pair, const KeyValue &other) { + return (pair.key == other.key) && (pair.value == other.value); +} + +template +bool operator!=(const KeyValue &pair, const KeyValue &other) { + return (pair.key != other.key) || (pair.value != other.value); +} + +template +struct KeyValueSort { + bool operator()(const KeyValue &A, const KeyValue &B) const { + return A.key < B.key; + } +}; + +} // namespace godot + +#endif // GODOT_PAIR_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/rb_map.hpp b/lib/godot-cpp/include/godot_cpp/templates/rb_map.hpp new file mode 100644 index 0000000..cce1e91 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/rb_map.hpp @@ -0,0 +1,765 @@ +/**************************************************************************/ +/* rb_map.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_RB_MAP_HPP +#define GODOT_RB_MAP_HPP + +#include +#include +#include + +namespace godot { + +// based on the very nice implementation of rb-trees by: +// https://web.archive.org/web/20120507164830/https://web.mit.edu/~emin/www/source_code/red_black_tree/index.html + +template , class A = DefaultAllocator> +class RBMap { + enum Color { + RED, + BLACK + }; + struct _Data; + +public: + class Element { + private: + friend class RBMap; + int color = RED; + Element *right = nullptr; + Element *left = nullptr; + Element *parent = nullptr; + Element *_next = nullptr; + Element *_prev = nullptr; + KeyValue _data; + + public: + KeyValue &key_value() { return _data; } + const KeyValue &key_value() const { return _data; } + + const Element *next() const { + return _next; + } + Element *next() { + return _next; + } + const Element *prev() const { + return _prev; + } + Element *prev() { + return _prev; + } + const K &key() const { + return _data.key; + } + V &value() { + return _data.value; + } + const V &value() const { + return _data.value; + } + V &get() { + return _data.value; + } + const V &get() const { + return _data.value; + } + Element(const KeyValue &p_data) : + _data(p_data) {} + }; + + typedef KeyValue ValueType; + + struct Iterator { + _FORCE_INLINE_ KeyValue &operator*() const { + return E->key_value(); + } + _FORCE_INLINE_ KeyValue *operator->() const { return &E->key_value(); } + _FORCE_INLINE_ Iterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + explicit operator bool() const { + return E != nullptr; + } + Iterator(Element *p_E) { E = p_E; } + Iterator() {} + Iterator(const Iterator &p_it) { E = p_it.E; } + + private: + Element *E = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const KeyValue &operator*() const { + return E->key_value(); + } + _FORCE_INLINE_ const KeyValue *operator->() const { return &E->key_value(); } + _FORCE_INLINE_ ConstIterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; } + explicit operator bool() const { + return E != nullptr; + } + ConstIterator(const Element *p_E) { E = p_E; } + ConstIterator() {} + ConstIterator(const ConstIterator &p_it) { E = p_it.E; } + + private: + const Element *E = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(front()); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(nullptr); + } + +#if 0 + //to use when replacing find() + _FORCE_INLINE_ Iterator find(const K &p_key) { + return Iterator(find(p_key)); + } +#endif + _FORCE_INLINE_ void remove(const Iterator &p_iter) { + return erase(p_iter.E); + } + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(front()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(nullptr); + } + +#if 0 + //to use when replacing find() + _FORCE_INLINE_ ConstIterator find(const K &p_key) const { + return ConstIterator(find(p_key)); + } +#endif +private: + struct _Data { + Element *_root = nullptr; + Element *_nil = nullptr; + int size_cache = 0; + + _FORCE_INLINE_ _Data() { +#ifdef GLOBALNIL_DISABLED + _nil = memnew_allocator(Element, A); + _nil->parent = _nil->left = _nil->right = _nil; + _nil->color = BLACK; +#else + _nil = (Element *)&_GlobalNilClass::_nil; +#endif + } + + void _create_root() { + _root = memnew_allocator(Element(KeyValue(K(), V())), A); + _root->parent = _root->left = _root->right = _nil; + _root->color = BLACK; + } + + void _free_root() { + if (_root) { + memdelete_allocator(_root); + _root = nullptr; + } + } + + ~_Data() { + _free_root(); + +#ifdef GLOBALNIL_DISABLED + memdelete_allocator(_nil); +#endif + } + }; + + _Data _data; + + inline void _set_color(Element *p_node, int p_color) { + ERR_FAIL_COND(p_node == _data._nil && p_color == RED); + p_node->color = p_color; + } + + inline void _rotate_left(Element *p_node) { + Element *r = p_node->right; + p_node->right = r->left; + if (r->left != _data._nil) { + r->left->parent = p_node; + } + r->parent = p_node->parent; + if (p_node == p_node->parent->left) { + p_node->parent->left = r; + } else { + p_node->parent->right = r; + } + + r->left = p_node; + p_node->parent = r; + } + + inline void _rotate_right(Element *p_node) { + Element *l = p_node->left; + p_node->left = l->right; + if (l->right != _data._nil) { + l->right->parent = p_node; + } + l->parent = p_node->parent; + if (p_node == p_node->parent->right) { + p_node->parent->right = l; + } else { + p_node->parent->left = l; + } + + l->right = p_node; + p_node->parent = l; + } + + inline Element *_successor(Element *p_node) const { + Element *node = p_node; + + if (node->right != _data._nil) { + node = node->right; + while (node->left != _data._nil) { /* returns the minimum of the right subtree of node */ + node = node->left; + } + return node; + } else { + while (node == node->parent->right) { + node = node->parent; + } + + if (node->parent == _data._root) { + return nullptr; // No successor, as p_node = last node + } + return node->parent; + } + } + + inline Element *_predecessor(Element *p_node) const { + Element *node = p_node; + + if (node->left != _data._nil) { + node = node->left; + while (node->right != _data._nil) { /* returns the minimum of the left subtree of node */ + node = node->right; + } + return node; + } else { + while (node == node->parent->left) { + node = node->parent; + } + + if (node == _data._root) { + return nullptr; // No predecessor, as p_node = first node + } + return node->parent; + } + } + + Element *_find(const K &p_key) const { + Element *node = _data._root->left; + C less; + + while (node != _data._nil) { + if (less(p_key, node->_data.key)) { + node = node->left; + } else if (less(node->_data.key, p_key)) { + node = node->right; + } else { + return node; // found + } + } + + return nullptr; + } + + Element *_find_closest(const K &p_key) const { + Element *node = _data._root->left; + Element *prev = nullptr; + C less; + + while (node != _data._nil) { + prev = node; + + if (less(p_key, node->_data.key)) { + node = node->left; + } else if (less(node->_data.key, p_key)) { + node = node->right; + } else { + return node; // found + } + } + + if (prev == nullptr) { + return nullptr; // tree empty + } + + if (less(p_key, prev->_data.key)) { + prev = prev->_prev; + } + + return prev; + } + + void _insert_rb_fix(Element *p_new_node) { + Element *node = p_new_node; + Element *nparent = node->parent; + Element *ngrand_parent = nullptr; + + while (nparent->color == RED) { + ngrand_parent = nparent->parent; + + if (nparent == ngrand_parent->left) { + if (ngrand_parent->right->color == RED) { + _set_color(nparent, BLACK); + _set_color(ngrand_parent->right, BLACK); + _set_color(ngrand_parent, RED); + node = ngrand_parent; + nparent = node->parent; + } else { + if (node == nparent->right) { + _rotate_left(nparent); + node = nparent; + nparent = node->parent; + } + _set_color(nparent, BLACK); + _set_color(ngrand_parent, RED); + _rotate_right(ngrand_parent); + } + } else { + if (ngrand_parent->left->color == RED) { + _set_color(nparent, BLACK); + _set_color(ngrand_parent->left, BLACK); + _set_color(ngrand_parent, RED); + node = ngrand_parent; + nparent = node->parent; + } else { + if (node == nparent->left) { + _rotate_right(nparent); + node = nparent; + nparent = node->parent; + } + _set_color(nparent, BLACK); + _set_color(ngrand_parent, RED); + _rotate_left(ngrand_parent); + } + } + } + + _set_color(_data._root->left, BLACK); + } + + Element *_insert(const K &p_key, const V &p_value) { + Element *new_parent = _data._root; + Element *node = _data._root->left; + C less; + + while (node != _data._nil) { + new_parent = node; + + if (less(p_key, node->_data.key)) { + node = node->left; + } else if (less(node->_data.key, p_key)) { + node = node->right; + } else { + node->_data.value = p_value; + return node; // Return existing node with new value + } + } + + typedef KeyValue KV; + Element *new_node = memnew_allocator(Element(KV(p_key, p_value)), A); + new_node->parent = new_parent; + new_node->right = _data._nil; + new_node->left = _data._nil; + + // new_node->data=_data; + + if (new_parent == _data._root || less(p_key, new_parent->_data.key)) { + new_parent->left = new_node; + } else { + new_parent->right = new_node; + } + + new_node->_next = _successor(new_node); + new_node->_prev = _predecessor(new_node); + if (new_node->_next) { + new_node->_next->_prev = new_node; + } + if (new_node->_prev) { + new_node->_prev->_next = new_node; + } + + _data.size_cache++; + _insert_rb_fix(new_node); + return new_node; + } + + void _erase_fix_rb(Element *p_node) { + Element *root = _data._root->left; + Element *node = _data._nil; + Element *sibling = p_node; + Element *parent = sibling->parent; + + while (node != root) { // If red node found, will exit at a break + if (sibling->color == RED) { + _set_color(sibling, BLACK); + _set_color(parent, RED); + if (sibling == parent->right) { + sibling = sibling->left; + _rotate_left(parent); + } else { + sibling = sibling->right; + _rotate_right(parent); + } + } + if ((sibling->left->color == BLACK) && (sibling->right->color == BLACK)) { + _set_color(sibling, RED); + if (parent->color == RED) { + _set_color(parent, BLACK); + break; + } else { // loop: haven't found any red nodes yet + node = parent; + parent = node->parent; + sibling = (node == parent->left) ? parent->right : parent->left; + } + } else { + if (sibling == parent->right) { + if (sibling->right->color == BLACK) { + _set_color(sibling->left, BLACK); + _set_color(sibling, RED); + _rotate_right(sibling); + sibling = sibling->parent; + } + _set_color(sibling, parent->color); + _set_color(parent, BLACK); + _set_color(sibling->right, BLACK); + _rotate_left(parent); + break; + } else { + if (sibling->left->color == BLACK) { + _set_color(sibling->right, BLACK); + _set_color(sibling, RED); + _rotate_left(sibling); + sibling = sibling->parent; + } + + _set_color(sibling, parent->color); + _set_color(parent, BLACK); + _set_color(sibling->left, BLACK); + _rotate_right(parent); + break; + } + } + } + + ERR_FAIL_COND(_data._nil->color != BLACK); + } + + void _erase(Element *p_node) { + Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; + Element *node = (rp->left == _data._nil) ? rp->right : rp->left; + + Element *sibling = nullptr; + if (rp == rp->parent->left) { + rp->parent->left = node; + sibling = rp->parent->right; + } else { + rp->parent->right = node; + sibling = rp->parent->left; + } + + if (node->color == RED) { + node->parent = rp->parent; + _set_color(node, BLACK); + } else if (rp->color == BLACK && rp->parent != _data._root) { + _erase_fix_rb(sibling); + } + + if (rp != p_node) { + ERR_FAIL_COND(rp == _data._nil); + + rp->left = p_node->left; + rp->right = p_node->right; + rp->parent = p_node->parent; + rp->color = p_node->color; + if (p_node->left != _data._nil) { + p_node->left->parent = rp; + } + if (p_node->right != _data._nil) { + p_node->right->parent = rp; + } + + if (p_node == p_node->parent->left) { + p_node->parent->left = rp; + } else { + p_node->parent->right = rp; + } + } + + if (p_node->_next) { + p_node->_next->_prev = p_node->_prev; + } + if (p_node->_prev) { + p_node->_prev->_next = p_node->_next; + } + + memdelete_allocator(p_node); + _data.size_cache--; + ERR_FAIL_COND(_data._nil->color == RED); + } + + void _calculate_depth(Element *p_element, int &max_d, int d) const { + if (p_element == _data._nil) { + return; + } + + _calculate_depth(p_element->left, max_d, d + 1); + _calculate_depth(p_element->right, max_d, d + 1); + + if (d > max_d) { + max_d = d; + } + } + + void _cleanup_tree(Element *p_element) { + if (p_element == _data._nil) { + return; + } + + _cleanup_tree(p_element->left); + _cleanup_tree(p_element->right); + memdelete_allocator(p_element); + } + + void _copy_from(const RBMap &p_map) { + clear(); + // not the fastest way, but safeset to write. + for (Element *I = p_map.front(); I; I = I->next()) { + insert(I->key(), I->value()); + } + } + +public: + const Element *find(const K &p_key) const { + if (!_data._root) { + return nullptr; + } + + const Element *res = _find(p_key); + return res; + } + + Element *find(const K &p_key) { + if (!_data._root) { + return nullptr; + } + + Element *res = _find(p_key); + return res; + } + + const Element *find_closest(const K &p_key) const { + if (!_data._root) { + return nullptr; + } + + const Element *res = _find_closest(p_key); + return res; + } + + Element *find_closest(const K &p_key) { + if (!_data._root) { + return nullptr; + } + + Element *res = _find_closest(p_key); + return res; + } + + bool has(const K &p_key) const { + return find(p_key) != nullptr; + } + + Element *insert(const K &p_key, const V &p_value) { + if (!_data._root) { + _data._create_root(); + } + return _insert(p_key, p_value); + } + + void erase(Element *p_element) { + if (!_data._root || !p_element) { + return; + } + + _erase(p_element); + if (_data.size_cache == 0 && _data._root) { + _data._free_root(); + } + } + + bool erase(const K &p_key) { + if (!_data._root) { + return false; + } + + Element *e = find(p_key); + if (!e) { + return false; + } + + _erase(e); + if (_data.size_cache == 0 && _data._root) { + _data._free_root(); + } + return true; + } + + const V &operator[](const K &p_key) const { + CRASH_COND(!_data._root); + const Element *e = find(p_key); + CRASH_COND(!e); + return e->_data.value; + } + + V &operator[](const K &p_key) { + if (!_data._root) { + _data._create_root(); + } + + Element *e = find(p_key); + if (!e) { + e = insert(p_key, V()); + } + + return e->_data.value; + } + + Element *front() const { + if (!_data._root) { + return nullptr; + } + + Element *e = _data._root->left; + if (e == _data._nil) { + return nullptr; + } + + while (e->left != _data._nil) { + e = e->left; + } + + return e; + } + + Element *back() const { + if (!_data._root) { + return nullptr; + } + + Element *e = _data._root->left; + if (e == _data._nil) { + return nullptr; + } + + while (e->right != _data._nil) { + e = e->right; + } + + return e; + } + + inline bool is_empty() const { + return _data.size_cache == 0; + } + inline int size() const { + return _data.size_cache; + } + + int calculate_depth() const { + // used for debug mostly + if (!_data._root) { + return 0; + } + + int max_d = 0; + _calculate_depth(_data._root->left, max_d, 0); + return max_d; + } + + void clear() { + if (!_data._root) { + return; + } + + _cleanup_tree(_data._root->left); + _data._root->left = _data._nil; + _data.size_cache = 0; + _data._free_root(); + } + + void operator=(const RBMap &p_map) { + _copy_from(p_map); + } + + RBMap(const RBMap &p_map) { + _copy_from(p_map); + } + + _FORCE_INLINE_ RBMap() {} + + ~RBMap() { + clear(); + } +}; + +} // namespace godot + +#endif // GODOT_RB_MAP_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/rb_set.hpp b/lib/godot-cpp/include/godot_cpp/templates/rb_set.hpp new file mode 100644 index 0000000..c803f81 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/rb_set.hpp @@ -0,0 +1,714 @@ +/**************************************************************************/ +/* rb_set.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_RB_SET_HPP +#define GODOT_RB_SET_HPP + +#include + +// based on the very nice implementation of rb-trees by: +// https://web.archive.org/web/20120507164830/https://web.mit.edu/~emin/www/source_code/red_black_tree/index.html + +namespace godot { + +template , class A = DefaultAllocator> +class RBSet { + enum Color { + RED, + BLACK + }; + struct _Data; + +public: + class Element { + private: + friend class RBSet; + int color = RED; + Element *right = nullptr; + Element *left = nullptr; + Element *parent = nullptr; + Element *_next = nullptr; + Element *_prev = nullptr; + T value; + //_Data *data; + + public: + const Element *next() const { + return _next; + } + Element *next() { + return _next; + } + const Element *prev() const { + return _prev; + } + Element *prev() { + return _prev; + } + T &get() { + return value; + } + const T &get() const { + return value; + } + Element() {} + }; + + typedef T ValueType; + + struct Iterator { + _FORCE_INLINE_ T &operator*() const { + return E->get(); + } + _FORCE_INLINE_ T *operator->() const { return &E->get(); } + _FORCE_INLINE_ Iterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + + explicit operator bool() const { return E != nullptr; } + Iterator(Element *p_E) { E = p_E; } + Iterator() {} + Iterator(const Iterator &p_it) { E = p_it.E; } + + private: + Element *E = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const T &operator*() const { + return E->get(); + } + _FORCE_INLINE_ const T *operator->() const { return &E->get(); } + _FORCE_INLINE_ ConstIterator &operator++() { + E = E->next(); + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + E = E->prev(); + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; } + + _FORCE_INLINE_ ConstIterator(const Element *p_E) { E = p_E; } + _FORCE_INLINE_ ConstIterator() {} + _FORCE_INLINE_ ConstIterator(const ConstIterator &p_it) { E = p_it.E; } + + explicit operator bool() const { return E != nullptr; } + + private: + const Element *E = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(front()); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(nullptr); + } + +#if 0 + //to use when replacing find() + _FORCE_INLINE_ Iterator find(const K &p_key) { + return Iterator(find(p_key)); + } +#endif + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(front()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(nullptr); + } + +#if 0 + //to use when replacing find() + _FORCE_INLINE_ ConstIterator find(const K &p_key) const { + return ConstIterator(find(p_key)); + } +#endif +private: + struct _Data { + Element *_root = nullptr; + Element *_nil = nullptr; + int size_cache = 0; + + _FORCE_INLINE_ _Data() { +#ifdef GLOBALNIL_DISABLED + _nil = memnew_allocator(Element, A); + _nil->parent = _nil->left = _nil->right = _nil; + _nil->color = BLACK; +#else + _nil = (Element *)&_GlobalNilClass::_nil; +#endif + } + + void _create_root() { + _root = memnew_allocator(Element, A); + _root->parent = _root->left = _root->right = _nil; + _root->color = BLACK; + } + + void _free_root() { + if (_root) { + memdelete_allocator(_root); + _root = nullptr; + } + } + + ~_Data() { + _free_root(); + +#ifdef GLOBALNIL_DISABLED + memdelete_allocator(_nil); +#endif + } + }; + + _Data _data; + + inline void _set_color(Element *p_node, int p_color) { + ERR_FAIL_COND(p_node == _data._nil && p_color == RED); + p_node->color = p_color; + } + + inline void _rotate_left(Element *p_node) { + Element *r = p_node->right; + p_node->right = r->left; + if (r->left != _data._nil) { + r->left->parent = p_node; + } + r->parent = p_node->parent; + if (p_node == p_node->parent->left) { + p_node->parent->left = r; + } else { + p_node->parent->right = r; + } + + r->left = p_node; + p_node->parent = r; + } + + inline void _rotate_right(Element *p_node) { + Element *l = p_node->left; + p_node->left = l->right; + if (l->right != _data._nil) { + l->right->parent = p_node; + } + l->parent = p_node->parent; + if (p_node == p_node->parent->right) { + p_node->parent->right = l; + } else { + p_node->parent->left = l; + } + + l->right = p_node; + p_node->parent = l; + } + + inline Element *_successor(Element *p_node) const { + Element *node = p_node; + + if (node->right != _data._nil) { + node = node->right; + while (node->left != _data._nil) { /* returns the minimum of the right subtree of node */ + node = node->left; + } + return node; + } else { + while (node == node->parent->right) { + node = node->parent; + } + + if (node->parent == _data._root) { + return nullptr; // No successor, as p_node = last node + } + return node->parent; + } + } + + inline Element *_predecessor(Element *p_node) const { + Element *node = p_node; + + if (node->left != _data._nil) { + node = node->left; + while (node->right != _data._nil) { /* returns the minimum of the left subtree of node */ + node = node->right; + } + return node; + } else { + while (node == node->parent->left) { + node = node->parent; + } + + if (node == _data._root) { + return nullptr; // No predecessor, as p_node = first node. + } + return node->parent; + } + } + + Element *_find(const T &p_value) const { + Element *node = _data._root->left; + C less; + + while (node != _data._nil) { + if (less(p_value, node->value)) { + node = node->left; + } else if (less(node->value, p_value)) { + node = node->right; + } else { + return node; // found + } + } + + return nullptr; + } + + Element *_lower_bound(const T &p_value) const { + Element *node = _data._root->left; + Element *prev = nullptr; + C less; + + while (node != _data._nil) { + prev = node; + + if (less(p_value, node->value)) { + node = node->left; + } else if (less(node->value, p_value)) { + node = node->right; + } else { + return node; // found + } + } + + if (prev == nullptr) { + return nullptr; // tree empty + } + + if (less(prev->value, p_value)) { + prev = prev->_next; + } + + return prev; + } + + void _insert_rb_fix(Element *p_new_node) { + Element *node = p_new_node; + Element *nparent = node->parent; + Element *ngrand_parent = nullptr; + + while (nparent->color == RED) { + ngrand_parent = nparent->parent; + + if (nparent == ngrand_parent->left) { + if (ngrand_parent->right->color == RED) { + _set_color(nparent, BLACK); + _set_color(ngrand_parent->right, BLACK); + _set_color(ngrand_parent, RED); + node = ngrand_parent; + nparent = node->parent; + } else { + if (node == nparent->right) { + _rotate_left(nparent); + node = nparent; + nparent = node->parent; + } + _set_color(nparent, BLACK); + _set_color(ngrand_parent, RED); + _rotate_right(ngrand_parent); + } + } else { + if (ngrand_parent->left->color == RED) { + _set_color(nparent, BLACK); + _set_color(ngrand_parent->left, BLACK); + _set_color(ngrand_parent, RED); + node = ngrand_parent; + nparent = node->parent; + } else { + if (node == nparent->left) { + _rotate_right(nparent); + node = nparent; + nparent = node->parent; + } + _set_color(nparent, BLACK); + _set_color(ngrand_parent, RED); + _rotate_left(ngrand_parent); + } + } + } + + _set_color(_data._root->left, BLACK); + } + + Element *_insert(const T &p_value) { + Element *new_parent = _data._root; + Element *node = _data._root->left; + C less; + + while (node != _data._nil) { + new_parent = node; + + if (less(p_value, node->value)) { + node = node->left; + } else if (less(node->value, p_value)) { + node = node->right; + } else { + return node; // Return existing node + } + } + + Element *new_node = memnew_allocator(Element, A); + new_node->parent = new_parent; + new_node->right = _data._nil; + new_node->left = _data._nil; + new_node->value = p_value; + // new_node->data=_data; + + if (new_parent == _data._root || less(p_value, new_parent->value)) { + new_parent->left = new_node; + } else { + new_parent->right = new_node; + } + + new_node->_next = _successor(new_node); + new_node->_prev = _predecessor(new_node); + if (new_node->_next) { + new_node->_next->_prev = new_node; + } + if (new_node->_prev) { + new_node->_prev->_next = new_node; + } + + _data.size_cache++; + _insert_rb_fix(new_node); + return new_node; + } + + void _erase_fix_rb(Element *p_node) { + Element *root = _data._root->left; + Element *node = _data._nil; + Element *sibling = p_node; + Element *parent = sibling->parent; + + while (node != root) { // If red node found, will exit at a break + if (sibling->color == RED) { + _set_color(sibling, BLACK); + _set_color(parent, RED); + if (sibling == parent->right) { + sibling = sibling->left; + _rotate_left(parent); + } else { + sibling = sibling->right; + _rotate_right(parent); + } + } + if ((sibling->left->color == BLACK) && (sibling->right->color == BLACK)) { + _set_color(sibling, RED); + if (parent->color == RED) { + _set_color(parent, BLACK); + break; + } else { // loop: haven't found any red nodes yet + node = parent; + parent = node->parent; + sibling = (node == parent->left) ? parent->right : parent->left; + } + } else { + if (sibling == parent->right) { + if (sibling->right->color == BLACK) { + _set_color(sibling->left, BLACK); + _set_color(sibling, RED); + _rotate_right(sibling); + sibling = sibling->parent; + } + _set_color(sibling, parent->color); + _set_color(parent, BLACK); + _set_color(sibling->right, BLACK); + _rotate_left(parent); + break; + } else { + if (sibling->left->color == BLACK) { + _set_color(sibling->right, BLACK); + _set_color(sibling, RED); + _rotate_left(sibling); + sibling = sibling->parent; + } + + _set_color(sibling, parent->color); + _set_color(parent, BLACK); + _set_color(sibling->left, BLACK); + _rotate_right(parent); + break; + } + } + } + + ERR_FAIL_COND(_data._nil->color != BLACK); + } + + void _erase(Element *p_node) { + Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; + Element *node = (rp->left == _data._nil) ? rp->right : rp->left; + + Element *sibling = nullptr; + if (rp == rp->parent->left) { + rp->parent->left = node; + sibling = rp->parent->right; + } else { + rp->parent->right = node; + sibling = rp->parent->left; + } + + if (node->color == RED) { + node->parent = rp->parent; + _set_color(node, BLACK); + } else if (rp->color == BLACK && rp->parent != _data._root) { + _erase_fix_rb(sibling); + } + + if (rp != p_node) { + ERR_FAIL_COND(rp == _data._nil); + + rp->left = p_node->left; + rp->right = p_node->right; + rp->parent = p_node->parent; + rp->color = p_node->color; + if (p_node->left != _data._nil) { + p_node->left->parent = rp; + } + if (p_node->right != _data._nil) { + p_node->right->parent = rp; + } + + if (p_node == p_node->parent->left) { + p_node->parent->left = rp; + } else { + p_node->parent->right = rp; + } + } + + if (p_node->_next) { + p_node->_next->_prev = p_node->_prev; + } + if (p_node->_prev) { + p_node->_prev->_next = p_node->_next; + } + + memdelete_allocator(p_node); + _data.size_cache--; + ERR_FAIL_COND(_data._nil->color == RED); + } + + void _calculate_depth(Element *p_element, int &max_d, int d) const { + if (p_element == _data._nil) { + return; + } + + _calculate_depth(p_element->left, max_d, d + 1); + _calculate_depth(p_element->right, max_d, d + 1); + + if (d > max_d) { + max_d = d; + } + } + + void _cleanup_tree(Element *p_element) { + if (p_element == _data._nil) { + return; + } + + _cleanup_tree(p_element->left); + _cleanup_tree(p_element->right); + memdelete_allocator(p_element); + } + + void _copy_from(const RBSet &p_set) { + clear(); + // not the fastest way, but safeset to write. + for (Element *I = p_set.front(); I; I = I->next()) { + insert(I->get()); + } + } + +public: + const Element *find(const T &p_value) const { + if (!_data._root) { + return nullptr; + } + + const Element *res = _find(p_value); + return res; + } + + Element *find(const T &p_value) { + if (!_data._root) { + return nullptr; + } + + Element *res = _find(p_value); + return res; + } + + Element *lower_bound(const T &p_value) const { + if (!_data._root) { + return nullptr; + } + return _lower_bound(p_value); + } + + bool has(const T &p_value) const { + return find(p_value) != nullptr; + } + + Element *insert(const T &p_value) { + if (!_data._root) { + _data._create_root(); + } + return _insert(p_value); + } + + void erase(Element *p_element) { + if (!_data._root || !p_element) { + return; + } + + _erase(p_element); + if (_data.size_cache == 0 && _data._root) { + _data._free_root(); + } + } + + bool erase(const T &p_value) { + if (!_data._root) { + return false; + } + + Element *e = find(p_value); + if (!e) { + return false; + } + + _erase(e); + if (_data.size_cache == 0 && _data._root) { + _data._free_root(); + } + return true; + } + + Element *front() const { + if (!_data._root) { + return nullptr; + } + + Element *e = _data._root->left; + if (e == _data._nil) { + return nullptr; + } + + while (e->left != _data._nil) { + e = e->left; + } + + return e; + } + + Element *back() const { + if (!_data._root) { + return nullptr; + } + + Element *e = _data._root->left; + if (e == _data._nil) { + return nullptr; + } + + while (e->right != _data._nil) { + e = e->right; + } + + return e; + } + + inline bool is_empty() const { + return _data.size_cache == 0; + } + inline int size() const { + return _data.size_cache; + } + + int calculate_depth() const { + // used for debug mostly + if (!_data._root) { + return 0; + } + + int max_d = 0; + _calculate_depth(_data._root->left, max_d, 0); + return max_d; + } + + void clear() { + if (!_data._root) { + return; + } + + _cleanup_tree(_data._root->left); + _data._root->left = _data._nil; + _data.size_cache = 0; + _data._free_root(); + } + + void operator=(const RBSet &p_set) { + _copy_from(p_set); + } + + RBSet(const RBSet &p_set) { + _copy_from(p_set); + } + + _FORCE_INLINE_ RBSet() {} + + ~RBSet() { + clear(); + } +}; + +} // namespace godot + +#endif // GODOT_RB_SET_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/rid_owner.hpp b/lib/godot-cpp/include/godot_cpp/templates/rid_owner.hpp new file mode 100644 index 0000000..93a8356 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/rid_owner.hpp @@ -0,0 +1,465 @@ +/**************************************************************************/ +/* rid_owner.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_RID_OWNER_HPP +#define GODOT_RID_OWNER_HPP + +#include +#include +#include +#include +#include + +#include +#include + +namespace godot { + +template +class RID_Alloc { + T **chunks = nullptr; + uint32_t **free_list_chunks = nullptr; + uint32_t **validator_chunks = nullptr; + + uint32_t elements_in_chunk; + uint32_t max_alloc = 0; + uint32_t alloc_count = 0; + + const char *description = nullptr; + + SpinLock spin_lock; + + _FORCE_INLINE_ RID _allocate_rid() { + if (THREAD_SAFE) { + spin_lock.lock(); + } + + if (alloc_count == max_alloc) { + // allocate a new chunk + uint32_t chunk_count = alloc_count == 0 ? 0 : (max_alloc / elements_in_chunk); + + // grow chunks + chunks = (T **)memrealloc(chunks, sizeof(T *) * (chunk_count + 1)); + chunks[chunk_count] = (T *)memalloc(sizeof(T) * elements_in_chunk); // but don't initialize + + // grow validators + validator_chunks = (uint32_t **)memrealloc(validator_chunks, sizeof(uint32_t *) * (chunk_count + 1)); + validator_chunks[chunk_count] = (uint32_t *)memalloc(sizeof(uint32_t) * elements_in_chunk); + // grow free lists + free_list_chunks = (uint32_t **)memrealloc(free_list_chunks, sizeof(uint32_t *) * (chunk_count + 1)); + free_list_chunks[chunk_count] = (uint32_t *)memalloc(sizeof(uint32_t) * elements_in_chunk); + + // initialize + for (uint32_t i = 0; i < elements_in_chunk; i++) { + // Don't initialize chunk. + validator_chunks[chunk_count][i] = 0xFFFFFFFF; + free_list_chunks[chunk_count][i] = alloc_count + i; + } + + max_alloc += elements_in_chunk; + } + + uint32_t free_index = free_list_chunks[alloc_count / elements_in_chunk][alloc_count % elements_in_chunk]; + + uint32_t free_chunk = free_index / elements_in_chunk; + uint32_t free_element = free_index % elements_in_chunk; + + uint32_t validator = (uint32_t)(UtilityFunctions::rid_allocate_id() & 0x7FFFFFFF); + uint64_t id = validator; + id <<= 32; + id |= free_index; + + validator_chunks[free_chunk][free_element] = validator; + + validator_chunks[free_chunk][free_element] |= 0x80000000; // mark uninitialized bit + + alloc_count++; + + if (THREAD_SAFE) { + spin_lock.unlock(); + } + + return UtilityFunctions::rid_from_int64(id); + } + +public: + RID make_rid() { + RID rid = _allocate_rid(); + initialize_rid(rid); + return rid; + } + RID make_rid(const T &p_value) { + RID rid = _allocate_rid(); + initialize_rid(rid, p_value); + return rid; + } + + // allocate but don't initialize, use initialize_rid afterwards + RID allocate_rid() { + return _allocate_rid(); + } + + _FORCE_INLINE_ T *get_or_null(const RID &p_rid, bool p_initialize = false) { + if (p_rid == RID()) { + return nullptr; + } + if (THREAD_SAFE) { + spin_lock.lock(); + } + + uint64_t id = p_rid.get_id(); + uint32_t idx = uint32_t(id & 0xFFFFFFFF); + if (unlikely(idx >= max_alloc)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + return nullptr; + } + + uint32_t idx_chunk = idx / elements_in_chunk; + uint32_t idx_element = idx % elements_in_chunk; + + uint32_t validator = uint32_t(id >> 32); + + if (unlikely(p_initialize)) { + if (unlikely(!(validator_chunks[idx_chunk][idx_element] & 0x80000000))) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + ERR_FAIL_V_MSG(nullptr, "Initializing already initialized RID"); + } + + if (unlikely((validator_chunks[idx_chunk][idx_element] & 0x7FFFFFFF) != validator)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + ERR_FAIL_V_MSG(nullptr, "Attempting to initialize the wrong RID"); + return nullptr; + } + + validator_chunks[idx_chunk][idx_element] &= 0x7FFFFFFF; // initialized + + } else if (unlikely(validator_chunks[idx_chunk][idx_element] != validator)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + if ((validator_chunks[idx_chunk][idx_element] & 0x80000000) && validator_chunks[idx_chunk][idx_element] != 0xFFFFFFFF) { + ERR_FAIL_V_MSG(nullptr, "Attempting to use an uninitialized RID"); + } + return nullptr; + } + + T *ptr = &chunks[idx_chunk][idx_element]; + + if (THREAD_SAFE) { + spin_lock.unlock(); + } + + return ptr; + } + void initialize_rid(RID p_rid) { + T *mem = get_or_null(p_rid, true); + ERR_FAIL_COND(!mem); + memnew_placement(mem, T); + } + void initialize_rid(RID p_rid, const T &p_value) { + T *mem = get_or_null(p_rid, true); + ERR_FAIL_COND(!mem); + memnew_placement(mem, T(p_value)); + } + + _FORCE_INLINE_ bool owns(const RID &p_rid) { + if (THREAD_SAFE) { + spin_lock.lock(); + } + + uint64_t id = p_rid.get_id(); + uint32_t idx = uint32_t(id & 0xFFFFFFFF); + if (unlikely(idx >= max_alloc)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + return false; + } + + uint32_t idx_chunk = idx / elements_in_chunk; + uint32_t idx_element = idx % elements_in_chunk; + + uint32_t validator = uint32_t(id >> 32); + + bool owned = (validator_chunks[idx_chunk][idx_element] & 0x7FFFFFFF) == validator; + + if (THREAD_SAFE) { + spin_lock.unlock(); + } + + return owned; + } + + _FORCE_INLINE_ void free(const RID &p_rid) { + if (THREAD_SAFE) { + spin_lock.lock(); + } + + uint64_t id = p_rid.get_id(); + uint32_t idx = uint32_t(id & 0xFFFFFFFF); + if (unlikely(idx >= max_alloc)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + ERR_FAIL(); + } + + uint32_t idx_chunk = idx / elements_in_chunk; + uint32_t idx_element = idx % elements_in_chunk; + + uint32_t validator = uint32_t(id >> 32); + if (unlikely(validator_chunks[idx_chunk][idx_element] & 0x80000000)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + ERR_FAIL_MSG("Attempted to free an uninitialized or invalid RID"); + } else if (unlikely(validator_chunks[idx_chunk][idx_element] != validator)) { + if (THREAD_SAFE) { + spin_lock.unlock(); + } + ERR_FAIL(); + } + + chunks[idx_chunk][idx_element].~T(); + validator_chunks[idx_chunk][idx_element] = 0xFFFFFFFF; // go invalid + + alloc_count--; + free_list_chunks[alloc_count / elements_in_chunk][alloc_count % elements_in_chunk] = idx; + + if (THREAD_SAFE) { + spin_lock.unlock(); + } + } + + _FORCE_INLINE_ uint32_t get_rid_count() const { + return alloc_count; + } + + void get_owned_list(List *p_owned) { + if (THREAD_SAFE) { + spin_lock.lock(); + } + for (size_t i = 0; i < max_alloc; i++) { + uint64_t validator = validator_chunks[i / elements_in_chunk][i % elements_in_chunk]; + if (validator != 0xFFFFFFFF) { + p_owned->push_back(UtilityFunctions::rid_from_int64((validator << 32) | i)); + } + } + if (THREAD_SAFE) { + spin_lock.unlock(); + } + } + + // used for fast iteration in the elements or RIDs + void fill_owned_buffer(RID *p_rid_buffer) { + if (THREAD_SAFE) { + spin_lock.lock(); + } + uint32_t idx = 0; + for (size_t i = 0; i < max_alloc; i++) { + uint64_t validator = validator_chunks[i / elements_in_chunk][i % elements_in_chunk]; + if (validator != 0xFFFFFFFF) { + p_rid_buffer[idx] = UtilityFunctions::rid_from_int64((validator << 32) | i); + idx++; + } + } + if (THREAD_SAFE) { + spin_lock.unlock(); + } + } + + void set_description(const char *p_descrption) { + description = p_descrption; + } + + RID_Alloc(uint32_t p_target_chunk_byte_size = 65536) { + elements_in_chunk = sizeof(T) > p_target_chunk_byte_size ? 1 : (p_target_chunk_byte_size / sizeof(T)); + } + + ~RID_Alloc() { + if (alloc_count) { + if (description) { + printf("ERROR: %d RID allocations of type '%s' were leaked at exit.", alloc_count, description); + } else { +#ifdef NO_SAFE_CAST + printf("ERROR: %d RID allocations of type 'unknown' were leaked at exit.", alloc_count); +#else + printf("ERROR: %d RID allocations of type '%s' were leaked at exit.", alloc_count, typeid(T).name()); +#endif + } + + for (size_t i = 0; i < max_alloc; i++) { + uint64_t validator = validator_chunks[i / elements_in_chunk][i % elements_in_chunk]; + if (validator & 0x80000000) { + continue; // uninitialized + } + if (validator != 0xFFFFFFFF) { + chunks[i / elements_in_chunk][i % elements_in_chunk].~T(); + } + } + } + + uint32_t chunk_count = max_alloc / elements_in_chunk; + for (uint32_t i = 0; i < chunk_count; i++) { + memfree(chunks[i]); + memfree(validator_chunks[i]); + memfree(free_list_chunks[i]); + } + + if (chunks) { + memfree(chunks); + memfree(free_list_chunks); + memfree(validator_chunks); + } + } +}; + +template +class RID_PtrOwner { + RID_Alloc alloc; + +public: + _FORCE_INLINE_ RID make_rid(T *p_ptr) { + return alloc.make_rid(p_ptr); + } + + _FORCE_INLINE_ RID allocate_rid() { + return alloc.allocate_rid(); + } + + _FORCE_INLINE_ void initialize_rid(RID p_rid, T *p_ptr) { + alloc.initialize_rid(p_rid, p_ptr); + } + + _FORCE_INLINE_ T *get_or_null(const RID &p_rid) { + T **ptr = alloc.get_or_null(p_rid); + if (unlikely(!ptr)) { + return nullptr; + } + return *ptr; + } + + _FORCE_INLINE_ void replace(const RID &p_rid, T *p_new_ptr) { + T **ptr = alloc.get_or_null(p_rid); + ERR_FAIL_COND(!ptr); + *ptr = p_new_ptr; + } + + _FORCE_INLINE_ bool owns(const RID &p_rid) { + return alloc.owns(p_rid); + } + + _FORCE_INLINE_ void free(const RID &p_rid) { + alloc.free(p_rid); + } + + _FORCE_INLINE_ uint32_t get_rid_count() const { + return alloc.get_rid_count(); + } + + _FORCE_INLINE_ void get_owned_list(List *p_owned) { + return alloc.get_owned_list(p_owned); + } + + void fill_owned_buffer(RID *p_rid_buffer) { + alloc.fill_owned_buffer(p_rid_buffer); + } + + void set_description(const char *p_descrption) { + alloc.set_description(p_descrption); + } + + RID_PtrOwner(uint32_t p_target_chunk_byte_size = 65536) : + alloc(p_target_chunk_byte_size) {} +}; + +template +class RID_Owner { + RID_Alloc alloc; + +public: + _FORCE_INLINE_ RID make_rid() { + return alloc.make_rid(); + } + _FORCE_INLINE_ RID make_rid(const T &p_ptr) { + return alloc.make_rid(p_ptr); + } + + _FORCE_INLINE_ RID allocate_rid() { + return alloc.allocate_rid(); + } + + _FORCE_INLINE_ void initialize_rid(RID p_rid) { + alloc.initialize_rid(p_rid); + } + + _FORCE_INLINE_ void initialize_rid(RID p_rid, const T &p_ptr) { + alloc.initialize_rid(p_rid, p_ptr); + } + + _FORCE_INLINE_ T *get_or_null(const RID &p_rid) { + return alloc.get_or_null(p_rid); + } + + _FORCE_INLINE_ bool owns(const RID &p_rid) { + return alloc.owns(p_rid); + } + + _FORCE_INLINE_ void free(const RID &p_rid) { + alloc.free(p_rid); + } + + _FORCE_INLINE_ uint32_t get_rid_count() const { + return alloc.get_rid_count(); + } + + _FORCE_INLINE_ void get_owned_list(List *p_owned) { + return alloc.get_owned_list(p_owned); + } + void fill_owned_buffer(RID *p_rid_buffer) { + alloc.fill_owned_buffer(p_rid_buffer); + } + + void set_description(const char *p_descrption) { + alloc.set_description(p_descrption); + } + RID_Owner(uint32_t p_target_chunk_byte_size = 65536) : + alloc(p_target_chunk_byte_size) {} +}; + +} // namespace godot + +#endif // GODOT_RID_OWNER_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/safe_refcount.hpp b/lib/godot-cpp/include/godot_cpp/templates/safe_refcount.hpp new file mode 100644 index 0000000..f865041 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/safe_refcount.hpp @@ -0,0 +1,326 @@ +/**************************************************************************/ +/* safe_refcount.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_SAFE_REFCOUNT_HPP +#define GODOT_SAFE_REFCOUNT_HPP + +#if !defined(NO_THREADS) + +#include +#include + +namespace godot { + +// Design goals for these classes: +// - No automatic conversions or arithmetic operators, +// to keep explicit the use of atomics everywhere. +// - Using acquire-release semantics, even to set the first value. +// The first value may be set relaxedly in many cases, but adding the distinction +// between relaxed and unrelaxed operation to the interface would make it needlessly +// flexible. There's negligible waste in having release semantics for the initial +// value and, as an important benefit, you can be sure the value is properly synchronized +// even with threads that are already running. + +template +class SafeNumeric { + std::atomic value; + + static_assert(std::atomic::is_always_lock_free); + +public: + _ALWAYS_INLINE_ void set(T p_value) { + value.store(p_value, std::memory_order_release); + } + + _ALWAYS_INLINE_ T get() const { + return value.load(std::memory_order_acquire); + } + + _ALWAYS_INLINE_ T increment() { + return value.fetch_add(1, std::memory_order_acq_rel) + 1; + } + + // Returns the original value instead of the new one + _ALWAYS_INLINE_ T postincrement() { + return value.fetch_add(1, std::memory_order_acq_rel); + } + + _ALWAYS_INLINE_ T decrement() { + return value.fetch_sub(1, std::memory_order_acq_rel) - 1; + } + + // Returns the original value instead of the new one + _ALWAYS_INLINE_ T postdecrement() { + return value.fetch_sub(1, std::memory_order_acq_rel); + } + + _ALWAYS_INLINE_ T add(T p_value) { + return value.fetch_add(p_value, std::memory_order_acq_rel) + p_value; + } + + // Returns the original value instead of the new one + _ALWAYS_INLINE_ T postadd(T p_value) { + return value.fetch_add(p_value, std::memory_order_acq_rel); + } + + _ALWAYS_INLINE_ T sub(T p_value) { + return value.fetch_sub(p_value, std::memory_order_acq_rel) - p_value; + } + + // Returns the original value instead of the new one + _ALWAYS_INLINE_ T postsub(T p_value) { + return value.fetch_sub(p_value, std::memory_order_acq_rel); + } + + _ALWAYS_INLINE_ T exchange_if_greater(T p_value) { + while (true) { + T tmp = value.load(std::memory_order_acquire); + if (tmp >= p_value) { + return tmp; // already greater, or equal + } + if (value.compare_exchange_weak(tmp, p_value, std::memory_order_release)) { + return p_value; + } + } + } + + _ALWAYS_INLINE_ T conditional_increment() { + while (true) { + T c = value.load(std::memory_order_acquire); + if (c == 0) { + return 0; + } + if (value.compare_exchange_weak(c, c + 1, std::memory_order_release)) { + return c + 1; + } + } + } + + _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) { + set(p_value); + } +}; + +class SafeFlag { + std::atomic_bool flag; + + static_assert(std::atomic_bool::is_always_lock_free); + +public: + _ALWAYS_INLINE_ bool is_set() const { + return flag.load(std::memory_order_acquire); + } + + _ALWAYS_INLINE_ void set() { + flag.store(true, std::memory_order_release); + } + + _ALWAYS_INLINE_ void clear() { + flag.store(false, std::memory_order_release); + } + + _ALWAYS_INLINE_ void set_to(bool p_value) { + flag.store(p_value, std::memory_order_release); + } + + _ALWAYS_INLINE_ explicit SafeFlag(bool p_value = false) { + set_to(p_value); + } +}; + +class SafeRefCount { + SafeNumeric count; + +public: + _ALWAYS_INLINE_ bool ref() { // true on success + return count.conditional_increment() != 0; + } + + _ALWAYS_INLINE_ uint32_t refval() { // none-zero on success + return count.conditional_increment(); + } + + _ALWAYS_INLINE_ bool unref() { // true if must be disposed of + return count.decrement() == 0; + } + + _ALWAYS_INLINE_ uint32_t unrefval() { // 0 if must be disposed of + return count.decrement(); + } + + _ALWAYS_INLINE_ uint32_t get() const { + return count.get(); + } + + _ALWAYS_INLINE_ void init(uint32_t p_value = 1) { + count.set(p_value); + } +}; + +#else + +template +class SafeNumeric { +protected: + T value; + +public: + _ALWAYS_INLINE_ void set(T p_value) { + value = p_value; + } + + _ALWAYS_INLINE_ T get() const { + return value; + } + + _ALWAYS_INLINE_ T increment() { + return ++value; + } + + _ALWAYS_INLINE_ T postincrement() { + return value++; + } + + _ALWAYS_INLINE_ T decrement() { + return --value; + } + + _ALWAYS_INLINE_ T postdecrement() { + return value--; + } + + _ALWAYS_INLINE_ T add(T p_value) { + return value += p_value; + } + + _ALWAYS_INLINE_ T postadd(T p_value) { + T old = value; + value += p_value; + return old; + } + + _ALWAYS_INLINE_ T sub(T p_value) { + return value -= p_value; + } + + _ALWAYS_INLINE_ T postsub(T p_value) { + T old = value; + value -= p_value; + return old; + } + + _ALWAYS_INLINE_ T exchange_if_greater(T p_value) { + if (value < p_value) { + value = p_value; + } + return value; + } + + _ALWAYS_INLINE_ T conditional_increment() { + if (value == 0) { + return 0; + } else { + return ++value; + } + } + + _ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast(0)) : + value(p_value) { + } +}; + +class SafeFlag { +protected: + bool flag; + +public: + _ALWAYS_INLINE_ bool is_set() const { + return flag; + } + + _ALWAYS_INLINE_ void set() { + flag = true; + } + + _ALWAYS_INLINE_ void clear() { + flag = false; + } + + _ALWAYS_INLINE_ void set_to(bool p_value) { + flag = p_value; + } + + _ALWAYS_INLINE_ explicit SafeFlag(bool p_value = false) : + flag(p_value) {} +}; + +class SafeRefCount { + uint32_t count = 0; + +public: + _ALWAYS_INLINE_ bool ref() { // true on success + if (count != 0) { + ++count; + return true; + } else { + return false; + } + } + + _ALWAYS_INLINE_ uint32_t refval() { // none-zero on success + if (count != 0) { + return ++count; + } else { + return 0; + } + } + + _ALWAYS_INLINE_ bool unref() { // true if must be disposed of + return --count == 0; + } + + _ALWAYS_INLINE_ uint32_t unrefval() { // 0 if must be disposed of + return --count; + } + + _ALWAYS_INLINE_ uint32_t get() const { + return count; + } + + _ALWAYS_INLINE_ void init(uint32_t p_value = 1) { + count = p_value; + } +}; + +#endif + +} // namespace godot + +#endif // GODOT_SAFE_REFCOUNT_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/search_array.hpp b/lib/godot-cpp/include/godot_cpp/templates/search_array.hpp new file mode 100644 index 0000000..ce2713b --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/search_array.hpp @@ -0,0 +1,71 @@ +/**************************************************************************/ +/* search_array.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_SEARCH_ARRAY_HPP +#define GODOT_SEARCH_ARRAY_HPP + +#include + +namespace godot { + +template > +class SearchArray { +public: + Comparator compare; + + inline int bisect(const T *p_array, int p_len, const T &p_value, bool p_before) const { + int lo = 0; + int hi = p_len; + if (p_before) { + while (lo < hi) { + const int mid = (lo + hi) / 2; + if (compare(p_array[mid], p_value)) { + lo = mid + 1; + } else { + hi = mid; + } + } + } else { + while (lo < hi) { + const int mid = (lo + hi) / 2; + if (compare(p_value, p_array[mid])) { + hi = mid; + } else { + lo = mid + 1; + } + } + } + return lo; + } +}; + +} // namespace godot + +#endif // GODOT_SEARCH_ARRAY_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/self_list.hpp b/lib/godot-cpp/include/godot_cpp/templates/self_list.hpp new file mode 100644 index 0000000..3bb13a3 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/self_list.hpp @@ -0,0 +1,143 @@ +/**************************************************************************/ +/* self_list.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_SELF_LIST_HPP +#define GODOT_SELF_LIST_HPP + +#include +#include + +namespace godot { + +template +class SelfList { +public: + class List { + SelfList *_first = nullptr; + SelfList *_last = nullptr; + + public: + void add(SelfList *p_elem) { + ERR_FAIL_COND(p_elem->_root); + + p_elem->_root = this; + p_elem->_next = _first; + p_elem->_prev = nullptr; + + if (_first) { + _first->_prev = p_elem; + + } else { + _last = p_elem; + } + + _first = p_elem; + } + + void add_last(SelfList *p_elem) { + ERR_FAIL_COND(p_elem->_root); + + p_elem->_root = this; + p_elem->_next = nullptr; + p_elem->_prev = _last; + + if (_last) { + _last->_next = p_elem; + + } else { + _first = p_elem; + } + + _last = p_elem; + } + + void remove(SelfList *p_elem) { + ERR_FAIL_COND(p_elem->_root != this); + if (p_elem->_next) { + p_elem->_next->_prev = p_elem->_prev; + } + + if (p_elem->_prev) { + p_elem->_prev->_next = p_elem->_next; + } + + if (_first == p_elem) { + _first = p_elem->_next; + } + + if (_last == p_elem) { + _last = p_elem->_prev; + } + + p_elem->_next = nullptr; + p_elem->_prev = nullptr; + p_elem->_root = nullptr; + } + + _FORCE_INLINE_ SelfList *first() { return _first; } + _FORCE_INLINE_ const SelfList *first() const { return _first; } + + _FORCE_INLINE_ List() {} + _FORCE_INLINE_ ~List() { ERR_FAIL_COND(_first != nullptr); } + }; + +private: + List *_root = nullptr; + T *_self = nullptr; + SelfList *_next = nullptr; + SelfList *_prev = nullptr; + +public: + _FORCE_INLINE_ bool in_list() const { return _root; } + _FORCE_INLINE_ void remove_from_list() { + if (_root) { + _root->remove(this); + } + } + _FORCE_INLINE_ SelfList *next() { return _next; } + _FORCE_INLINE_ SelfList *prev() { return _prev; } + _FORCE_INLINE_ const SelfList *next() const { return _next; } + _FORCE_INLINE_ const SelfList *prev() const { return _prev; } + _FORCE_INLINE_ T *self() const { return _self; } + + _FORCE_INLINE_ SelfList(T *p_self) { + _self = p_self; + } + + _FORCE_INLINE_ ~SelfList() { + if (_root) { + _root->remove(this); + } + } +}; + +} // namespace godot + +#endif // GODOT_SELF_LIST_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/sort_array.hpp b/lib/godot-cpp/include/godot_cpp/templates/sort_array.hpp new file mode 100644 index 0000000..5dda578 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/sort_array.hpp @@ -0,0 +1,323 @@ +/**************************************************************************/ +/* sort_array.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_SORT_ARRAY_HPP +#define GODOT_SORT_ARRAY_HPP + +#include + +namespace godot { + +#define ERR_BAD_COMPARE(cond) \ + if (unlikely(cond)) { \ + ERR_PRINT("bad comparison function; sorting will be broken"); \ + break; \ + } + +template +struct _DefaultComparator { + _FORCE_INLINE_ bool operator()(const T &a, const T &b) const { return (a < b); } +}; + +#ifdef DEBUG_ENABLED +#define SORT_ARRAY_VALIDATE_ENABLED true +#else +#define SORT_ARRAY_VALIDATE_ENABLED false +#endif + +template , bool Validate = SORT_ARRAY_VALIDATE_ENABLED> +class SortArray { + enum { + INTROSORT_THRESHOLD = 16 + }; + +public: + Comparator compare; + + inline const T &median_of_3(const T &a, const T &b, const T &c) const { + if (compare(a, b)) { + if (compare(b, c)) { + return b; + } else if (compare(a, c)) { + return c; + } else { + return a; + } + } else if (compare(a, c)) { + return a; + } else if (compare(b, c)) { + return c; + } else { + return b; + } + } + + inline int bitlog(int n) const { + int k; + for (k = 0; n != 1; n >>= 1) { + ++k; + } + return k; + } + + /* Heap / Heapsort functions */ + + inline void push_heap(int p_first, int p_hole_idx, int p_top_index, T p_value, T *p_array) const { + int parent = (p_hole_idx - 1) / 2; + while (p_hole_idx > p_top_index && compare(p_array[p_first + parent], p_value)) { + p_array[p_first + p_hole_idx] = p_array[p_first + parent]; + p_hole_idx = parent; + parent = (p_hole_idx - 1) / 2; + } + p_array[p_first + p_hole_idx] = p_value; + } + + inline void pop_heap(int p_first, int p_last, int p_result, T p_value, T *p_array) const { + p_array[p_result] = p_array[p_first]; + adjust_heap(p_first, 0, p_last - p_first, p_value, p_array); + } + inline void pop_heap(int p_first, int p_last, T *p_array) const { + pop_heap(p_first, p_last - 1, p_last - 1, p_array[p_last - 1], p_array); + } + + inline void adjust_heap(int p_first, int p_hole_idx, int p_len, T p_value, T *p_array) const { + int top_index = p_hole_idx; + int second_child = 2 * p_hole_idx + 2; + + while (second_child < p_len) { + if (compare(p_array[p_first + second_child], p_array[p_first + (second_child - 1)])) { + second_child--; + } + + p_array[p_first + p_hole_idx] = p_array[p_first + second_child]; + p_hole_idx = second_child; + second_child = 2 * (second_child + 1); + } + + if (second_child == p_len) { + p_array[p_first + p_hole_idx] = p_array[p_first + (second_child - 1)]; + p_hole_idx = second_child - 1; + } + push_heap(p_first, p_hole_idx, top_index, p_value, p_array); + } + + inline void sort_heap(int p_first, int p_last, T *p_array) const { + while (p_last - p_first > 1) { + pop_heap(p_first, p_last--, p_array); + } + } + + inline void make_heap(int p_first, int p_last, T *p_array) const { + if (p_last - p_first < 2) { + return; + } + int len = p_last - p_first; + int parent = (len - 2) / 2; + + while (true) { + adjust_heap(p_first, parent, len, p_array[p_first + parent], p_array); + if (parent == 0) { + return; + } + parent--; + } + } + + inline void partial_sort(int p_first, int p_last, int p_middle, T *p_array) const { + make_heap(p_first, p_middle, p_array); + for (int i = p_middle; i < p_last; i++) { + if (compare(p_array[i], p_array[p_first])) { + pop_heap(p_first, p_middle, i, p_array[i], p_array); + } + } + sort_heap(p_first, p_middle, p_array); + } + + inline void partial_select(int p_first, int p_last, int p_middle, T *p_array) const { + make_heap(p_first, p_middle, p_array); + for (int i = p_middle; i < p_last; i++) { + if (compare(p_array[i], p_array[p_first])) { + pop_heap(p_first, p_middle, i, p_array[i], p_array); + } + } + } + + inline int partitioner(int p_first, int p_last, T p_pivot, T *p_array) const { + const int unmodified_first = p_first; + const int unmodified_last = p_last; + + while (true) { + while (compare(p_array[p_first], p_pivot)) { + if (Validate) { + ERR_BAD_COMPARE(p_first == unmodified_last - 1); + } + p_first++; + } + p_last--; + while (compare(p_pivot, p_array[p_last])) { + if (Validate) { + ERR_BAD_COMPARE(p_last == unmodified_first); + } + p_last--; + } + + if (!(p_first < p_last)) { + return p_first; + } + + SWAP(p_array[p_first], p_array[p_last]); + p_first++; + } + } + + inline void introsort(int p_first, int p_last, T *p_array, int p_max_depth) const { + while (p_last - p_first > INTROSORT_THRESHOLD) { + if (p_max_depth == 0) { + partial_sort(p_first, p_last, p_last, p_array); + return; + } + + p_max_depth--; + + int cut = partitioner( + p_first, + p_last, + median_of_3( + p_array[p_first], + p_array[p_first + (p_last - p_first) / 2], + p_array[p_last - 1]), + p_array); + + introsort(cut, p_last, p_array, p_max_depth); + p_last = cut; + } + } + + inline void introselect(int p_first, int p_nth, int p_last, T *p_array, int p_max_depth) const { + while (p_last - p_first > 3) { + if (p_max_depth == 0) { + partial_select(p_first, p_nth + 1, p_last, p_array); + SWAP(p_first, p_nth); + return; + } + + p_max_depth--; + + int cut = partitioner( + p_first, + p_last, + median_of_3( + p_array[p_first], + p_array[p_first + (p_last - p_first) / 2], + p_array[p_last - 1]), + p_array); + + if (cut <= p_nth) { + p_first = cut; + } else { + p_last = cut; + } + } + + insertion_sort(p_first, p_last, p_array); + } + + inline void unguarded_linear_insert(int p_last, T p_value, T *p_array) const { + int next = p_last - 1; + while (compare(p_value, p_array[next])) { + if (Validate) { + ERR_BAD_COMPARE(next == 0); + } + p_array[p_last] = p_array[next]; + p_last = next; + next--; + } + p_array[p_last] = p_value; + } + + inline void linear_insert(int p_first, int p_last, T *p_array) const { + T val = p_array[p_last]; + if (compare(val, p_array[p_first])) { + for (int i = p_last; i > p_first; i--) { + p_array[i] = p_array[i - 1]; + } + + p_array[p_first] = val; + } else { + unguarded_linear_insert(p_last, val, p_array); + } + } + + inline void insertion_sort(int p_first, int p_last, T *p_array) const { + if (p_first == p_last) { + return; + } + for (int i = p_first + 1; i != p_last; i++) { + linear_insert(p_first, i, p_array); + } + } + + inline void unguarded_insertion_sort(int p_first, int p_last, T *p_array) const { + for (int i = p_first; i != p_last; i++) { + unguarded_linear_insert(i, p_array[i], p_array); + } + } + + inline void final_insertion_sort(int p_first, int p_last, T *p_array) const { + if (p_last - p_first > INTROSORT_THRESHOLD) { + insertion_sort(p_first, p_first + INTROSORT_THRESHOLD, p_array); + unguarded_insertion_sort(p_first + INTROSORT_THRESHOLD, p_last, p_array); + } else { + insertion_sort(p_first, p_last, p_array); + } + } + + inline void sort_range(int p_first, int p_last, T *p_array) const { + if (p_first != p_last) { + introsort(p_first, p_last, p_array, bitlog(p_last - p_first) * 2); + final_insertion_sort(p_first, p_last, p_array); + } + } + + inline void sort(T *p_array, int p_len) const { + sort_range(0, p_len, p_array); + } + + inline void nth_element(int p_first, int p_last, int p_nth, T *p_array) const { + if (p_first == p_last || p_nth == p_last) { + return; + } + introselect(p_first, p_nth, p_last, p_array, bitlog(p_last - p_first) * 2); + } +}; + +} // namespace godot + +#endif // GODOT_SORT_ARRAY_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/spin_lock.hpp b/lib/godot-cpp/include/godot_cpp/templates/spin_lock.hpp new file mode 100644 index 0000000..530d545 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/spin_lock.hpp @@ -0,0 +1,54 @@ +/**************************************************************************/ +/* spin_lock.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_SPIN_LOCK_HPP +#define GODOT_SPIN_LOCK_HPP + +#include + +namespace godot { + +class SpinLock { + std::atomic_flag locked = ATOMIC_FLAG_INIT; + +public: + _ALWAYS_INLINE_ void lock() { + while (locked.test_and_set(std::memory_order_acquire)) { + ; + } + } + _ALWAYS_INLINE_ void unlock() { + locked.clear(std::memory_order_release); + } +}; + +} // namespace godot + +#endif // GODOT_SPIN_LOCK_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/thread_work_pool.hpp b/lib/godot-cpp/include/godot_cpp/templates/thread_work_pool.hpp new file mode 100644 index 0000000..85245b4 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/thread_work_pool.hpp @@ -0,0 +1,205 @@ +/**************************************************************************/ +/* thread_work_pool.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_THREAD_WORK_POOL_HPP +#define GODOT_THREAD_WORK_POOL_HPP + +#include +#include +#include +#include + +#include + +#include + +namespace godot { + +class ThreadWorkPool { + std::atomic index; + + struct BaseWork { + std::atomic *index = nullptr; + uint32_t max_elements = 0; + virtual void work() = 0; + virtual ~BaseWork() = default; + }; + + template + struct Work : public BaseWork { + C *instance; + M method; + U userdata; + virtual void work() { + while (true) { + uint32_t work_index = index->fetch_add(1, std::memory_order_relaxed); + if (work_index >= max_elements) { + break; + } + (instance->*method)(work_index, userdata); + } + } + }; + + struct ThreadData { + std::thread thread; + Semaphore start; + Semaphore completed; + std::atomic exit; + BaseWork *work; + }; + + ThreadData *threads = nullptr; + uint32_t thread_count = 0; + uint32_t threads_working = 0; + BaseWork *current_work = nullptr; + + static void _thread_function(void *p_user) { + ThreadData *thread = static_cast(p_user); + while (true) { + thread->start.wait(); + if (thread->exit.load()) { + break; + } + thread->work->work(); + thread->completed.post(); + } + } + +public: + template + void begin_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { + ERR_FAIL_COND(!threads); // never initialized + ERR_FAIL_COND(current_work != nullptr); + + index.store(0, std::memory_order_release); + + Work *w = new (Work); + w->instance = p_instance; + w->userdata = p_userdata; + w->method = p_method; + w->index = &index; + w->max_elements = p_elements; + + current_work = w; + + threads_working = Math::min(p_elements, thread_count); + + for (uint32_t i = 0; i < threads_working; i++) { + threads[i].work = w; + threads[i].start.post(); + } + } + + bool is_working() const { + return current_work != nullptr; + } + + bool is_done_dispatching() const { + ERR_FAIL_COND_V(current_work == nullptr, true); + return index.load(std::memory_order_acquire) >= current_work->max_elements; + } + + uint32_t get_work_index() const { + ERR_FAIL_COND_V(current_work == nullptr, 0); + uint32_t idx = index.load(std::memory_order_acquire); + return Math::min(idx, current_work->max_elements); + } + + void end_work() { + ERR_FAIL_COND(current_work == nullptr); + for (uint32_t i = 0; i < threads_working; i++) { + threads[i].completed.wait(); + threads[i].work = nullptr; + } + + threads_working = 0; + delete current_work; + current_work = nullptr; + } + + template + void do_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { + switch (p_elements) { + case 0: + // Nothing to do, so do nothing. + break; + case 1: + // No value in pushing the work to another thread if it's a single job + // and we're going to wait for it to finish. Just run it right here. + (p_instance->*p_method)(0, p_userdata); + break; + default: + // Multiple jobs to do; commence threaded business. + begin_work(p_elements, p_instance, p_method, p_userdata); + end_work(); + } + } + + _FORCE_INLINE_ int get_thread_count() const { return thread_count; } + void init(int p_thread_count = -1) { + ERR_FAIL_COND(threads != nullptr); + if (p_thread_count < 0) { + p_thread_count = OS::get_singleton()->get_processor_count(); + } + + thread_count = p_thread_count; + threads = new ThreadData[thread_count]; + + for (uint32_t i = 0; i < thread_count; i++) { + threads[i].exit.store(false); + threads[i].thread = std::thread(&ThreadWorkPool::_thread_function, &threads[i]); + } + } + + void finish() { + if (threads == nullptr) { + return; + } + + for (uint32_t i = 0; i < thread_count; i++) { + threads[i].exit.store(true); + threads[i].start.post(); + } + for (uint32_t i = 0; i < thread_count; i++) { + threads[i].thread.join(); + } + + delete[] (threads); + threads = nullptr; + } + ~ThreadWorkPool() { + finish(); + } +}; + +} // namespace godot + +#endif // GODOT_THREAD_WORK_POOL_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/vector.hpp b/lib/godot-cpp/include/godot_cpp/templates/vector.hpp new file mode 100644 index 0000000..f5626af --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/vector.hpp @@ -0,0 +1,321 @@ +/**************************************************************************/ +/* vector.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR_HPP +#define GODOT_VECTOR_HPP + +/** + * @class Vector + * Vector container. Regular Vector Container. Use with care and for smaller arrays when possible. Use Vector for large arrays. + */ + +#include +#include +#include +#include +#include + +#include +#include + +namespace godot { + +template +class VectorWriteProxy { +public: + _FORCE_INLINE_ T &operator[](int p_index) { + CRASH_BAD_INDEX(p_index, ((Vector *)(this))->_cowdata.size()); + + return ((Vector *)(this))->_cowdata.ptrw()[p_index]; + } +}; + +template +class Vector { + friend class VectorWriteProxy; + +public: + VectorWriteProxy write; + +private: + CowData _cowdata; + +public: + bool push_back(T p_elem); + _FORCE_INLINE_ bool append(const T &p_elem) { return push_back(p_elem); } // alias + void fill(T p_elem); + + void remove_at(int p_index) { _cowdata.remove_at(p_index); } + void erase(const T &p_val) { + int idx = find(p_val); + if (idx >= 0) { + remove_at(idx); + } + } + void reverse(); + + _FORCE_INLINE_ T *ptrw() { return _cowdata.ptrw(); } + _FORCE_INLINE_ const T *ptr() const { return _cowdata.ptr(); } + _FORCE_INLINE_ void clear() { resize(0); } + _FORCE_INLINE_ bool is_empty() const { return _cowdata.is_empty(); } + + _FORCE_INLINE_ T get(int p_index) { return _cowdata.get(p_index); } + _FORCE_INLINE_ const T &get(int p_index) const { return _cowdata.get(p_index); } + _FORCE_INLINE_ void set(int p_index, const T &p_elem) { _cowdata.set(p_index, p_elem); } + _FORCE_INLINE_ int size() const { return _cowdata.size(); } + Error resize(int p_size) { return _cowdata.resize(p_size); } + _FORCE_INLINE_ const T &operator[](int p_index) const { return _cowdata.get(p_index); } + Error insert(int p_pos, T p_val) { return _cowdata.insert(p_pos, p_val); } + int find(const T &p_val, int p_from = 0) const { return _cowdata.find(p_val, p_from); } + + void append_array(Vector p_other); + + _FORCE_INLINE_ bool has(const T &p_val) const { return find(p_val) != -1; } + + template + void sort_custom() { + int len = _cowdata.size(); + if (len == 0) { + return; + } + + T *data = ptrw(); + SortArray sorter; + sorter.sort(data, len); + } + + void sort() { + sort_custom<_DefaultComparator>(); + } + + int bsearch(const T &p_value, bool p_before) { + SearchArray search; + return search.bisect(ptrw(), size(), p_value, p_before); + } + + Vector duplicate() { + return *this; + } + + void ordered_insert(const T &p_val) { + int i; + for (i = 0; i < _cowdata.size(); i++) { + if (p_val < operator[](i)) { + break; + } + } + insert(i, p_val); + } + + inline void operator=(const Vector &p_from) { + _cowdata._ref(p_from._cowdata); + } + + Vector to_byte_array() const { + Vector ret; + ret.resize(size() * sizeof(T)); + memcpy(ret.ptrw(), ptr(), sizeof(T) * size()); + return ret; + } + + Vector slice(int p_begin, int p_end = INT_MAX) const { + Vector result; + + const int s = size(); + + int begin = Math::clamp(p_begin, -s, s); + if (begin < 0) { + begin += s; + } + int end = Math::clamp(p_end, -s, s); + if (end < 0) { + end += s; + } + + ERR_FAIL_COND_V(begin > end, result); + + int result_size = end - begin; + result.resize(result_size); + + const T *const r = ptr(); + T *const w = result.ptrw(); + for (int i = 0; i < result_size; ++i) { + w[i] = r[begin + i]; + } + + return result; + } + + bool operator==(const Vector &p_arr) const { + int s = size(); + if (s != p_arr.size()) { + return false; + } + for (int i = 0; i < s; i++) { + if (operator[](i) != p_arr[i]) { + return false; + } + } + return true; + } + + bool operator!=(const Vector &p_arr) const { + int s = size(); + if (s != p_arr.size()) { + return true; + } + for (int i = 0; i < s; i++) { + if (operator[](i) != p_arr[i]) { + return true; + } + } + return false; + } + + struct Iterator { + _FORCE_INLINE_ T &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ T *operator->() const { return elem_ptr; } + _FORCE_INLINE_ Iterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ Iterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const Iterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return elem_ptr != b.elem_ptr; } + + Iterator(T *p_ptr) { elem_ptr = p_ptr; } + Iterator() {} + Iterator(const Iterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + T *elem_ptr = nullptr; + }; + + struct ConstIterator { + _FORCE_INLINE_ const T &operator*() const { + return *elem_ptr; + } + _FORCE_INLINE_ const T *operator->() const { return elem_ptr; } + _FORCE_INLINE_ ConstIterator &operator++() { + elem_ptr++; + return *this; + } + _FORCE_INLINE_ ConstIterator &operator--() { + elem_ptr--; + return *this; + } + + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return elem_ptr == b.elem_ptr; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return elem_ptr != b.elem_ptr; } + + ConstIterator(const T *p_ptr) { elem_ptr = p_ptr; } + ConstIterator() {} + ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; } + + private: + const T *elem_ptr = nullptr; + }; + + _FORCE_INLINE_ Iterator begin() { + return Iterator(ptrw()); + } + _FORCE_INLINE_ Iterator end() { + return Iterator(ptrw() + size()); + } + + _FORCE_INLINE_ ConstIterator begin() const { + return ConstIterator(ptr()); + } + _FORCE_INLINE_ ConstIterator end() const { + return ConstIterator(ptr() + size()); + } + + _FORCE_INLINE_ Vector() {} + _FORCE_INLINE_ Vector(std::initializer_list p_init) { + Error err = _cowdata.resize(p_init.size()); + ERR_FAIL_COND(err); + + int i = 0; + for (const T &element : p_init) { + _cowdata.set(i++, element); + } + } + _FORCE_INLINE_ Vector(const Vector &p_from) { _cowdata._ref(p_from._cowdata); } + + _FORCE_INLINE_ ~Vector() {} +}; + +template +void Vector::reverse() { + for (int i = 0; i < size() / 2; i++) { + T *p = ptrw(); + SWAP(p[i], p[size() - i - 1]); + } +} + +template +void Vector::append_array(Vector p_other) { + const int ds = p_other.size(); + if (ds == 0) { + return; + } + const int bs = size(); + resize(bs + ds); + for (int i = 0; i < ds; ++i) { + ptrw()[bs + i] = p_other[i]; + } +} + +template +bool Vector::push_back(T p_elem) { + Error err = resize(size() + 1); + ERR_FAIL_COND_V(err, true); + set(size() - 1, p_elem); + + return false; +} + +template +void Vector::fill(T p_elem) { + T *p = ptrw(); + for (int i = 0; i < size(); i++) { + p[i] = p_elem; + } +} + +} // namespace godot + +#endif // GODOT_VECTOR_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/vmap.hpp b/lib/godot-cpp/include/godot_cpp/templates/vmap.hpp new file mode 100644 index 0000000..881ac25 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/vmap.hpp @@ -0,0 +1,204 @@ +/**************************************************************************/ +/* vmap.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VMAP_HPP +#define GODOT_VMAP_HPP + +#include + +namespace godot { + +template +class VMap { +public: + struct Pair { + T key; + V value; + + _FORCE_INLINE_ Pair() {} + + _FORCE_INLINE_ Pair(const T &p_key, const V &p_value) { + key = p_key; + value = p_value; + } + }; + +private: + CowData _cowdata; + + _FORCE_INLINE_ int _find(const T &p_val, bool &r_exact) const { + r_exact = false; + if (_cowdata.is_empty()) { + return 0; + } + + int low = 0; + int high = _cowdata.size() - 1; + const Pair *a = _cowdata.ptr(); + int middle = 0; + +#ifdef DEBUG_ENABLED + if (low > high) { + ERR_PRINT("low > high, this may be a bug"); + } +#endif + while (low <= high) { + middle = (low + high) / 2; + + if (p_val < a[middle].key) { + high = middle - 1; // search low end of array + } else if (a[middle].key < p_val) { + low = middle + 1; // search high end of array + } else { + r_exact = true; + return middle; + } + } + + // return the position where this would be inserted + if (a[middle].key < p_val) { + middle++; + } + return middle; + } + + _FORCE_INLINE_ int _find_exact(const T &p_val) const { + if (_cowdata.is_empty()) { + return -1; + } + + int low = 0; + int high = _cowdata.size() - 1; + int middle; + const Pair *a = _cowdata.ptr(); + + while (low <= high) { + middle = (low + high) / 2; + + if (p_val < a[middle].key) { + high = middle - 1; // search low end of array + } else if (a[middle].key < p_val) { + low = middle + 1; // search high end of array + } else { + return middle; + } + } + + return -1; + } + +public: + int insert(const T &p_key, const V &p_val) { + bool exact; + int pos = _find(p_key, exact); + if (exact) { + _cowdata.get_m(pos).value = p_val; + return pos; + } + _cowdata.insert(pos, Pair(p_key, p_val)); + return pos; + } + + bool has(const T &p_val) const { + return _find_exact(p_val) != -1; + } + + void erase(const T &p_val) { + int pos = _find_exact(p_val); + if (pos < 0) { + return; + } + _cowdata.remove_at(pos); + } + + int find(const T &p_val) const { + return _find_exact(p_val); + } + + int find_nearest(const T &p_val) const { + bool exact; + return _find(p_val, exact); + } + + _FORCE_INLINE_ int size() const { return _cowdata.size(); } + _FORCE_INLINE_ bool is_empty() const { return _cowdata.is_empty(); } + + const Pair *get_array() const { + return _cowdata.ptr(); + } + + Pair *get_array() { + return _cowdata.ptrw(); + } + + const V &getv(int p_index) const { + return _cowdata.get(p_index).value; + } + + V &getv(int p_index) { + return _cowdata.get_m(p_index).value; + } + + const T &getk(int p_index) const { + return _cowdata.get(p_index).key; + } + + T &getk(int p_index) { + return _cowdata.get_m(p_index).key; + } + + inline const V &operator[](const T &p_key) const { + int pos = _find_exact(p_key); + + CRASH_COND(pos < 0); + + return _cowdata.get(pos).value; + } + + inline V &operator[](const T &p_key) { + int pos = _find_exact(p_key); + if (pos < 0) { + pos = insert(p_key, V()); + } + + return _cowdata.get_m(pos).value; + } + + _FORCE_INLINE_ VMap() {} + _FORCE_INLINE_ VMap(const VMap &p_from) { _cowdata._ref(p_from._cowdata); } + + inline void operator=(const VMap &p_from) { + _cowdata._ref(p_from._cowdata); + } +}; + +} // namespace godot + +#endif // GODOT_VMAP_HPP diff --git a/lib/godot-cpp/include/godot_cpp/templates/vset.hpp b/lib/godot-cpp/include/godot_cpp/templates/vset.hpp new file mode 100644 index 0000000..29f0cef --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/templates/vset.hpp @@ -0,0 +1,145 @@ +/**************************************************************************/ +/* vset.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VSET_HPP +#define GODOT_VSET_HPP + +#include + +namespace godot { + +template +class VSet { + Vector _data; + + _FORCE_INLINE_ int _find(const T &p_val, bool &r_exact) const { + r_exact = false; + if (_data.is_empty()) { + return 0; + } + + int low = 0; + int high = _data.size() - 1; + const T *a = &_data[0]; + int middle = 0; + +#ifdef DEBUG_ENABLED + if (low > high) { + ERR_PRINT("low > high, this may be a bug"); + } +#endif + + while (low <= high) { + middle = (low + high) / 2; + + if (p_val < a[middle]) { + high = middle - 1; // search low end of array + } else if (a[middle] < p_val) { + low = middle + 1; // search high end of array + } else { + r_exact = true; + return middle; + } + } + + // return the position where this would be inserted + if (a[middle] < p_val) { + middle++; + } + return middle; + } + + _FORCE_INLINE_ int _find_exact(const T &p_val) const { + if (_data.is_empty()) { + return -1; + } + + int low = 0; + int high = _data.size() - 1; + int middle; + const T *a = &_data[0]; + + while (low <= high) { + middle = (low + high) / 2; + + if (p_val < a[middle]) { + high = middle - 1; // search low end of array + } else if (a[middle] < p_val) { + low = middle + 1; // search high end of array + } else { + return middle; + } + } + + return -1; + } + +public: + void insert(const T &p_val) { + bool exact; + int pos = _find(p_val, exact); + if (exact) { + return; + } + _data.insert(pos, p_val); + } + + bool has(const T &p_val) const { + return _find_exact(p_val) != -1; + } + + void erase(const T &p_val) { + int pos = _find_exact(p_val); + if (pos < 0) { + return; + } + _data.remove_at(pos); + } + + int find(const T &p_val) const { + return _find_exact(p_val); + } + + _FORCE_INLINE_ bool is_empty() const { return _data.is_empty(); } + + _FORCE_INLINE_ int size() const { return _data.size(); } + + inline T &operator[](int p_index) { + return _data.write[p_index]; + } + + inline const T &operator[](int p_index) const { + return _data[p_index]; + } +}; + +} // namespace godot + +#endif // GODOT_VSET_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/aabb.hpp b/lib/godot-cpp/include/godot_cpp/variant/aabb.hpp new file mode 100644 index 0000000..dde392b --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/aabb.hpp @@ -0,0 +1,494 @@ +/**************************************************************************/ +/* aabb.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_AABB_HPP +#define GODOT_AABB_HPP + +#include +#include + +/** + * AABB (Axis Aligned Bounding Box) + * This is implemented by a point (position) and the box size. + */ + +namespace godot { + +class Variant; + +struct _NO_DISCARD_ AABB { + Vector3 position; + Vector3 size; + + real_t get_volume() const; + _FORCE_INLINE_ bool has_volume() const { + return size.x > 0.0f && size.y > 0.0f && size.z > 0.0f; + } + + _FORCE_INLINE_ bool has_surface() const { + return size.x > 0.0f || size.y > 0.0f || size.z > 0.0f; + } + + const Vector3 &get_position() const { return position; } + void set_position(const Vector3 &p_pos) { position = p_pos; } + const Vector3 &get_size() const { return size; } + void set_size(const Vector3 &p_size) { size = p_size; } + + bool operator==(const AABB &p_rval) const; + bool operator!=(const AABB &p_rval) const; + + bool is_equal_approx(const AABB &p_aabb) const; + _FORCE_INLINE_ bool intersects(const AABB &p_aabb) const; /// Both AABBs overlap + _FORCE_INLINE_ bool intersects_inclusive(const AABB &p_aabb) const; /// Both AABBs (or their faces) overlap + _FORCE_INLINE_ bool encloses(const AABB &p_aabb) const; /// p_aabb is completely inside this + + AABB merge(const AABB &p_with) const; + void merge_with(const AABB &p_aabb); ///merge with another AABB + AABB intersection(const AABB &p_aabb) const; ///get box where two intersect, empty if no intersection occurs + bool intersects_segment(const Vector3 &p_from, const Vector3 &p_to, Vector3 *r_clip = nullptr, Vector3 *r_normal = nullptr) const; + bool intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *r_clip = nullptr, Vector3 *r_normal = nullptr) const; + _FORCE_INLINE_ bool smits_intersect_ray(const Vector3 &p_from, const Vector3 &p_dir, real_t t0, real_t t1) const; + + _FORCE_INLINE_ bool intersects_convex_shape(const Plane *p_planes, int p_plane_count, const Vector3 *p_points, int p_point_count) const; + _FORCE_INLINE_ bool inside_convex_shape(const Plane *p_planes, int p_plane_count) const; + bool intersects_plane(const Plane &p_plane) const; + + _FORCE_INLINE_ bool has_point(const Vector3 &p_point) const; + _FORCE_INLINE_ Vector3 get_support(const Vector3 &p_normal) const; + + Vector3 get_longest_axis() const; + int get_longest_axis_index() const; + _FORCE_INLINE_ real_t get_longest_axis_size() const; + + Vector3 get_shortest_axis() const; + int get_shortest_axis_index() const; + _FORCE_INLINE_ real_t get_shortest_axis_size() const; + + AABB grow(real_t p_by) const; + _FORCE_INLINE_ void grow_by(real_t p_amount); + + void get_edge(int p_edge, Vector3 &r_from, Vector3 &r_to) const; + _FORCE_INLINE_ Vector3 get_endpoint(int p_point) const; + + AABB expand(const Vector3 &p_vector) const; + _FORCE_INLINE_ void project_range_in_plane(const Plane &p_plane, real_t &r_min, real_t &r_max) const; + _FORCE_INLINE_ void expand_to(const Vector3 &p_vector); /** expand to contain a point if necessary */ + + _FORCE_INLINE_ AABB abs() const { + return AABB(Vector3(position.x + MIN(size.x, (real_t)0), position.y + MIN(size.y, (real_t)0), position.z + MIN(size.z, (real_t)0)), size.abs()); + } + + Variant intersects_segment_bind(const Vector3 &p_from, const Vector3 &p_to) const; + Variant intersects_ray_bind(const Vector3 &p_from, const Vector3 &p_dir) const; + + _FORCE_INLINE_ void quantize(real_t p_unit); + _FORCE_INLINE_ AABB quantized(real_t p_unit) const; + + _FORCE_INLINE_ void set_end(const Vector3 &p_end) { + size = p_end - position; + } + + _FORCE_INLINE_ Vector3 get_end() const { + return position + size; + } + + _FORCE_INLINE_ Vector3 get_center() const { + return position + (size * 0.5f); + } + + operator String() const; + + _FORCE_INLINE_ AABB() {} + inline AABB(const Vector3 &p_pos, const Vector3 &p_size) : + position(p_pos), + size(p_size) { + } +}; + +inline bool AABB::intersects(const AABB &p_aabb) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + if (position.x >= (p_aabb.position.x + p_aabb.size.x)) { + return false; + } + if ((position.x + size.x) <= p_aabb.position.x) { + return false; + } + if (position.y >= (p_aabb.position.y + p_aabb.size.y)) { + return false; + } + if ((position.y + size.y) <= p_aabb.position.y) { + return false; + } + if (position.z >= (p_aabb.position.z + p_aabb.size.z)) { + return false; + } + if ((position.z + size.z) <= p_aabb.position.z) { + return false; + } + + return true; +} + +inline bool AABB::intersects_inclusive(const AABB &p_aabb) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + if (position.x > (p_aabb.position.x + p_aabb.size.x)) { + return false; + } + if ((position.x + size.x) < p_aabb.position.x) { + return false; + } + if (position.y > (p_aabb.position.y + p_aabb.size.y)) { + return false; + } + if ((position.y + size.y) < p_aabb.position.y) { + return false; + } + if (position.z > (p_aabb.position.z + p_aabb.size.z)) { + return false; + } + if ((position.z + size.z) < p_aabb.position.z) { + return false; + } + + return true; +} + +inline bool AABB::encloses(const AABB &p_aabb) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + Vector3 src_min = position; + Vector3 src_max = position + size; + Vector3 dst_min = p_aabb.position; + Vector3 dst_max = p_aabb.position + p_aabb.size; + + return ( + (src_min.x <= dst_min.x) && + (src_max.x > dst_max.x) && + (src_min.y <= dst_min.y) && + (src_max.y > dst_max.y) && + (src_min.z <= dst_min.z) && + (src_max.z > dst_max.z)); +} + +Vector3 AABB::get_support(const Vector3 &p_normal) const { + Vector3 half_extents = size * 0.5f; + Vector3 ofs = position + half_extents; + + return Vector3( + (p_normal.x > 0) ? half_extents.x : -half_extents.x, + (p_normal.y > 0) ? half_extents.y : -half_extents.y, + (p_normal.z > 0) ? half_extents.z : -half_extents.z) + + ofs; +} + +Vector3 AABB::get_endpoint(int p_point) const { + switch (p_point) { + case 0: + return Vector3(position.x, position.y, position.z); + case 1: + return Vector3(position.x, position.y, position.z + size.z); + case 2: + return Vector3(position.x, position.y + size.y, position.z); + case 3: + return Vector3(position.x, position.y + size.y, position.z + size.z); + case 4: + return Vector3(position.x + size.x, position.y, position.z); + case 5: + return Vector3(position.x + size.x, position.y, position.z + size.z); + case 6: + return Vector3(position.x + size.x, position.y + size.y, position.z); + case 7: + return Vector3(position.x + size.x, position.y + size.y, position.z + size.z); + } + + ERR_FAIL_V(Vector3()); +} + +bool AABB::intersects_convex_shape(const Plane *p_planes, int p_plane_count, const Vector3 *p_points, int p_point_count) const { + Vector3 half_extents = size * 0.5f; + Vector3 ofs = position + half_extents; + + for (int i = 0; i < p_plane_count; i++) { + const Plane &p = p_planes[i]; + Vector3 point( + (p.normal.x > 0) ? -half_extents.x : half_extents.x, + (p.normal.y > 0) ? -half_extents.y : half_extents.y, + (p.normal.z > 0) ? -half_extents.z : half_extents.z); + point += ofs; + if (p.is_point_over(point)) { + return false; + } + } + + // Make sure all points in the shape aren't fully separated from the AABB on + // each axis. + int bad_point_counts_positive[3] = { 0 }; + int bad_point_counts_negative[3] = { 0 }; + + for (int k = 0; k < 3; k++) { + for (int i = 0; i < p_point_count; i++) { + if (p_points[i].coord[k] > ofs.coord[k] + half_extents.coord[k]) { + bad_point_counts_positive[k]++; + } + if (p_points[i].coord[k] < ofs.coord[k] - half_extents.coord[k]) { + bad_point_counts_negative[k]++; + } + } + + if (bad_point_counts_negative[k] == p_point_count) { + return false; + } + if (bad_point_counts_positive[k] == p_point_count) { + return false; + } + } + + return true; +} + +bool AABB::inside_convex_shape(const Plane *p_planes, int p_plane_count) const { + Vector3 half_extents = size * 0.5f; + Vector3 ofs = position + half_extents; + + for (int i = 0; i < p_plane_count; i++) { + const Plane &p = p_planes[i]; + Vector3 point( + (p.normal.x < 0) ? -half_extents.x : half_extents.x, + (p.normal.y < 0) ? -half_extents.y : half_extents.y, + (p.normal.z < 0) ? -half_extents.z : half_extents.z); + point += ofs; + if (p.is_point_over(point)) { + return false; + } + } + + return true; +} + +bool AABB::has_point(const Vector3 &p_point) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + if (p_point.x < position.x) { + return false; + } + if (p_point.y < position.y) { + return false; + } + if (p_point.z < position.z) { + return false; + } + if (p_point.x > position.x + size.x) { + return false; + } + if (p_point.y > position.y + size.y) { + return false; + } + if (p_point.z > position.z + size.z) { + return false; + } + + return true; +} + +inline void AABB::expand_to(const Vector3 &p_vector) { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + Vector3 begin = position; + Vector3 end = position + size; + + if (p_vector.x < begin.x) { + begin.x = p_vector.x; + } + if (p_vector.y < begin.y) { + begin.y = p_vector.y; + } + if (p_vector.z < begin.z) { + begin.z = p_vector.z; + } + + if (p_vector.x > end.x) { + end.x = p_vector.x; + } + if (p_vector.y > end.y) { + end.y = p_vector.y; + } + if (p_vector.z > end.z) { + end.z = p_vector.z; + } + + position = begin; + size = end - begin; +} + +void AABB::project_range_in_plane(const Plane &p_plane, real_t &r_min, real_t &r_max) const { + Vector3 half_extents(size.x * 0.5f, size.y * 0.5f, size.z * 0.5f); + Vector3 center(position.x + half_extents.x, position.y + half_extents.y, position.z + half_extents.z); + + real_t length = p_plane.normal.abs().dot(half_extents); + real_t distance = p_plane.distance_to(center); + r_min = distance - length; + r_max = distance + length; +} + +inline real_t AABB::get_longest_axis_size() const { + real_t max_size = size.x; + + if (size.y > max_size) { + max_size = size.y; + } + + if (size.z > max_size) { + max_size = size.z; + } + + return max_size; +} + +inline real_t AABB::get_shortest_axis_size() const { + real_t max_size = size.x; + + if (size.y < max_size) { + max_size = size.y; + } + + if (size.z < max_size) { + max_size = size.z; + } + + return max_size; +} + +bool AABB::smits_intersect_ray(const Vector3 &p_from, const Vector3 &p_dir, real_t t0, real_t t1) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + real_t divx = 1.0f / p_dir.x; + real_t divy = 1.0f / p_dir.y; + real_t divz = 1.0f / p_dir.z; + + Vector3 upbound = position + size; + real_t tmin, tmax, tymin, tymax, tzmin, tzmax; + if (p_dir.x >= 0) { + tmin = (position.x - p_from.x) * divx; + tmax = (upbound.x - p_from.x) * divx; + } else { + tmin = (upbound.x - p_from.x) * divx; + tmax = (position.x - p_from.x) * divx; + } + if (p_dir.y >= 0) { + tymin = (position.y - p_from.y) * divy; + tymax = (upbound.y - p_from.y) * divy; + } else { + tymin = (upbound.y - p_from.y) * divy; + tymax = (position.y - p_from.y) * divy; + } + if ((tmin > tymax) || (tymin > tmax)) { + return false; + } + if (tymin > tmin) { + tmin = tymin; + } + if (tymax < tmax) { + tmax = tymax; + } + if (p_dir.z >= 0) { + tzmin = (position.z - p_from.z) * divz; + tzmax = (upbound.z - p_from.z) * divz; + } else { + tzmin = (upbound.z - p_from.z) * divz; + tzmax = (position.z - p_from.z) * divz; + } + if ((tmin > tzmax) || (tzmin > tmax)) { + return false; + } + if (tzmin > tmin) { + tmin = tzmin; + } + if (tzmax < tmax) { + tmax = tzmax; + } + return ((tmin < t1) && (tmax > t0)); +} + +void AABB::grow_by(real_t p_amount) { + position.x -= p_amount; + position.y -= p_amount; + position.z -= p_amount; + size.x += 2.0f * p_amount; + size.y += 2.0f * p_amount; + size.z += 2.0f * p_amount; +} + +void AABB::quantize(real_t p_unit) { + size += position; + + position.x -= Math::fposmodp(position.x, p_unit); + position.y -= Math::fposmodp(position.y, p_unit); + position.z -= Math::fposmodp(position.z, p_unit); + + size.x -= Math::fposmodp(size.x, p_unit); + size.y -= Math::fposmodp(size.y, p_unit); + size.z -= Math::fposmodp(size.z, p_unit); + + size.x += p_unit; + size.y += p_unit; + size.z += p_unit; + + size -= position; +} + +AABB AABB::quantized(real_t p_unit) const { + AABB ret = *this; + ret.quantize(p_unit); + return ret; +} + +} // namespace godot + +#endif // GODOT_AABB_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/array_helpers.hpp b/lib/godot-cpp/include/godot_cpp/variant/array_helpers.hpp new file mode 100644 index 0000000..d6d4368 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/array_helpers.hpp @@ -0,0 +1,50 @@ +/**************************************************************************/ +/* array_helpers.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +namespace godot { +namespace helpers { +template +T append_all(T appendable, ValueT value) { + appendable.append(value); + return appendable; +} + +template +T append_all(T appendable, ValueT value, Args... args) { + appendable.append(value); + return append_all(appendable, args...); +} + +template +T append_all(T appendable) { + return appendable; +} +} // namespace helpers +} // namespace godot diff --git a/lib/godot-cpp/include/godot_cpp/variant/basis.hpp b/lib/godot-cpp/include/godot_cpp/variant/basis.hpp new file mode 100644 index 0000000..a365b02 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/basis.hpp @@ -0,0 +1,318 @@ +/**************************************************************************/ +/* basis.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_BASIS_HPP +#define GODOT_BASIS_HPP + +#include +#include +#include + +namespace godot { + +struct _NO_DISCARD_ Basis { + Vector3 rows[3] = { + Vector3(1, 0, 0), + Vector3(0, 1, 0), + Vector3(0, 0, 1) + }; + + _FORCE_INLINE_ const Vector3 &operator[](int axis) const { + return rows[axis]; + } + _FORCE_INLINE_ Vector3 &operator[](int axis) { + return rows[axis]; + } + + void invert(); + void transpose(); + + Basis inverse() const; + Basis transposed() const; + + _FORCE_INLINE_ real_t determinant() const; + + void from_z(const Vector3 &p_z); + + void rotate(const Vector3 &p_axis, real_t p_angle); + Basis rotated(const Vector3 &p_axis, real_t p_angle) const; + + void rotate_local(const Vector3 &p_axis, real_t p_angle); + Basis rotated_local(const Vector3 &p_axis, real_t p_angle) const; + + void rotate(const Vector3 &p_euler, EulerOrder p_order = EULER_ORDER_YXZ); + Basis rotated(const Vector3 &p_euler, EulerOrder p_order = EULER_ORDER_YXZ) const; + + void rotate(const Quaternion &p_quaternion); + Basis rotated(const Quaternion &p_quaternion) const; + + Vector3 get_euler_normalized(EulerOrder p_order = EULER_ORDER_YXZ) const; + void get_rotation_axis_angle(Vector3 &p_axis, real_t &p_angle) const; + void get_rotation_axis_angle_local(Vector3 &p_axis, real_t &p_angle) const; + Quaternion get_rotation_quaternion() const; + + void rotate_to_align(Vector3 p_start_direction, Vector3 p_end_direction); + + Vector3 rotref_posscale_decomposition(Basis &rotref) const; + + Vector3 get_euler(EulerOrder p_order = EULER_ORDER_YXZ) const; + void set_euler(const Vector3 &p_euler, EulerOrder p_order = EULER_ORDER_YXZ); + static Basis from_euler(const Vector3 &p_euler, EulerOrder p_order = EULER_ORDER_YXZ) { + Basis b; + b.set_euler(p_euler, p_order); + return b; + } + + Quaternion get_quaternion() const; + void set_quaternion(const Quaternion &p_quaternion); + + void get_axis_angle(Vector3 &r_axis, real_t &r_angle) const; + void set_axis_angle(const Vector3 &p_axis, real_t p_angle); + + void scale(const Vector3 &p_scale); + Basis scaled(const Vector3 &p_scale) const; + + void scale_local(const Vector3 &p_scale); + Basis scaled_local(const Vector3 &p_scale) const; + + void scale_orthogonal(const Vector3 &p_scale); + Basis scaled_orthogonal(const Vector3 &p_scale) const; + + void make_scale_uniform(); + float get_uniform_scale() const; + + Vector3 get_scale() const; + Vector3 get_scale_abs() const; + Vector3 get_scale_local() const; + + void set_axis_angle_scale(const Vector3 &p_axis, real_t p_angle, const Vector3 &p_scale); + void set_euler_scale(const Vector3 &p_euler, const Vector3 &p_scale, EulerOrder p_order = EULER_ORDER_YXZ); + void set_quaternion_scale(const Quaternion &p_quaternion, const Vector3 &p_scale); + + // transposed dot products + _FORCE_INLINE_ real_t tdotx(const Vector3 &v) const { + return rows[0][0] * v[0] + rows[1][0] * v[1] + rows[2][0] * v[2]; + } + _FORCE_INLINE_ real_t tdoty(const Vector3 &v) const { + return rows[0][1] * v[0] + rows[1][1] * v[1] + rows[2][1] * v[2]; + } + _FORCE_INLINE_ real_t tdotz(const Vector3 &v) const { + return rows[0][2] * v[0] + rows[1][2] * v[1] + rows[2][2] * v[2]; + } + + bool is_equal_approx(const Basis &p_basis) const; + + bool operator==(const Basis &p_matrix) const; + bool operator!=(const Basis &p_matrix) const; + + _FORCE_INLINE_ Vector3 xform(const Vector3 &p_vector) const; + _FORCE_INLINE_ Vector3 xform_inv(const Vector3 &p_vector) const; + _FORCE_INLINE_ void operator*=(const Basis &p_matrix); + _FORCE_INLINE_ Basis operator*(const Basis &p_matrix) const; + _FORCE_INLINE_ void operator+=(const Basis &p_matrix); + _FORCE_INLINE_ Basis operator+(const Basis &p_matrix) const; + _FORCE_INLINE_ void operator-=(const Basis &p_matrix); + _FORCE_INLINE_ Basis operator-(const Basis &p_matrix) const; + _FORCE_INLINE_ void operator*=(const real_t p_val); + _FORCE_INLINE_ Basis operator*(const real_t p_val) const; + + bool is_orthogonal() const; + bool is_diagonal() const; + bool is_rotation() const; + + Basis lerp(const Basis &p_to, const real_t &p_weight) const; + Basis slerp(const Basis &p_to, const real_t &p_weight) const; + void rotate_sh(real_t *p_values); + + operator String() const; + + /* create / set */ + + _FORCE_INLINE_ void set(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz) { + rows[0][0] = xx; + rows[0][1] = xy; + rows[0][2] = xz; + rows[1][0] = yx; + rows[1][1] = yy; + rows[1][2] = yz; + rows[2][0] = zx; + rows[2][1] = zy; + rows[2][2] = zz; + } + _FORCE_INLINE_ void set_columns(const Vector3 &p_x, const Vector3 &p_y, const Vector3 &p_z) { + set_column(0, p_x); + set_column(1, p_y); + set_column(2, p_z); + } + + _FORCE_INLINE_ Vector3 get_column(int p_index) const { + // Get actual basis axis column (we store transposed as rows for performance). + return Vector3(rows[0][p_index], rows[1][p_index], rows[2][p_index]); + } + + _FORCE_INLINE_ void set_column(int p_index, const Vector3 &p_value) { + // Set actual basis axis column (we store transposed as rows for performance). + rows[0][p_index] = p_value.x; + rows[1][p_index] = p_value.y; + rows[2][p_index] = p_value.z; + } + + _FORCE_INLINE_ Vector3 get_main_diagonal() const { + return Vector3(rows[0][0], rows[1][1], rows[2][2]); + } + + _FORCE_INLINE_ void set_zero() { + rows[0].zero(); + rows[1].zero(); + rows[2].zero(); + } + + _FORCE_INLINE_ Basis transpose_xform(const Basis &m) const { + return Basis( + rows[0].x * m[0].x + rows[1].x * m[1].x + rows[2].x * m[2].x, + rows[0].x * m[0].y + rows[1].x * m[1].y + rows[2].x * m[2].y, + rows[0].x * m[0].z + rows[1].x * m[1].z + rows[2].x * m[2].z, + rows[0].y * m[0].x + rows[1].y * m[1].x + rows[2].y * m[2].x, + rows[0].y * m[0].y + rows[1].y * m[1].y + rows[2].y * m[2].y, + rows[0].y * m[0].z + rows[1].y * m[1].z + rows[2].y * m[2].z, + rows[0].z * m[0].x + rows[1].z * m[1].x + rows[2].z * m[2].x, + rows[0].z * m[0].y + rows[1].z * m[1].y + rows[2].z * m[2].y, + rows[0].z * m[0].z + rows[1].z * m[1].z + rows[2].z * m[2].z); + } + Basis(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz) { + set(xx, xy, xz, yx, yy, yz, zx, zy, zz); + } + + void orthonormalize(); + Basis orthonormalized() const; + + void orthogonalize(); + Basis orthogonalized() const; + +#ifdef MATH_CHECKS + bool is_symmetric() const; +#endif + Basis diagonalize(); + + operator Quaternion() const { return get_quaternion(); } + + static Basis looking_at(const Vector3 &p_target, const Vector3 &p_up = Vector3(0, 1, 0)); + + Basis(const Quaternion &p_quaternion) { set_quaternion(p_quaternion); } + Basis(const Quaternion &p_quaternion, const Vector3 &p_scale) { set_quaternion_scale(p_quaternion, p_scale); } + + Basis(const Vector3 &p_axis, real_t p_angle) { set_axis_angle(p_axis, p_angle); } + Basis(const Vector3 &p_axis, real_t p_angle, const Vector3 &p_scale) { set_axis_angle_scale(p_axis, p_angle, p_scale); } + static Basis from_scale(const Vector3 &p_scale); + + _FORCE_INLINE_ Basis(const Vector3 &p_x_axis, const Vector3 &p_y_axis, const Vector3 &p_z_axis) { + set_columns(p_x_axis, p_y_axis, p_z_axis); + } + + _FORCE_INLINE_ Basis() {} + +private: + // Helper method. + void _set_diagonal(const Vector3 &p_diag); +}; + +_FORCE_INLINE_ void Basis::operator*=(const Basis &p_matrix) { + set( + p_matrix.tdotx(rows[0]), p_matrix.tdoty(rows[0]), p_matrix.tdotz(rows[0]), + p_matrix.tdotx(rows[1]), p_matrix.tdoty(rows[1]), p_matrix.tdotz(rows[1]), + p_matrix.tdotx(rows[2]), p_matrix.tdoty(rows[2]), p_matrix.tdotz(rows[2])); +} + +_FORCE_INLINE_ Basis Basis::operator*(const Basis &p_matrix) const { + return Basis( + p_matrix.tdotx(rows[0]), p_matrix.tdoty(rows[0]), p_matrix.tdotz(rows[0]), + p_matrix.tdotx(rows[1]), p_matrix.tdoty(rows[1]), p_matrix.tdotz(rows[1]), + p_matrix.tdotx(rows[2]), p_matrix.tdoty(rows[2]), p_matrix.tdotz(rows[2])); +} + +_FORCE_INLINE_ void Basis::operator+=(const Basis &p_matrix) { + rows[0] += p_matrix.rows[0]; + rows[1] += p_matrix.rows[1]; + rows[2] += p_matrix.rows[2]; +} + +_FORCE_INLINE_ Basis Basis::operator+(const Basis &p_matrix) const { + Basis ret(*this); + ret += p_matrix; + return ret; +} + +_FORCE_INLINE_ void Basis::operator-=(const Basis &p_matrix) { + rows[0] -= p_matrix.rows[0]; + rows[1] -= p_matrix.rows[1]; + rows[2] -= p_matrix.rows[2]; +} + +_FORCE_INLINE_ Basis Basis::operator-(const Basis &p_matrix) const { + Basis ret(*this); + ret -= p_matrix; + return ret; +} + +_FORCE_INLINE_ void Basis::operator*=(const real_t p_val) { + rows[0] *= p_val; + rows[1] *= p_val; + rows[2] *= p_val; +} + +_FORCE_INLINE_ Basis Basis::operator*(const real_t p_val) const { + Basis ret(*this); + ret *= p_val; + return ret; +} + +Vector3 Basis::xform(const Vector3 &p_vector) const { + return Vector3( + rows[0].dot(p_vector), + rows[1].dot(p_vector), + rows[2].dot(p_vector)); +} + +Vector3 Basis::xform_inv(const Vector3 &p_vector) const { + return Vector3( + (rows[0][0] * p_vector.x) + (rows[1][0] * p_vector.y) + (rows[2][0] * p_vector.z), + (rows[0][1] * p_vector.x) + (rows[1][1] * p_vector.y) + (rows[2][1] * p_vector.z), + (rows[0][2] * p_vector.x) + (rows[1][2] * p_vector.y) + (rows[2][2] * p_vector.z)); +} + +real_t Basis::determinant() const { + return rows[0][0] * (rows[1][1] * rows[2][2] - rows[2][1] * rows[1][2]) - + rows[1][0] * (rows[0][1] * rows[2][2] - rows[2][1] * rows[0][2]) + + rows[2][0] * (rows[0][1] * rows[1][2] - rows[1][1] * rows[0][2]); +} + +} // namespace godot + +#endif // GODOT_BASIS_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/char_string.hpp b/lib/godot-cpp/include/godot_cpp/variant/char_string.hpp new file mode 100644 index 0000000..fa58bbd --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/char_string.hpp @@ -0,0 +1,113 @@ +/**************************************************************************/ +/* char_string.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_CHAR_STRING_HPP +#define GODOT_CHAR_STRING_HPP + +#include +#include + +namespace godot { + +class CharString { + friend class String; + + const char *_data = nullptr; + int _length = 0; + + CharString(const char *str, int length); + +public: + int length() const; + const char *get_data() const; + + CharString(CharString &&p_str); + void operator=(CharString &&p_str); + CharString() {} + ~CharString(); +}; + +class Char16String { + friend class String; + + const char16_t *_data = nullptr; + int _length = 0; + + Char16String(const char16_t *str, int length); + +public: + int length() const; + const char16_t *get_data() const; + + Char16String(Char16String &&p_str); + void operator=(Char16String &&p_str); + Char16String() {} + ~Char16String(); +}; + +class Char32String { + friend class String; + + const char32_t *_data = nullptr; + int _length = 0; + + Char32String(const char32_t *str, int length); + +public: + int length() const; + const char32_t *get_data() const; + + Char32String(Char32String &&p_str); + void operator=(Char32String &&p_str); + Char32String() {} + ~Char32String(); +}; + +class CharWideString { + friend class String; + + const wchar_t *_data = nullptr; + int _length = 0; + + CharWideString(const wchar_t *str, int length); + +public: + int length() const; + const wchar_t *get_data() const; + + CharWideString(CharWideString &&p_str); + void operator=(CharWideString &&p_str); + CharWideString() {} + ~CharWideString(); +}; + +} // namespace godot + +#endif // GODOT_CHAR_STRING_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/char_utils.hpp b/lib/godot-cpp/include/godot_cpp/variant/char_utils.hpp new file mode 100644 index 0000000..066f794 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/char_utils.hpp @@ -0,0 +1,90 @@ +/**************************************************************************/ +/* char_utils.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_CHAR_UTILS_HPP +#define GODOT_CHAR_UTILS_HPP + +static _FORCE_INLINE_ bool is_ascii_upper_case(char32_t c) { + return (c >= 'A' && c <= 'Z'); +} + +static _FORCE_INLINE_ bool is_ascii_lower_case(char32_t c) { + return (c >= 'a' && c <= 'z'); +} + +static _FORCE_INLINE_ bool is_digit(char32_t c) { + return (c >= '0' && c <= '9'); +} + +static _FORCE_INLINE_ bool is_hex_digit(char32_t c) { + return (is_digit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')); +} + +static _FORCE_INLINE_ bool is_binary_digit(char32_t c) { + return (c == '0' || c == '1'); +} + +static _FORCE_INLINE_ bool is_ascii_char(char32_t c) { + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); +} + +static _FORCE_INLINE_ bool is_ascii_alphanumeric_char(char32_t c) { + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'); +} + +static _FORCE_INLINE_ bool is_ascii_identifier_char(char32_t c) { + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'; +} + +static _FORCE_INLINE_ bool is_symbol(char32_t c) { + return c != '_' && ((c >= '!' && c <= '/') || (c >= ':' && c <= '@') || (c >= '[' && c <= '`') || (c >= '{' && c <= '~') || c == '\t' || c == ' '); +} + +static _FORCE_INLINE_ bool is_control(char32_t p_char) { + return (p_char <= 0x001f) || (p_char >= 0x007f && p_char <= 0x009f); +} + +static _FORCE_INLINE_ bool is_whitespace(char32_t p_char) { + return (p_char == ' ') || (p_char == 0x00a0) || (p_char == 0x1680) || (p_char >= 0x2000 && p_char <= 0x200a) || (p_char == 0x202f) || (p_char == 0x205f) || (p_char == 0x3000) || (p_char == 0x2028) || (p_char == 0x2029) || (p_char >= 0x0009 && p_char <= 0x000d) || (p_char == 0x0085); +} + +static _FORCE_INLINE_ bool is_linebreak(char32_t p_char) { + return (p_char >= 0x000a && p_char <= 0x000d) || (p_char == 0x0085) || (p_char == 0x2028) || (p_char == 0x2029); +} + +static _FORCE_INLINE_ bool is_punct(char32_t p_char) { + return (p_char >= ' ' && p_char <= '/') || (p_char >= ':' && p_char <= '@') || (p_char >= '[' && p_char <= '^') || (p_char == '`') || (p_char >= '{' && p_char <= '~') || (p_char >= 0x2000 && p_char <= 0x206f) || (p_char >= 0x3000 && p_char <= 0x303f); +} + +static _FORCE_INLINE_ bool is_underscore(char32_t p_char) { + return (p_char == '_'); +} + +#endif // GODOT_CHAR_UTILS_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/color.hpp b/lib/godot-cpp/include/godot_cpp/variant/color.hpp new file mode 100644 index 0000000..0e837bc --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/color.hpp @@ -0,0 +1,289 @@ +/**************************************************************************/ +/* color.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_COLOR_HPP +#define GODOT_COLOR_HPP + +#include + +namespace godot { + +class String; + +struct _NO_DISCARD_ Color { + union { + struct { + float r; + float g; + float b; + float a; + }; + float components[4] = { 0, 0, 0, 1.0 }; + }; + + uint32_t to_rgba32() const; + uint32_t to_argb32() const; + uint32_t to_abgr32() const; + uint64_t to_rgba64() const; + uint64_t to_argb64() const; + uint64_t to_abgr64() const; + String to_html(bool p_alpha = true) const; + float get_h() const; + float get_s() const; + float get_v() const; + void set_hsv(float p_h, float p_s, float p_v, float p_alpha = 1.0f); + + _FORCE_INLINE_ float &operator[](int p_idx) { + return components[p_idx]; + } + _FORCE_INLINE_ const float &operator[](int p_idx) const { + return components[p_idx]; + } + + bool operator==(const Color &p_color) const { + return (r == p_color.r && g == p_color.g && b == p_color.b && a == p_color.a); + } + bool operator!=(const Color &p_color) const { + return (r != p_color.r || g != p_color.g || b != p_color.b || a != p_color.a); + } + + Color operator+(const Color &p_color) const; + void operator+=(const Color &p_color); + + Color operator-() const; + Color operator-(const Color &p_color) const; + void operator-=(const Color &p_color); + + Color operator*(const Color &p_color) const; + Color operator*(float p_scalar) const; + void operator*=(const Color &p_color); + void operator*=(float p_scalar); + + Color operator/(const Color &p_color) const; + Color operator/(float p_scalar) const; + void operator/=(const Color &p_color); + void operator/=(float p_scalar); + + bool is_equal_approx(const Color &p_color) const; + + Color clamp(const Color &p_min = Color(0, 0, 0, 0), const Color &p_max = Color(1, 1, 1, 1)) const; + void invert(); + Color inverted() const; + + _FORCE_INLINE_ float get_luminance() const { + return 0.2126f * r + 0.7152f * g + 0.0722f * b; + } + + _FORCE_INLINE_ Color lerp(const Color &p_to, float p_weight) const { + Color res = *this; + + res.r += (p_weight * (p_to.r - r)); + res.g += (p_weight * (p_to.g - g)); + res.b += (p_weight * (p_to.b - b)); + res.a += (p_weight * (p_to.a - a)); + + return res; + } + + _FORCE_INLINE_ Color darkened(float p_amount) const { + Color res = *this; + res.r = res.r * (1.0f - p_amount); + res.g = res.g * (1.0f - p_amount); + res.b = res.b * (1.0f - p_amount); + return res; + } + + _FORCE_INLINE_ Color lightened(float p_amount) const { + Color res = *this; + res.r = res.r + (1.0f - res.r) * p_amount; + res.g = res.g + (1.0f - res.g) * p_amount; + res.b = res.b + (1.0f - res.b) * p_amount; + return res; + } + + _FORCE_INLINE_ uint32_t to_rgbe9995() const { + const float pow2to9 = 512.0f; + const float B = 15.0f; + const float N = 9.0f; + + float sharedexp = 65408.000f; // Result of: ((pow2to9 - 1.0f) / pow2to9) * powf(2.0f, 31.0f - 15.0f) + + float cRed = MAX(0.0f, MIN(sharedexp, r)); + float cGreen = MAX(0.0f, MIN(sharedexp, g)); + float cBlue = MAX(0.0f, MIN(sharedexp, b)); + + float cMax = MAX(cRed, MAX(cGreen, cBlue)); + + float expp = MAX(-B - 1.0f, floor(Math::log(cMax) / (real_t)Math_LN2)) + 1.0f + B; + + float sMax = (float)floor((cMax / Math::pow(2.0f, expp - B - N)) + 0.5f); + + float exps = expp + 1.0f; + + if (0.0f <= sMax && sMax < pow2to9) { + exps = expp; + } + + float sRed = Math::floor((cRed / pow(2.0f, exps - B - N)) + 0.5f); + float sGreen = Math::floor((cGreen / pow(2.0f, exps - B - N)) + 0.5f); + float sBlue = Math::floor((cBlue / pow(2.0f, exps - B - N)) + 0.5f); + + return (uint32_t(Math::fast_ftoi(sRed)) & 0x1FF) | ((uint32_t(Math::fast_ftoi(sGreen)) & 0x1FF) << 9) | ((uint32_t(Math::fast_ftoi(sBlue)) & 0x1FF) << 18) | ((uint32_t(Math::fast_ftoi(exps)) & 0x1F) << 27); + } + + _FORCE_INLINE_ Color blend(const Color &p_over) const { + Color res; + float sa = 1.0f - p_over.a; + res.a = a * sa + p_over.a; + if (res.a == 0) { + return Color(0, 0, 0, 0); + } else { + res.r = (r * a * sa + p_over.r * p_over.a) / res.a; + res.g = (g * a * sa + p_over.g * p_over.a) / res.a; + res.b = (b * a * sa + p_over.b * p_over.a) / res.a; + } + return res; + } + + _FORCE_INLINE_ Color srgb_to_linear() const { + return Color( + r < 0.04045f ? r * (1.0f / 12.92f) : Math::pow((r + 0.055f) * (float)(1.0 / (1.0 + 0.055)), 2.4f), + g < 0.04045f ? g * (1.0f / 12.92f) : Math::pow((g + 0.055f) * (float)(1.0 / (1.0 + 0.055)), 2.4f), + b < 0.04045f ? b * (1.0f / 12.92f) : Math::pow((b + 0.055f) * (float)(1.0 / (1.0 + 0.055)), 2.4f), + a); + } + _FORCE_INLINE_ Color linear_to_srgb() const { + return Color( + r < 0.0031308f ? 12.92f * r : (1.0f + 0.055f) * Math::pow(r, 1.0f / 2.4f) - 0.055f, + g < 0.0031308f ? 12.92f * g : (1.0f + 0.055f) * Math::pow(g, 1.0f / 2.4f) - 0.055f, + b < 0.0031308f ? 12.92f * b : (1.0f + 0.055f) * Math::pow(b, 1.0f / 2.4f) - 0.055f, a); + } + + static Color hex(uint32_t p_hex); + static Color hex64(uint64_t p_hex); + static Color html(const String &p_rgba); + static bool html_is_valid(const String &p_color); + static Color named(const String &p_name); + static Color named(const String &p_name, const Color &p_default); + static int find_named_color(const String &p_name); + static int get_named_color_count(); + static String get_named_color_name(int p_idx); + static Color get_named_color(int p_idx); + static Color from_string(const String &p_string, const Color &p_default); + static Color from_hsv(float p_h, float p_s, float p_v, float p_alpha = 1.0f); + static Color from_rgbe9995(uint32_t p_rgbe); + + _FORCE_INLINE_ bool operator<(const Color &p_color) const; // Used in set keys. + operator String() const; + + // For the binder. + _FORCE_INLINE_ void set_r8(int32_t r8) { r = (CLAMP(r8, 0, 255) / 255.0f); } + _FORCE_INLINE_ int32_t get_r8() const { return int32_t(CLAMP(Math::round(r * 255.0f), 0.0f, 255.0f)); } + _FORCE_INLINE_ void set_g8(int32_t g8) { g = (CLAMP(g8, 0, 255) / 255.0f); } + _FORCE_INLINE_ int32_t get_g8() const { return int32_t(CLAMP(Math::round(g * 255.0f), 0.0f, 255.0f)); } + _FORCE_INLINE_ void set_b8(int32_t b8) { b = (CLAMP(b8, 0, 255) / 255.0f); } + _FORCE_INLINE_ int32_t get_b8() const { return int32_t(CLAMP(Math::round(b * 255.0f), 0.0f, 255.0f)); } + _FORCE_INLINE_ void set_a8(int32_t a8) { a = (CLAMP(a8, 0, 255) / 255.0f); } + _FORCE_INLINE_ int32_t get_a8() const { return int32_t(CLAMP(Math::round(a * 255.0f), 0.0f, 255.0f)); } + + _FORCE_INLINE_ void set_h(float p_h) { set_hsv(p_h, get_s(), get_v(), a); } + _FORCE_INLINE_ void set_s(float p_s) { set_hsv(get_h(), p_s, get_v(), a); } + _FORCE_INLINE_ void set_v(float p_v) { set_hsv(get_h(), get_s(), p_v, a); } + + _FORCE_INLINE_ Color() {} + + /** + * RGBA construct parameters. + * Alpha is not optional as otherwise we can't bind the RGB version for scripting. + */ + _FORCE_INLINE_ Color(float p_r, float p_g, float p_b, float p_a) { + r = p_r; + g = p_g; + b = p_b; + a = p_a; + } + + /** + * RGB construct parameters. + */ + _FORCE_INLINE_ Color(float p_r, float p_g, float p_b) { + r = p_r; + g = p_g; + b = p_b; + a = 1.0f; + } + + /** + * Construct a Color from another Color, but with the specified alpha value. + */ + _FORCE_INLINE_ Color(const Color &p_c, float p_a) { + r = p_c.r; + g = p_c.g; + b = p_c.b; + a = p_a; + } + + Color(const String &p_code) { + if (html_is_valid(p_code)) { + *this = html(p_code); + } else { + *this = named(p_code); + } + } + + Color(const String &p_code, float p_a) { + *this = Color(p_code); + a = p_a; + } +}; + +bool Color::operator<(const Color &p_color) const { + if (r == p_color.r) { + if (g == p_color.g) { + if (b == p_color.b) { + return (a < p_color.a); + } else { + return (b < p_color.b); + } + } else { + return g < p_color.g; + } + } else { + return r < p_color.r; + } +} + +_FORCE_INLINE_ Color operator*(float p_scalar, const Color &p_color) { + return p_color * p_scalar; +} + +} // namespace godot + +#endif // GODOT_COLOR_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/color_names.inc.hpp b/lib/godot-cpp/include/godot_cpp/variant/color_names.inc.hpp new file mode 100644 index 0000000..c6671fd --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/color_names.inc.hpp @@ -0,0 +1,191 @@ +/**************************************************************************/ +/* color_names.inc.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +namespace godot { + +// Names from https://en.wikipedia.org/wiki/X11_color_names +// Keep these in sync with the engine (both in core and in C#) + +struct NamedColor { + const char *name; + Color color; +}; + +static NamedColor named_colors[] = { + { "ALICE_BLUE", Color::hex(0xF0F8FFFF) }, + { "ANTIQUE_WHITE", Color::hex(0xFAEBD7FF) }, + { "AQUA", Color::hex(0x00FFFFFF) }, + { "AQUAMARINE", Color::hex(0x7FFFD4FF) }, + { "AZURE", Color::hex(0xF0FFFFFF) }, + { "BEIGE", Color::hex(0xF5F5DCFF) }, + { "BISQUE", Color::hex(0xFFE4C4FF) }, + { "BLACK", Color::hex(0x000000FF) }, + { "BLANCHED_ALMOND", Color::hex(0xFFEBCDFF) }, + { "BLUE", Color::hex(0x0000FFFF) }, + { "BLUE_VIOLET", Color::hex(0x8A2BE2FF) }, + { "BROWN", Color::hex(0xA52A2AFF) }, + { "BURLYWOOD", Color::hex(0xDEB887FF) }, + { "CADET_BLUE", Color::hex(0x5F9EA0FF) }, + { "CHARTREUSE", Color::hex(0x7FFF00FF) }, + { "CHOCOLATE", Color::hex(0xD2691EFF) }, + { "CORAL", Color::hex(0xFF7F50FF) }, + { "CORNFLOWER_BLUE", Color::hex(0x6495EDFF) }, + { "CORNSILK", Color::hex(0xFFF8DCFF) }, + { "CRIMSON", Color::hex(0xDC143CFF) }, + { "CYAN", Color::hex(0x00FFFFFF) }, + { "DARK_BLUE", Color::hex(0x00008BFF) }, + { "DARK_CYAN", Color::hex(0x008B8BFF) }, + { "DARK_GOLDENROD", Color::hex(0xB8860BFF) }, + { "DARK_GRAY", Color::hex(0xA9A9A9FF) }, + { "DARK_GREEN", Color::hex(0x006400FF) }, + { "DARK_KHAKI", Color::hex(0xBDB76BFF) }, + { "DARK_MAGENTA", Color::hex(0x8B008BFF) }, + { "DARK_OLIVE_GREEN", Color::hex(0x556B2FFF) }, + { "DARK_ORANGE", Color::hex(0xFF8C00FF) }, + { "DARK_ORCHID", Color::hex(0x9932CCFF) }, + { "DARK_RED", Color::hex(0x8B0000FF) }, + { "DARK_SALMON", Color::hex(0xE9967AFF) }, + { "DARK_SEA_GREEN", Color::hex(0x8FBC8FFF) }, + { "DARK_SLATE_BLUE", Color::hex(0x483D8BFF) }, + { "DARK_SLATE_GRAY", Color::hex(0x2F4F4FFF) }, + { "DARK_TURQUOISE", Color::hex(0x00CED1FF) }, + { "DARK_VIOLET", Color::hex(0x9400D3FF) }, + { "DEEP_PINK", Color::hex(0xFF1493FF) }, + { "DEEP_SKY_BLUE", Color::hex(0x00BFFFFF) }, + { "DIM_GRAY", Color::hex(0x696969FF) }, + { "DODGER_BLUE", Color::hex(0x1E90FFFF) }, + { "FIREBRICK", Color::hex(0xB22222FF) }, + { "FLORAL_WHITE", Color::hex(0xFFFAF0FF) }, + { "FOREST_GREEN", Color::hex(0x228B22FF) }, + { "FUCHSIA", Color::hex(0xFF00FFFF) }, + { "GAINSBORO", Color::hex(0xDCDCDCFF) }, + { "GHOST_WHITE", Color::hex(0xF8F8FFFF) }, + { "GOLD", Color::hex(0xFFD700FF) }, + { "GOLDENROD", Color::hex(0xDAA520FF) }, + { "GRAY", Color::hex(0xBEBEBEFF) }, + { "GREEN", Color::hex(0x00FF00FF) }, + { "GREEN_YELLOW", Color::hex(0xADFF2FFF) }, + { "HONEYDEW", Color::hex(0xF0FFF0FF) }, + { "HOT_PINK", Color::hex(0xFF69B4FF) }, + { "INDIAN_RED", Color::hex(0xCD5C5CFF) }, + { "INDIGO", Color::hex(0x4B0082FF) }, + { "IVORY", Color::hex(0xFFFFF0FF) }, + { "KHAKI", Color::hex(0xF0E68CFF) }, + { "LAVENDER", Color::hex(0xE6E6FAFF) }, + { "LAVENDER_BLUSH", Color::hex(0xFFF0F5FF) }, + { "LAWN_GREEN", Color::hex(0x7CFC00FF) }, + { "LEMON_CHIFFON", Color::hex(0xFFFACDFF) }, + { "LIGHT_BLUE", Color::hex(0xADD8E6FF) }, + { "LIGHT_CORAL", Color::hex(0xF08080FF) }, + { "LIGHT_CYAN", Color::hex(0xE0FFFFFF) }, + { "LIGHT_GOLDENROD", Color::hex(0xFAFAD2FF) }, + { "LIGHT_GRAY", Color::hex(0xD3D3D3FF) }, + { "LIGHT_GREEN", Color::hex(0x90EE90FF) }, + { "LIGHT_PINK", Color::hex(0xFFB6C1FF) }, + { "LIGHT_SALMON", Color::hex(0xFFA07AFF) }, + { "LIGHT_SEA_GREEN", Color::hex(0x20B2AAFF) }, + { "LIGHT_SKY_BLUE", Color::hex(0x87CEFAFF) }, + { "LIGHT_SLATE_GRAY", Color::hex(0x778899FF) }, + { "LIGHT_STEEL_BLUE", Color::hex(0xB0C4DEFF) }, + { "LIGHT_YELLOW", Color::hex(0xFFFFE0FF) }, + { "LIME", Color::hex(0x00FF00FF) }, + { "LIME_GREEN", Color::hex(0x32CD32FF) }, + { "LINEN", Color::hex(0xFAF0E6FF) }, + { "MAGENTA", Color::hex(0xFF00FFFF) }, + { "MAROON", Color::hex(0xB03060FF) }, + { "MEDIUM_AQUAMARINE", Color::hex(0x66CDAAFF) }, + { "MEDIUM_BLUE", Color::hex(0x0000CDFF) }, + { "MEDIUM_ORCHID", Color::hex(0xBA55D3FF) }, + { "MEDIUM_PURPLE", Color::hex(0x9370DBFF) }, + { "MEDIUM_SEA_GREEN", Color::hex(0x3CB371FF) }, + { "MEDIUM_SLATE_BLUE", Color::hex(0x7B68EEFF) }, + { "MEDIUM_SPRING_GREEN", Color::hex(0x00FA9AFF) }, + { "MEDIUM_TURQUOISE", Color::hex(0x48D1CCFF) }, + { "MEDIUM_VIOLET_RED", Color::hex(0xC71585FF) }, + { "MIDNIGHT_BLUE", Color::hex(0x191970FF) }, + { "MINT_CREAM", Color::hex(0xF5FFFAFF) }, + { "MISTY_ROSE", Color::hex(0xFFE4E1FF) }, + { "MOCCASIN", Color::hex(0xFFE4B5FF) }, + { "NAVAJO_WHITE", Color::hex(0xFFDEADFF) }, + { "NAVY_BLUE", Color::hex(0x000080FF) }, + { "OLD_LACE", Color::hex(0xFDF5E6FF) }, + { "OLIVE", Color::hex(0x808000FF) }, + { "OLIVE_DRAB", Color::hex(0x6B8E23FF) }, + { "ORANGE", Color::hex(0xFFA500FF) }, + { "ORANGE_RED", Color::hex(0xFF4500FF) }, + { "ORCHID", Color::hex(0xDA70D6FF) }, + { "PALE_GOLDENROD", Color::hex(0xEEE8AAFF) }, + { "PALE_GREEN", Color::hex(0x98FB98FF) }, + { "PALE_TURQUOISE", Color::hex(0xAFEEEEFF) }, + { "PALE_VIOLET_RED", Color::hex(0xDB7093FF) }, + { "PAPAYA_WHIP", Color::hex(0xFFEFD5FF) }, + { "PEACH_PUFF", Color::hex(0xFFDAB9FF) }, + { "PERU", Color::hex(0xCD853FFF) }, + { "PINK", Color::hex(0xFFC0CBFF) }, + { "PLUM", Color::hex(0xDDA0DDFF) }, + { "POWDER_BLUE", Color::hex(0xB0E0E6FF) }, + { "PURPLE", Color::hex(0xA020F0FF) }, + { "REBECCA_PURPLE", Color::hex(0x663399FF) }, + { "RED", Color::hex(0xFF0000FF) }, + { "ROSY_BROWN", Color::hex(0xBC8F8FFF) }, + { "ROYAL_BLUE", Color::hex(0x4169E1FF) }, + { "SADDLE_BROWN", Color::hex(0x8B4513FF) }, + { "SALMON", Color::hex(0xFA8072FF) }, + { "SANDY_BROWN", Color::hex(0xF4A460FF) }, + { "SEA_GREEN", Color::hex(0x2E8B57FF) }, + { "SEASHELL", Color::hex(0xFFF5EEFF) }, + { "SIENNA", Color::hex(0xA0522DFF) }, + { "SILVER", Color::hex(0xC0C0C0FF) }, + { "SKY_BLUE", Color::hex(0x87CEEBFF) }, + { "SLATE_BLUE", Color::hex(0x6A5ACDFF) }, + { "SLATE_GRAY", Color::hex(0x708090FF) }, + { "SNOW", Color::hex(0xFFFAFAFF) }, + { "SPRING_GREEN", Color::hex(0x00FF7FFF) }, + { "STEEL_BLUE", Color::hex(0x4682B4FF) }, + { "TAN", Color::hex(0xD2B48CFF) }, + { "TEAL", Color::hex(0x008080FF) }, + { "THISTLE", Color::hex(0xD8BFD8FF) }, + { "TOMATO", Color::hex(0xFF6347FF) }, + { "TRANSPARENT", Color::hex(0xFFFFFF00) }, + { "TURQUOISE", Color::hex(0x40E0D0FF) }, + { "VIOLET", Color::hex(0xEE82EEFF) }, + { "WEB_GRAY", Color::hex(0x808080FF) }, + { "WEB_GREEN", Color::hex(0x008000FF) }, + { "WEB_MAROON", Color::hex(0x800000FF) }, + { "WEB_PURPLE", Color::hex(0x800080FF) }, + { "WHEAT", Color::hex(0xF5DEB3FF) }, + { "WHITE", Color::hex(0xFFFFFFFF) }, + { "WHITE_SMOKE", Color::hex(0xF5F5F5FF) }, + { "YELLOW", Color::hex(0xFFFF00FF) }, + { "YELLOW_GREEN", Color::hex(0x9ACD32FF) }, + { nullptr, Color() }, +}; + +} // namespace godot diff --git a/lib/godot-cpp/include/godot_cpp/variant/plane.hpp b/lib/godot-cpp/include/godot_cpp/variant/plane.hpp new file mode 100644 index 0000000..727f4f5 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/plane.hpp @@ -0,0 +1,140 @@ +/**************************************************************************/ +/* plane.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_PLANE_HPP +#define GODOT_PLANE_HPP + +#include +#include + +namespace godot { + +class Variant; + +struct _NO_DISCARD_ Plane { + Vector3 normal; + real_t d = 0; + + void set_normal(const Vector3 &p_normal); + _FORCE_INLINE_ Vector3 get_normal() const { return normal; } + + void normalize(); + Plane normalized() const; + + /* Plane-Point operations */ + + _FORCE_INLINE_ Vector3 center() const { return normal * d; } + Vector3 get_any_perpendicular_normal() const; + + _FORCE_INLINE_ bool is_point_over(const Vector3 &p_point) const; ///< Point is over plane + _FORCE_INLINE_ real_t distance_to(const Vector3 &p_point) const; + _FORCE_INLINE_ bool has_point(const Vector3 &p_point, real_t p_tolerance = CMP_EPSILON) const; + + /* intersections */ + + bool intersect_3(const Plane &p_plane1, const Plane &p_plane2, Vector3 *r_result = nullptr) const; + bool intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *p_intersection) const; + bool intersects_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 *p_intersection) const; + + // For Variant bindings. + Variant intersect_3_bind(const Plane &p_plane1, const Plane &p_plane2) const; + Variant intersects_ray_bind(const Vector3 &p_from, const Vector3 &p_dir) const; + Variant intersects_segment_bind(const Vector3 &p_begin, const Vector3 &p_end) const; + + _FORCE_INLINE_ Vector3 project(const Vector3 &p_point) const { + return p_point - normal * distance_to(p_point); + } + + /* misc */ + + Plane operator-() const { return Plane(-normal, -d); } + bool is_equal_approx(const Plane &p_plane) const; + bool is_equal_approx_any_side(const Plane &p_plane) const; + + _FORCE_INLINE_ bool operator==(const Plane &p_plane) const; + _FORCE_INLINE_ bool operator!=(const Plane &p_plane) const; + operator String() const; + + _FORCE_INLINE_ Plane() {} + _FORCE_INLINE_ Plane(real_t p_a, real_t p_b, real_t p_c, real_t p_d) : + normal(p_a, p_b, p_c), + d(p_d) {} + + _FORCE_INLINE_ Plane(const Vector3 &p_normal, real_t p_d = 0.0); + _FORCE_INLINE_ Plane(const Vector3 &p_normal, const Vector3 &p_point); + _FORCE_INLINE_ Plane(const Vector3 &p_point1, const Vector3 &p_point2, const Vector3 &p_point3, ClockDirection p_dir = CLOCKWISE); +}; + +bool Plane::is_point_over(const Vector3 &p_point) const { + return (normal.dot(p_point) > d); +} + +real_t Plane::distance_to(const Vector3 &p_point) const { + return (normal.dot(p_point) - d); +} + +bool Plane::has_point(const Vector3 &p_point, real_t p_tolerance) const { + real_t dist = normal.dot(p_point) - d; + dist = Math::abs(dist); + return (dist <= p_tolerance); +} + +Plane::Plane(const Vector3 &p_normal, real_t p_d) : + normal(p_normal), + d(p_d) { +} + +Plane::Plane(const Vector3 &p_normal, const Vector3 &p_point) : + normal(p_normal), + d(p_normal.dot(p_point)) { +} + +Plane::Plane(const Vector3 &p_point1, const Vector3 &p_point2, const Vector3 &p_point3, ClockDirection p_dir) { + if (p_dir == CLOCKWISE) { + normal = (p_point1 - p_point3).cross(p_point1 - p_point2); + } else { + normal = (p_point1 - p_point2).cross(p_point1 - p_point3); + } + + normal.normalize(); + d = normal.dot(p_point1); +} + +bool Plane::operator==(const Plane &p_plane) const { + return normal == p_plane.normal && d == p_plane.d; +} + +bool Plane::operator!=(const Plane &p_plane) const { + return normal != p_plane.normal || d != p_plane.d; +} + +} // namespace godot + +#endif // GODOT_PLANE_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/projection.hpp b/lib/godot-cpp/include/godot_cpp/variant/projection.hpp new file mode 100644 index 0000000..1de6c02 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/projection.hpp @@ -0,0 +1,171 @@ +/**************************************************************************/ +/* projection.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_PROJECTION_HPP +#define GODOT_PROJECTION_HPP + +#include +#include +#include + +namespace godot { + +class Array; +struct AABB; +struct Plane; +struct Rect2; +struct Transform3D; +struct Vector2; + +struct _NO_DISCARD_ Projection { + enum Planes { + PLANE_NEAR, + PLANE_FAR, + PLANE_LEFT, + PLANE_TOP, + PLANE_RIGHT, + PLANE_BOTTOM + }; + + Vector4 columns[4]; + + _FORCE_INLINE_ const Vector4 &operator[](const int p_axis) const { + DEV_ASSERT((unsigned int)p_axis < 4); + return columns[p_axis]; + } + + _FORCE_INLINE_ Vector4 &operator[](const int p_axis) { + DEV_ASSERT((unsigned int)p_axis < 4); + return columns[p_axis]; + } + + float determinant() const; + void set_identity(); + void set_zero(); + void set_light_bias(); + void set_depth_correction(bool p_flip_y = true); + + void set_light_atlas_rect(const Rect2 &p_rect); + void set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov = false); + void set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov, int p_eye, real_t p_intraocular_dist, real_t p_convergence_dist); + void set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_dist, real_t p_display_width, real_t p_display_to_lens, real_t p_oversample, real_t p_z_near, real_t p_z_far); + void set_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar); + void set_orthogonal(real_t p_size, real_t p_aspect, real_t p_znear, real_t p_zfar, bool p_flip_fov = false); + void set_frustum(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_near, real_t p_far); + void set_frustum(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov = false); + void adjust_perspective_znear(real_t p_new_znear); + + static Projection create_depth_correction(bool p_flip_y); + static Projection create_light_atlas_rect(const Rect2 &p_rect); + static Projection create_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov = false); + static Projection create_perspective_hmd(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov, int p_eye, real_t p_intraocular_dist, real_t p_convergence_dist); + static Projection create_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_dist, real_t p_display_width, real_t p_display_to_lens, real_t p_oversample, real_t p_z_near, real_t p_z_far); + static Projection create_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar); + static Projection create_orthogonal_aspect(real_t p_size, real_t p_aspect, real_t p_znear, real_t p_zfar, bool p_flip_fov = false); + static Projection create_frustum(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_near, real_t p_far); + static Projection create_frustum_aspect(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov = false); + static Projection create_fit_aabb(const AABB &p_aabb); + Projection perspective_znear_adjusted(real_t p_new_znear) const; + Plane get_projection_plane(Planes p_plane) const; + Projection flipped_y() const; + Projection jitter_offseted(const Vector2 &p_offset) const; + + static real_t get_fovy(real_t p_fovx, real_t p_aspect) { + return Math::rad_to_deg(Math::atan(p_aspect * Math::tan(Math::deg_to_rad(p_fovx) * 0.5)) * 2.0); + } + + real_t get_z_far() const; + real_t get_z_near() const; + real_t get_aspect() const; + real_t get_fov() const; + bool is_orthogonal() const; + + Array get_projection_planes(const Transform3D &p_transform) const; + + bool get_endpoints(const Transform3D &p_transform, Vector3 *p_8points) const; + Vector2 get_viewport_half_extents() const; + Vector2 get_far_plane_half_extents() const; + + void invert(); + Projection inverse() const; + + Projection operator*(const Projection &p_matrix) const; + + Plane xform4(const Plane &p_vec4) const; + _FORCE_INLINE_ Vector3 xform(const Vector3 &p_vec3) const; + + Vector4 xform(const Vector4 &p_vec4) const; + Vector4 xform_inv(const Vector4 &p_vec4) const; + + operator String() const; + + void scale_translate_to_fit(const AABB &p_aabb); + void add_jitter_offset(const Vector2 &p_offset); + void make_scale(const Vector3 &p_scale); + int get_pixels_per_meter(int p_for_pixel_width) const; + operator Transform3D() const; + + void flip_y(); + + bool operator==(const Projection &p_cam) const { + for (uint32_t i = 0; i < 4; i++) { + for (uint32_t j = 0; j < 4; j++) { + if (columns[i][j] != p_cam.columns[i][j]) { + return false; + } + } + } + return true; + } + + bool operator!=(const Projection &p_cam) const { + return !(*this == p_cam); + } + + float get_lod_multiplier() const; + + Projection(); + Projection(const Vector4 &p_x, const Vector4 &p_y, const Vector4 &p_z, const Vector4 &p_w); + Projection(const Transform3D &p_transform); + ~Projection(); +}; + +Vector3 Projection::xform(const Vector3 &p_vec3) const { + Vector3 ret; + ret.x = columns[0][0] * p_vec3.x + columns[1][0] * p_vec3.y + columns[2][0] * p_vec3.z + columns[3][0]; + ret.y = columns[0][1] * p_vec3.x + columns[1][1] * p_vec3.y + columns[2][1] * p_vec3.z + columns[3][1]; + ret.z = columns[0][2] * p_vec3.x + columns[1][2] * p_vec3.y + columns[2][2] * p_vec3.z + columns[3][2]; + real_t w = columns[0][3] * p_vec3.x + columns[1][3] * p_vec3.y + columns[2][3] * p_vec3.z + columns[3][3]; + return ret / w; +} + +} // namespace godot + +#endif // GODOT_PROJECTION_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/quaternion.hpp b/lib/godot-cpp/include/godot_cpp/variant/quaternion.hpp new file mode 100644 index 0000000..3816b66 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/quaternion.hpp @@ -0,0 +1,237 @@ +/**************************************************************************/ +/* quaternion.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_QUATERNION_HPP +#define GODOT_QUATERNION_HPP + +#include +#include + +namespace godot { + +struct _NO_DISCARD_ Quaternion { + union { + struct { + real_t x; + real_t y; + real_t z; + real_t w; + }; + real_t components[4] = { 0, 0, 0, 1.0 }; + }; + + _FORCE_INLINE_ real_t &operator[](int idx) { + return components[idx]; + } + _FORCE_INLINE_ const real_t &operator[](int idx) const { + return components[idx]; + } + _FORCE_INLINE_ real_t length_squared() const; + bool is_equal_approx(const Quaternion &p_quaternion) const; + real_t length() const; + void normalize(); + Quaternion normalized() const; + bool is_normalized() const; + Quaternion inverse() const; + Quaternion log() const; + Quaternion exp() const; + _FORCE_INLINE_ real_t dot(const Quaternion &p_q) const; + real_t angle_to(const Quaternion &p_to) const; + + Vector3 get_euler_xyz() const; + Vector3 get_euler_yxz() const; + Vector3 get_euler() const { return get_euler_yxz(); } + + Quaternion slerp(const Quaternion &p_to, const real_t &p_weight) const; + Quaternion slerpni(const Quaternion &p_to, const real_t &p_weight) const; + Quaternion spherical_cubic_interpolate(const Quaternion &p_b, const Quaternion &p_pre_a, const Quaternion &p_post_b, const real_t &p_weight) const; + Quaternion spherical_cubic_interpolate_in_time(const Quaternion &p_b, const Quaternion &p_pre_a, const Quaternion &p_post_b, const real_t &p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const; + + Vector3 get_axis() const; + real_t get_angle() const; + + _FORCE_INLINE_ void get_axis_angle(Vector3 &r_axis, real_t &r_angle) const { + r_angle = 2 * Math::acos(w); + real_t r = ((real_t)1) / Math::sqrt(1 - w * w); + r_axis.x = x * r; + r_axis.y = y * r; + r_axis.z = z * r; + } + + void operator*=(const Quaternion &p_q); + Quaternion operator*(const Quaternion &p_q) const; + + _FORCE_INLINE_ Vector3 xform(const Vector3 &v) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), v, "The quaternion must be normalized."); +#endif + Vector3 u(x, y, z); + Vector3 uv = u.cross(v); + return v + ((uv * w) + u.cross(uv)) * ((real_t)2); + } + + _FORCE_INLINE_ Vector3 xform_inv(const Vector3 &v) const { + return inverse().xform(v); + } + + _FORCE_INLINE_ void operator+=(const Quaternion &p_q); + _FORCE_INLINE_ void operator-=(const Quaternion &p_q); + _FORCE_INLINE_ void operator*=(const real_t &s); + _FORCE_INLINE_ void operator/=(const real_t &s); + _FORCE_INLINE_ Quaternion operator+(const Quaternion &q2) const; + _FORCE_INLINE_ Quaternion operator-(const Quaternion &q2) const; + _FORCE_INLINE_ Quaternion operator-() const; + _FORCE_INLINE_ Quaternion operator*(const real_t &s) const; + _FORCE_INLINE_ Quaternion operator/(const real_t &s) const; + + _FORCE_INLINE_ bool operator==(const Quaternion &p_quaternion) const; + _FORCE_INLINE_ bool operator!=(const Quaternion &p_quaternion) const; + + operator String() const; + + _FORCE_INLINE_ Quaternion() {} + + _FORCE_INLINE_ Quaternion(real_t p_x, real_t p_y, real_t p_z, real_t p_w) : + x(p_x), + y(p_y), + z(p_z), + w(p_w) { + } + + Quaternion(const Vector3 &p_axis, real_t p_angle); + + Quaternion(const Vector3 &p_euler); + + Quaternion(const Quaternion &p_q) : + x(p_q.x), + y(p_q.y), + z(p_q.z), + w(p_q.w) { + } + + void operator=(const Quaternion &p_q) { + x = p_q.x; + y = p_q.y; + z = p_q.z; + w = p_q.w; + } + + Quaternion(const Vector3 &v0, const Vector3 &v1) { // Shortest arc. + Vector3 c = v0.cross(v1); + real_t d = v0.dot(v1); + + if (d < -1.0f + (real_t)CMP_EPSILON) { + x = 0; + y = 1; + z = 0; + w = 0; + } else { + real_t s = Math::sqrt((1.0f + d) * 2.0f); + real_t rs = 1.0f / s; + + x = c.x * rs; + y = c.y * rs; + z = c.z * rs; + w = s * 0.5f; + } + } +}; + +real_t Quaternion::dot(const Quaternion &p_q) const { + return x * p_q.x + y * p_q.y + z * p_q.z + w * p_q.w; +} + +real_t Quaternion::length_squared() const { + return dot(*this); +} + +void Quaternion::operator+=(const Quaternion &p_q) { + x += p_q.x; + y += p_q.y; + z += p_q.z; + w += p_q.w; +} + +void Quaternion::operator-=(const Quaternion &p_q) { + x -= p_q.x; + y -= p_q.y; + z -= p_q.z; + w -= p_q.w; +} + +void Quaternion::operator*=(const real_t &s) { + x *= s; + y *= s; + z *= s; + w *= s; +} + +void Quaternion::operator/=(const real_t &s) { + *this *= 1.0f / s; +} + +Quaternion Quaternion::operator+(const Quaternion &q2) const { + const Quaternion &q1 = *this; + return Quaternion(q1.x + q2.x, q1.y + q2.y, q1.z + q2.z, q1.w + q2.w); +} + +Quaternion Quaternion::operator-(const Quaternion &q2) const { + const Quaternion &q1 = *this; + return Quaternion(q1.x - q2.x, q1.y - q2.y, q1.z - q2.z, q1.w - q2.w); +} + +Quaternion Quaternion::operator-() const { + const Quaternion &q2 = *this; + return Quaternion(-q2.x, -q2.y, -q2.z, -q2.w); +} + +Quaternion Quaternion::operator*(const real_t &s) const { + return Quaternion(x * s, y * s, z * s, w * s); +} + +Quaternion Quaternion::operator/(const real_t &s) const { + return *this * (1.0f / s); +} + +bool Quaternion::operator==(const Quaternion &p_quaternion) const { + return x == p_quaternion.x && y == p_quaternion.y && z == p_quaternion.z && w == p_quaternion.w; +} + +bool Quaternion::operator!=(const Quaternion &p_quaternion) const { + return x != p_quaternion.x || y != p_quaternion.y || z != p_quaternion.z || w != p_quaternion.w; +} + +_FORCE_INLINE_ Quaternion operator*(const real_t &p_real, const Quaternion &p_quaternion) { + return p_quaternion * p_real; +} + +} // namespace godot + +#endif // GODOT_QUATERNION_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/rect2.hpp b/lib/godot-cpp/include/godot_cpp/variant/rect2.hpp new file mode 100644 index 0000000..cfd24b2 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/rect2.hpp @@ -0,0 +1,376 @@ +/**************************************************************************/ +/* rect2.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_RECT2_HPP +#define GODOT_RECT2_HPP + +#include +#include + +namespace godot { + +class String; +struct Rect2i; +struct Transform2D; + +struct _NO_DISCARD_ Rect2 { + Point2 position; + Size2 size; + + const Vector2 &get_position() const { return position; } + void set_position(const Vector2 &p_pos) { position = p_pos; } + const Vector2 &get_size() const { return size; } + void set_size(const Vector2 &p_size) { size = p_size; } + + real_t get_area() const { return size.width * size.height; } + + _FORCE_INLINE_ Vector2 get_center() const { return position + (size * 0.5f); } + + inline bool intersects(const Rect2 &p_rect, const bool p_include_borders = false) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + if (p_include_borders) { + if (position.x > (p_rect.position.x + p_rect.size.width)) { + return false; + } + if ((position.x + size.width) < p_rect.position.x) { + return false; + } + if (position.y > (p_rect.position.y + p_rect.size.height)) { + return false; + } + if ((position.y + size.height) < p_rect.position.y) { + return false; + } + } else { + if (position.x >= (p_rect.position.x + p_rect.size.width)) { + return false; + } + if ((position.x + size.width) <= p_rect.position.x) { + return false; + } + if (position.y >= (p_rect.position.y + p_rect.size.height)) { + return false; + } + if ((position.y + size.height) <= p_rect.position.y) { + return false; + } + } + + return true; + } + + inline real_t distance_to(const Vector2 &p_point) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + real_t dist = 0.0; + bool inside = true; + + if (p_point.x < position.x) { + real_t d = position.x - p_point.x; + dist = d; + inside = false; + } + if (p_point.y < position.y) { + real_t d = position.y - p_point.y; + dist = inside ? d : Math::min(dist, d); + inside = false; + } + if (p_point.x >= (position.x + size.x)) { + real_t d = p_point.x - (position.x + size.x); + dist = inside ? d : Math::min(dist, d); + inside = false; + } + if (p_point.y >= (position.y + size.y)) { + real_t d = p_point.y - (position.y + size.y); + dist = inside ? d : Math::min(dist, d); + inside = false; + } + + if (inside) { + return 0; + } else { + return dist; + } + } + + bool intersects_transformed(const Transform2D &p_xform, const Rect2 &p_rect) const; + + bool intersects_segment(const Point2 &p_from, const Point2 &p_to, Point2 *r_pos = nullptr, Point2 *r_normal = nullptr) const; + + inline bool encloses(const Rect2 &p_rect) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + return (p_rect.position.x >= position.x) && (p_rect.position.y >= position.y) && + ((p_rect.position.x + p_rect.size.x) <= (position.x + size.x)) && + ((p_rect.position.y + p_rect.size.y) <= (position.y + size.y)); + } + + _FORCE_INLINE_ bool has_area() const { + return size.x > 0.0f && size.y > 0.0f; + } + + // Returns the instersection between two Rect2s or an empty Rect2 if there is no intersection + inline Rect2 intersection(const Rect2 &p_rect) const { + Rect2 new_rect = p_rect; + + if (!intersects(new_rect)) { + return Rect2(); + } + + new_rect.position.x = Math::max(p_rect.position.x, position.x); + new_rect.position.y = Math::max(p_rect.position.y, position.y); + + Point2 p_rect_end = p_rect.position + p_rect.size; + Point2 end = position + size; + + new_rect.size.x = Math::min(p_rect_end.x, end.x) - new_rect.position.x; + new_rect.size.y = Math::min(p_rect_end.y, end.y) - new_rect.position.y; + + return new_rect; + } + + inline Rect2 merge(const Rect2 &p_rect) const { ///< return a merged rect +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + Rect2 new_rect; + + new_rect.position.x = Math::min(p_rect.position.x, position.x); + new_rect.position.y = Math::min(p_rect.position.y, position.y); + + new_rect.size.x = Math::max(p_rect.position.x + p_rect.size.x, position.x + size.x); + new_rect.size.y = Math::max(p_rect.position.y + p_rect.size.y, position.y + size.y); + + new_rect.size = new_rect.size - new_rect.position; // Make relative again. + + return new_rect; + } + + inline bool has_point(const Point2 &p_point) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + if (p_point.x < position.x) { + return false; + } + if (p_point.y < position.y) { + return false; + } + + if (p_point.x >= (position.x + size.x)) { + return false; + } + if (p_point.y >= (position.y + size.y)) { + return false; + } + + return true; + } + + bool is_equal_approx(const Rect2 &p_rect) const; + + bool operator==(const Rect2 &p_rect) const { return position == p_rect.position && size == p_rect.size; } + bool operator!=(const Rect2 &p_rect) const { return position != p_rect.position || size != p_rect.size; } + + inline Rect2 grow(real_t p_amount) const { + Rect2 g = *this; + g.grow_by(p_amount); + return g; + } + + inline void grow_by(real_t p_amount) { + position.x -= p_amount; + position.y -= p_amount; + size.width += p_amount * 2; + size.height += p_amount * 2; + } + + inline Rect2 grow_side(Side p_side, real_t p_amount) const { + Rect2 g = *this; + g = g.grow_individual((SIDE_LEFT == p_side) ? p_amount : 0, + (SIDE_TOP == p_side) ? p_amount : 0, + (SIDE_RIGHT == p_side) ? p_amount : 0, + (SIDE_BOTTOM == p_side) ? p_amount : 0); + return g; + } + + inline Rect2 grow_side_bind(uint32_t p_side, real_t p_amount) const { + return grow_side(Side(p_side), p_amount); + } + + inline Rect2 grow_individual(real_t p_left, real_t p_top, real_t p_right, real_t p_bottom) const { + Rect2 g = *this; + g.position.x -= p_left; + g.position.y -= p_top; + g.size.width += p_left + p_right; + g.size.height += p_top + p_bottom; + + return g; + } + + _FORCE_INLINE_ Rect2 expand(const Vector2 &p_vector) const { + Rect2 r = *this; + r.expand_to(p_vector); + return r; + } + + inline void expand_to(const Vector2 &p_vector) { // In place function for speed. +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + Vector2 begin = position; + Vector2 end = position + size; + + if (p_vector.x < begin.x) { + begin.x = p_vector.x; + } + if (p_vector.y < begin.y) { + begin.y = p_vector.y; + } + + if (p_vector.x > end.x) { + end.x = p_vector.x; + } + if (p_vector.y > end.y) { + end.y = p_vector.y; + } + + position = begin; + size = end - begin; + } + + _FORCE_INLINE_ Rect2 abs() const { + return Rect2(Point2(position.x + Math::min(size.x, (real_t)0), position.y + Math::min(size.y, (real_t)0)), size.abs()); + } + + Vector2 get_support(const Vector2 &p_normal) const { + Vector2 half_extents = size * 0.5f; + Vector2 ofs = position + half_extents; + return Vector2( + (p_normal.x > 0) ? -half_extents.x : half_extents.x, + (p_normal.y > 0) ? -half_extents.y : half_extents.y) + + ofs; + } + + _FORCE_INLINE_ bool intersects_filled_polygon(const Vector2 *p_points, int p_point_count) const { + Vector2 center = get_center(); + int side_plus = 0; + int side_minus = 0; + Vector2 end = position + size; + + int i_f = p_point_count - 1; + for (int i = 0; i < p_point_count; i++) { + const Vector2 &a = p_points[i_f]; + const Vector2 &b = p_points[i]; + i_f = i; + + Vector2 r = (b - a); + float l = r.length(); + if (l == 0.0f) { + continue; + } + + // Check inside. + Vector2 tg = r.orthogonal(); + float s = tg.dot(center) - tg.dot(a); + if (s < 0.0f) { + side_plus++; + } else { + side_minus++; + } + + // Check ray box. + r /= l; + Vector2 ir(1.0f / r.x, 1.0f / r.y); + + // lb is the corner of AABB with minimal coordinates - left bottom, rt is maximal corner + // r.org is origin of ray + Vector2 t13 = (position - a) * ir; + Vector2 t24 = (end - a) * ir; + + float tmin = Math::max(Math::min(t13.x, t24.x), Math::min(t13.y, t24.y)); + float tmax = Math::min(Math::max(t13.x, t24.x), Math::max(t13.y, t24.y)); + + // if tmax < 0, ray (line) is intersecting AABB, but the whole AABB is behind us + if (tmax < 0 || tmin > tmax || tmin >= l) { + continue; + } + + return true; + } + + if (side_plus * side_minus == 0) { + return true; // All inside. + } else { + return false; + } + } + + _FORCE_INLINE_ void set_end(const Vector2 &p_end) { + size = p_end - position; + } + + _FORCE_INLINE_ Vector2 get_end() const { + return position + size; + } + + operator String() const; + operator Rect2i() const; + + Rect2() {} + Rect2(real_t p_x, real_t p_y, real_t p_width, real_t p_height) : + position(Point2(p_x, p_y)), + size(Size2(p_width, p_height)) { + } + Rect2(const Point2 &p_pos, const Size2 &p_size) : + position(p_pos), + size(p_size) { + } +}; + +} // namespace godot + +#endif // GODOT_RECT2_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/rect2i.hpp b/lib/godot-cpp/include/godot_cpp/variant/rect2i.hpp new file mode 100644 index 0000000..c2a15ac --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/rect2i.hpp @@ -0,0 +1,249 @@ +/**************************************************************************/ +/* rect2i.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_RECT2I_HPP +#define GODOT_RECT2I_HPP + +#include +#include + +namespace godot { + +class String; +struct Rect2; + +struct _NO_DISCARD_ Rect2i { + Point2i position; + Size2i size; + + const Point2i &get_position() const { return position; } + void set_position(const Point2i &p_position) { position = p_position; } + const Size2i &get_size() const { return size; } + void set_size(const Size2i &p_size) { size = p_size; } + + int get_area() const { return size.width * size.height; } + + _FORCE_INLINE_ Vector2i get_center() const { return position + (size / 2); } + + inline bool intersects(const Rect2i &p_rect) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size."); + } +#endif + if (position.x >= (p_rect.position.x + p_rect.size.width)) { + return false; + } + if ((position.x + size.width) <= p_rect.position.x) { + return false; + } + if (position.y >= (p_rect.position.y + p_rect.size.height)) { + return false; + } + if ((position.y + size.height) <= p_rect.position.y) { + return false; + } + + return true; + } + + inline bool encloses(const Rect2i &p_rect) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size."); + } +#endif + return (p_rect.position.x >= position.x) && (p_rect.position.y >= position.y) && + ((p_rect.position.x + p_rect.size.x) <= (position.x + size.x)) && + ((p_rect.position.y + p_rect.size.y) <= (position.y + size.y)); + } + + _FORCE_INLINE_ bool has_area() const { + return size.x > 0 && size.y > 0; + } + + // Returns the instersection between two Rect2is or an empty Rect2i if there is no intersection + inline Rect2i intersection(const Rect2i &p_rect) const { + Rect2i new_rect = p_rect; + + if (!intersects(new_rect)) { + return Rect2i(); + } + + new_rect.position.x = Math::max(p_rect.position.x, position.x); + new_rect.position.y = Math::max(p_rect.position.y, position.y); + + Point2i p_rect_end = p_rect.position + p_rect.size; + Point2i end = position + size; + + new_rect.size.x = Math::min(p_rect_end.x, end.x) - new_rect.position.x; + new_rect.size.y = Math::min(p_rect_end.y, end.y) - new_rect.position.y; + + return new_rect; + } + + inline Rect2i merge(const Rect2i &p_rect) const { ///< return a merged rect +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size."); + } +#endif + Rect2i new_rect; + + new_rect.position.x = Math::min(p_rect.position.x, position.x); + new_rect.position.y = Math::min(p_rect.position.y, position.y); + + new_rect.size.x = Math::max(p_rect.position.x + p_rect.size.x, position.x + size.x); + new_rect.size.y = Math::max(p_rect.position.y + p_rect.size.y, position.y + size.y); + + new_rect.size = new_rect.size - new_rect.position; // Make relative again. + + return new_rect; + } + bool has_point(const Point2i &p_point) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size."); + } +#endif + if (p_point.x < position.x) { + return false; + } + if (p_point.y < position.y) { + return false; + } + + if (p_point.x >= (position.x + size.x)) { + return false; + } + if (p_point.y >= (position.y + size.y)) { + return false; + } + + return true; + } + + bool operator==(const Rect2i &p_rect) const { return position == p_rect.position && size == p_rect.size; } + bool operator!=(const Rect2i &p_rect) const { return position != p_rect.position || size != p_rect.size; } + + Rect2i grow(int p_amount) const { + Rect2i g = *this; + g.position.x -= p_amount; + g.position.y -= p_amount; + g.size.width += p_amount * 2; + g.size.height += p_amount * 2; + return g; + } + + inline Rect2i grow_side(Side p_side, int p_amount) const { + Rect2i g = *this; + g = g.grow_individual((SIDE_LEFT == p_side) ? p_amount : 0, + (SIDE_TOP == p_side) ? p_amount : 0, + (SIDE_RIGHT == p_side) ? p_amount : 0, + (SIDE_BOTTOM == p_side) ? p_amount : 0); + return g; + } + + inline Rect2i grow_side_bind(uint32_t p_side, int p_amount) const { + return grow_side(Side(p_side), p_amount); + } + + inline Rect2i grow_individual(int p_left, int p_top, int p_right, int p_bottom) const { + Rect2i g = *this; + g.position.x -= p_left; + g.position.y -= p_top; + g.size.width += p_left + p_right; + g.size.height += p_top + p_bottom; + + return g; + } + + _FORCE_INLINE_ Rect2i expand(const Vector2i &p_vector) const { + Rect2i r = *this; + r.expand_to(p_vector); + return r; + } + + inline void expand_to(const Point2i &p_vector) { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size."); + } +#endif + Point2i begin = position; + Point2i end = position + size; + + if (p_vector.x < begin.x) { + begin.x = p_vector.x; + } + if (p_vector.y < begin.y) { + begin.y = p_vector.y; + } + + if (p_vector.x > end.x) { + end.x = p_vector.x; + } + if (p_vector.y > end.y) { + end.y = p_vector.y; + } + + position = begin; + size = end - begin; + } + + _FORCE_INLINE_ Rect2i abs() const { + return Rect2i(Point2i(position.x + Math::min(size.x, 0), position.y + Math::min(size.y, 0)), size.abs()); + } + + _FORCE_INLINE_ void set_end(const Vector2i &p_end) { + size = p_end - position; + } + + _FORCE_INLINE_ Vector2i get_end() const { + return position + size; + } + + operator String() const; + operator Rect2() const; + + Rect2i() {} + Rect2i(int p_x, int p_y, int p_width, int p_height) : + position(Point2i(p_x, p_y)), + size(Size2i(p_width, p_height)) { + } + Rect2i(const Point2i &p_pos, const Size2i &p_size) : + position(p_pos), + size(p_size) { + } +}; + +} // namespace godot + +#endif // GODOT_RECT2I_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/transform2d.hpp b/lib/godot-cpp/include/godot_cpp/variant/transform2d.hpp new file mode 100644 index 0000000..5a48398 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/transform2d.hpp @@ -0,0 +1,250 @@ +/**************************************************************************/ +/* transform2d.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_TRANSFORM2D_HPP +#define GODOT_TRANSFORM2D_HPP + +#include +#include +#include + +namespace godot { + +class String; + +struct _NO_DISCARD_ Transform2D { + // Warning #1: basis of Transform2D is stored differently from Basis. In terms of columns array, the basis matrix looks like "on paper": + // M = (columns[0][0] columns[1][0]) + // (columns[0][1] columns[1][1]) + // This is such that the columns, which can be interpreted as basis vectors of the coordinate system "painted" on the object, can be accessed as columns[i]. + // Note that this is the opposite of the indices in mathematical texts, meaning: $M_{12}$ in a math book corresponds to columns[1][0] here. + // This requires additional care when working with explicit indices. + // See https://en.wikipedia.org/wiki/Row-_and_column-major_order for further reading. + + // Warning #2: 2D be aware that unlike 3D code, 2D code uses a left-handed coordinate system: Y-axis points down, + // and angle is measure from +X to +Y in a clockwise-fashion. + + Vector2 columns[3]; + + _FORCE_INLINE_ real_t tdotx(const Vector2 &v) const { return columns[0][0] * v.x + columns[1][0] * v.y; } + _FORCE_INLINE_ real_t tdoty(const Vector2 &v) const { return columns[0][1] * v.x + columns[1][1] * v.y; } + + const Vector2 &operator[](int p_idx) const { return columns[p_idx]; } + Vector2 &operator[](int p_idx) { return columns[p_idx]; } + + void invert(); + Transform2D inverse() const; + + void affine_invert(); + Transform2D affine_inverse() const; + + void set_rotation(const real_t p_rot); + real_t get_rotation() const; + real_t get_skew() const; + void set_skew(const real_t p_angle); + _FORCE_INLINE_ void set_rotation_and_scale(const real_t p_rot, const Size2 &p_scale); + _FORCE_INLINE_ void set_rotation_scale_and_skew(const real_t p_rot, const Size2 &p_scale, const real_t p_skew); + void rotate(const real_t p_angle); + + void scale(const Size2 &p_scale); + void scale_basis(const Size2 &p_scale); + void translate_local(const real_t p_tx, const real_t p_ty); + void translate_local(const Vector2 &p_translation); + + real_t basis_determinant() const; + + Size2 get_scale() const; + void set_scale(const Size2 &p_scale); + + _FORCE_INLINE_ const Vector2 &get_origin() const { return columns[2]; } + _FORCE_INLINE_ void set_origin(const Vector2 &p_origin) { columns[2] = p_origin; } + + Transform2D basis_scaled(const Size2 &p_scale) const; + Transform2D scaled(const Size2 &p_scale) const; + Transform2D scaled_local(const Size2 &p_scale) const; + Transform2D translated(const Vector2 &p_offset) const; + Transform2D translated_local(const Vector2 &p_offset) const; + Transform2D rotated(const real_t p_angle) const; + Transform2D rotated_local(const real_t p_angle) const; + + Transform2D untranslated() const; + + void orthonormalize(); + Transform2D orthonormalized() const; + bool is_equal_approx(const Transform2D &p_transform) const; + + Transform2D looking_at(const Vector2 &p_target) const; + + bool operator==(const Transform2D &p_transform) const; + bool operator!=(const Transform2D &p_transform) const; + + void operator*=(const Transform2D &p_transform); + Transform2D operator*(const Transform2D &p_transform) const; + void operator*=(const real_t p_val); + Transform2D operator*(const real_t p_val) const; + + Transform2D interpolate_with(const Transform2D &p_transform, const real_t p_c) const; + + _FORCE_INLINE_ Vector2 basis_xform(const Vector2 &p_vec) const; + _FORCE_INLINE_ Vector2 basis_xform_inv(const Vector2 &p_vec) const; + _FORCE_INLINE_ Vector2 xform(const Vector2 &p_vec) const; + _FORCE_INLINE_ Vector2 xform_inv(const Vector2 &p_vec) const; + _FORCE_INLINE_ Rect2 xform(const Rect2 &p_rect) const; + _FORCE_INLINE_ Rect2 xform_inv(const Rect2 &p_rect) const; + _FORCE_INLINE_ PackedVector2Array xform(const PackedVector2Array &p_array) const; + _FORCE_INLINE_ PackedVector2Array xform_inv(const PackedVector2Array &p_array) const; + + operator String() const; + + Transform2D(const real_t xx, const real_t xy, const real_t yx, const real_t yy, const real_t ox, const real_t oy) { + columns[0][0] = xx; + columns[0][1] = xy; + columns[1][0] = yx; + columns[1][1] = yy; + columns[2][0] = ox; + columns[2][1] = oy; + } + + Transform2D(const Vector2 &p_x, const Vector2 &p_y, const Vector2 &p_origin) { + columns[0] = p_x; + columns[1] = p_y; + columns[2] = p_origin; + } + + Transform2D(const real_t p_rot, const Vector2 &p_pos); + + Transform2D(const real_t p_rot, const Size2 &p_scale, const real_t p_skew, const Vector2 &p_pos); + + Transform2D() { + columns[0][0] = 1.0; + columns[1][1] = 1.0; + } +}; + +Vector2 Transform2D::basis_xform(const Vector2 &p_vec) const { + return Vector2( + tdotx(p_vec), + tdoty(p_vec)); +} + +Vector2 Transform2D::basis_xform_inv(const Vector2 &p_vec) const { + return Vector2( + columns[0].dot(p_vec), + columns[1].dot(p_vec)); +} + +Vector2 Transform2D::xform(const Vector2 &p_vec) const { + return Vector2( + tdotx(p_vec), + tdoty(p_vec)) + + columns[2]; +} + +Vector2 Transform2D::xform_inv(const Vector2 &p_vec) const { + Vector2 v = p_vec - columns[2]; + + return Vector2( + columns[0].dot(v), + columns[1].dot(v)); +} + +Rect2 Transform2D::xform(const Rect2 &p_rect) const { + Vector2 x = columns[0] * p_rect.size.x; + Vector2 y = columns[1] * p_rect.size.y; + Vector2 pos = xform(p_rect.position); + + Rect2 new_rect; + new_rect.position = pos; + new_rect.expand_to(pos + x); + new_rect.expand_to(pos + y); + new_rect.expand_to(pos + x + y); + return new_rect; +} + +void Transform2D::set_rotation_and_scale(const real_t p_rot, const Size2 &p_scale) { + columns[0][0] = Math::cos(p_rot) * p_scale.x; + columns[1][1] = Math::cos(p_rot) * p_scale.y; + columns[1][0] = -Math::sin(p_rot) * p_scale.y; + columns[0][1] = Math::sin(p_rot) * p_scale.x; +} + +void Transform2D::set_rotation_scale_and_skew(const real_t p_rot, const Size2 &p_scale, const real_t p_skew) { + columns[0][0] = Math::cos(p_rot) * p_scale.x; + columns[1][1] = Math::cos(p_rot + p_skew) * p_scale.y; + columns[1][0] = -Math::sin(p_rot + p_skew) * p_scale.y; + columns[0][1] = Math::sin(p_rot) * p_scale.x; +} + +Rect2 Transform2D::xform_inv(const Rect2 &p_rect) const { + Vector2 ends[4] = { + xform_inv(p_rect.position), + xform_inv(Vector2(p_rect.position.x, p_rect.position.y + p_rect.size.y)), + xform_inv(Vector2(p_rect.position.x + p_rect.size.x, p_rect.position.y + p_rect.size.y)), + xform_inv(Vector2(p_rect.position.x + p_rect.size.x, p_rect.position.y)) + }; + + Rect2 new_rect; + new_rect.position = ends[0]; + new_rect.expand_to(ends[1]); + new_rect.expand_to(ends[2]); + new_rect.expand_to(ends[3]); + + return new_rect; +} + +PackedVector2Array Transform2D::xform(const PackedVector2Array &p_array) const { + PackedVector2Array array; + array.resize(p_array.size()); + + const Vector2 *r = p_array.ptr(); + Vector2 *w = array.ptrw(); + + for (int i = 0; i < p_array.size(); ++i) { + w[i] = xform(r[i]); + } + return array; +} + +PackedVector2Array Transform2D::xform_inv(const PackedVector2Array &p_array) const { + PackedVector2Array array; + array.resize(p_array.size()); + + const Vector2 *r = p_array.ptr(); + Vector2 *w = array.ptrw(); + + for (int i = 0; i < p_array.size(); ++i) { + w[i] = xform_inv(r[i]); + } + return array; +} + +} // namespace godot + +#endif // GODOT_TRANSFORM2D_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/transform3d.hpp b/lib/godot-cpp/include/godot_cpp/variant/transform3d.hpp new file mode 100644 index 0000000..3a54c0b --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/transform3d.hpp @@ -0,0 +1,275 @@ +/**************************************************************************/ +/* transform3d.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_TRANSFORM3D_HPP +#define GODOT_TRANSFORM3D_HPP + +#include +#include +#include +#include +#include + +namespace godot { + +struct _NO_DISCARD_ Transform3D { + Basis basis; + Vector3 origin; + + void invert(); + Transform3D inverse() const; + + void affine_invert(); + Transform3D affine_inverse() const; + + Transform3D rotated(const Vector3 &p_axis, real_t p_angle) const; + Transform3D rotated_local(const Vector3 &p_axis, real_t p_angle) const; + + void rotate(const Vector3 &p_axis, real_t p_angle); + void rotate_basis(const Vector3 &p_axis, real_t p_angle); + + void set_look_at(const Vector3 &p_eye, const Vector3 &p_target, const Vector3 &p_up = Vector3(0, 1, 0)); + Transform3D looking_at(const Vector3 &p_target, const Vector3 &p_up = Vector3(0, 1, 0)) const; + + void scale(const Vector3 &p_scale); + Transform3D scaled(const Vector3 &p_scale) const; + Transform3D scaled_local(const Vector3 &p_scale) const; + void scale_basis(const Vector3 &p_scale); + void translate_local(real_t p_tx, real_t p_ty, real_t p_tz); + void translate_local(const Vector3 &p_translation); + Transform3D translated(const Vector3 &p_translation) const; + Transform3D translated_local(const Vector3 &p_translation) const; + + const Basis &get_basis() const { return basis; } + void set_basis(const Basis &p_basis) { basis = p_basis; } + + const Vector3 &get_origin() const { return origin; } + void set_origin(const Vector3 &p_origin) { origin = p_origin; } + + void orthonormalize(); + Transform3D orthonormalized() const; + void orthogonalize(); + Transform3D orthogonalized() const; + bool is_equal_approx(const Transform3D &p_transform) const; + + bool operator==(const Transform3D &p_transform) const; + bool operator!=(const Transform3D &p_transform) const; + + _FORCE_INLINE_ Vector3 xform(const Vector3 &p_vector) const; + _FORCE_INLINE_ AABB xform(const AABB &p_aabb) const; + _FORCE_INLINE_ PackedVector3Array xform(const PackedVector3Array &p_array) const; + + // NOTE: These are UNSAFE with non-uniform scaling, and will produce incorrect results. + // They use the transpose. + // For safe inverse transforms, xform by the affine_inverse. + _FORCE_INLINE_ Vector3 xform_inv(const Vector3 &p_vector) const; + _FORCE_INLINE_ AABB xform_inv(const AABB &p_aabb) const; + _FORCE_INLINE_ PackedVector3Array xform_inv(const PackedVector3Array &p_array) const; + + // Safe with non-uniform scaling (uses affine_inverse). + _FORCE_INLINE_ Plane xform(const Plane &p_plane) const; + _FORCE_INLINE_ Plane xform_inv(const Plane &p_plane) const; + + // These fast versions use precomputed affine inverse, and should be used in bottleneck areas where + // multiple planes are to be transformed. + _FORCE_INLINE_ Plane xform_fast(const Plane &p_plane, const Basis &p_basis_inverse_transpose) const; + static _FORCE_INLINE_ Plane xform_inv_fast(const Plane &p_plane, const Transform3D &p_inverse, const Basis &p_basis_transpose); + + void operator*=(const Transform3D &p_transform); + Transform3D operator*(const Transform3D &p_transform) const; + void operator*=(const real_t p_val); + Transform3D operator*(const real_t p_val) const; + + Transform3D interpolate_with(const Transform3D &p_transform, real_t p_c) const; + + _FORCE_INLINE_ Transform3D inverse_xform(const Transform3D &t) const { + Vector3 v = t.origin - origin; + return Transform3D(basis.transpose_xform(t.basis), + basis.xform(v)); + } + + void set(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz, real_t tx, real_t ty, real_t tz) { + basis.set(xx, xy, xz, yx, yy, yz, zx, zy, zz); + origin.x = tx; + origin.y = ty; + origin.z = tz; + } + + operator String() const; + + Transform3D() {} + Transform3D(const Basis &p_basis, const Vector3 &p_origin = Vector3()); + Transform3D(const Vector3 &p_x, const Vector3 &p_y, const Vector3 &p_z, const Vector3 &p_origin); + Transform3D(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz, real_t ox, real_t oy, real_t oz); +}; + +_FORCE_INLINE_ Vector3 Transform3D::xform(const Vector3 &p_vector) const { + return Vector3( + basis[0].dot(p_vector) + origin.x, + basis[1].dot(p_vector) + origin.y, + basis[2].dot(p_vector) + origin.z); +} + +_FORCE_INLINE_ Vector3 Transform3D::xform_inv(const Vector3 &p_vector) const { + Vector3 v = p_vector - origin; + + return Vector3( + (basis.rows[0][0] * v.x) + (basis.rows[1][0] * v.y) + (basis.rows[2][0] * v.z), + (basis.rows[0][1] * v.x) + (basis.rows[1][1] * v.y) + (basis.rows[2][1] * v.z), + (basis.rows[0][2] * v.x) + (basis.rows[1][2] * v.y) + (basis.rows[2][2] * v.z)); +} + +// Neither the plane regular xform or xform_inv are particularly efficient, +// as they do a basis inverse. For xforming a large number +// of planes it is better to pre-calculate the inverse transpose basis once +// and reuse it for each plane, by using the 'fast' version of the functions. +_FORCE_INLINE_ Plane Transform3D::xform(const Plane &p_plane) const { + Basis b = basis.inverse(); + b.transpose(); + return xform_fast(p_plane, b); +} + +_FORCE_INLINE_ Plane Transform3D::xform_inv(const Plane &p_plane) const { + Transform3D inv = affine_inverse(); + Basis basis_transpose = basis.transposed(); + return xform_inv_fast(p_plane, inv, basis_transpose); +} + +_FORCE_INLINE_ AABB Transform3D::xform(const AABB &p_aabb) const { + /* https://dev.theomader.com/transform-bounding-boxes/ */ + Vector3 min = p_aabb.position; + Vector3 max = p_aabb.position + p_aabb.size; + Vector3 tmin, tmax; + for (int i = 0; i < 3; i++) { + tmin[i] = tmax[i] = origin[i]; + for (int j = 0; j < 3; j++) { + real_t e = basis[i][j] * min[j]; + real_t f = basis[i][j] * max[j]; + if (e < f) { + tmin[i] += e; + tmax[i] += f; + } else { + tmin[i] += f; + tmax[i] += e; + } + } + } + AABB r_aabb; + r_aabb.position = tmin; + r_aabb.size = tmax - tmin; + return r_aabb; +} + +_FORCE_INLINE_ AABB Transform3D::xform_inv(const AABB &p_aabb) const { + /* define vertices */ + Vector3 vertices[8] = { + Vector3(p_aabb.position.x + p_aabb.size.x, p_aabb.position.y + p_aabb.size.y, p_aabb.position.z + p_aabb.size.z), + Vector3(p_aabb.position.x + p_aabb.size.x, p_aabb.position.y + p_aabb.size.y, p_aabb.position.z), + Vector3(p_aabb.position.x + p_aabb.size.x, p_aabb.position.y, p_aabb.position.z + p_aabb.size.z), + Vector3(p_aabb.position.x + p_aabb.size.x, p_aabb.position.y, p_aabb.position.z), + Vector3(p_aabb.position.x, p_aabb.position.y + p_aabb.size.y, p_aabb.position.z + p_aabb.size.z), + Vector3(p_aabb.position.x, p_aabb.position.y + p_aabb.size.y, p_aabb.position.z), + Vector3(p_aabb.position.x, p_aabb.position.y, p_aabb.position.z + p_aabb.size.z), + Vector3(p_aabb.position.x, p_aabb.position.y, p_aabb.position.z) + }; + + AABB ret; + + ret.position = xform_inv(vertices[0]); + + for (int i = 1; i < 8; i++) { + ret.expand_to(xform_inv(vertices[i])); + } + + return ret; +} + +PackedVector3Array Transform3D::xform(const PackedVector3Array &p_array) const { + PackedVector3Array array; + array.resize(p_array.size()); + + const Vector3 *r = p_array.ptr(); + Vector3 *w = array.ptrw(); + + for (int i = 0; i < p_array.size(); ++i) { + w[i] = xform(r[i]); + } + return array; +} + +PackedVector3Array Transform3D::xform_inv(const PackedVector3Array &p_array) const { + PackedVector3Array array; + array.resize(p_array.size()); + + const Vector3 *r = p_array.ptr(); + Vector3 *w = array.ptrw(); + + for (int i = 0; i < p_array.size(); ++i) { + w[i] = xform_inv(r[i]); + } + return array; +} + +_FORCE_INLINE_ Plane Transform3D::xform_fast(const Plane &p_plane, const Basis &p_basis_inverse_transpose) const { + // Transform a single point on the plane. + Vector3 point = p_plane.normal * p_plane.d; + point = xform(point); + + // Use inverse transpose for correct normals with non-uniform scaling. + Vector3 normal = p_basis_inverse_transpose.xform(p_plane.normal); + normal.normalize(); + + real_t d = normal.dot(point); + return Plane(normal, d); +} + +_FORCE_INLINE_ Plane Transform3D::xform_inv_fast(const Plane &p_plane, const Transform3D &p_inverse, const Basis &p_basis_transpose) { + // Transform a single point on the plane. + Vector3 point = p_plane.normal * p_plane.d; + point = p_inverse.xform(point); + + // Note that instead of precalculating the transpose, an alternative + // would be to use the transpose for the basis transform. + // However that would be less SIMD friendly (requiring a swizzle). + // So the cost is one extra precalced value in the calling code. + // This is probably worth it, as this could be used in bottleneck areas. And + // where it is not a bottleneck, the non-fast method is fine. + + // Use transpose for correct normals with non-uniform scaling. + Vector3 normal = p_basis_transpose.xform(p_plane.normal); + normal.normalize(); + + real_t d = normal.dot(point); + return Plane(normal, d); +} + +} // namespace godot + +#endif // GODOT_TRANSFORM3D_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/typed_array.hpp b/lib/godot-cpp/include/godot_cpp/variant/typed_array.hpp new file mode 100644 index 0000000..5e7084e --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/typed_array.hpp @@ -0,0 +1,122 @@ +/**************************************************************************/ +/* typed_array.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_TYPED_ARRAY_HPP +#define GODOT_TYPED_ARRAY_HPP + +#include +#include + +namespace godot { + +template +class TypedArray : public Array { +public: + _FORCE_INLINE_ void operator=(const Array &p_array) { + ERR_FAIL_COND_MSG(!is_same_typed(p_array), "Cannot assign an array with a different element type."); + _ref(p_array); + } + _FORCE_INLINE_ TypedArray(const Variant &p_variant) : + Array(p_variant.operator Array(), Variant::OBJECT, T::get_class_static(), Variant()) { + } + _FORCE_INLINE_ TypedArray(const Array &p_array) : + Array(p_array, Variant::OBJECT, T::get_class_static(), Variant()) { + } + _FORCE_INLINE_ TypedArray() { + set_typed(Variant::OBJECT, T::get_class_static(), Variant()); + } +}; + +// specialization for the rest of variant types + +#define MAKE_TYPED_ARRAY(m_type, m_variant_type) \ + template <> \ + class TypedArray : public Array { \ + public: \ + _FORCE_INLINE_ void operator=(const Array &p_array) { \ + ERR_FAIL_COND_MSG(!is_same_typed(p_array), "Cannot assign an array with a different element type."); \ + _ref(p_array); \ + } \ + _FORCE_INLINE_ TypedArray(const Variant &p_variant) : \ + Array(p_variant.operator Array(), m_variant_type, StringName(), Variant()) { \ + } \ + _FORCE_INLINE_ TypedArray(const Array &p_array) : \ + Array(p_array, m_variant_type, StringName(), Variant()) { \ + } \ + _FORCE_INLINE_ TypedArray() { \ + set_typed(m_variant_type, StringName(), Variant()); \ + } \ + }; + +MAKE_TYPED_ARRAY(bool, Variant::BOOL) +MAKE_TYPED_ARRAY(uint8_t, Variant::INT) +MAKE_TYPED_ARRAY(int8_t, Variant::INT) +MAKE_TYPED_ARRAY(uint16_t, Variant::INT) +MAKE_TYPED_ARRAY(int16_t, Variant::INT) +MAKE_TYPED_ARRAY(uint32_t, Variant::INT) +MAKE_TYPED_ARRAY(int32_t, Variant::INT) +MAKE_TYPED_ARRAY(uint64_t, Variant::INT) +MAKE_TYPED_ARRAY(int64_t, Variant::INT) +MAKE_TYPED_ARRAY(float, Variant::FLOAT) +MAKE_TYPED_ARRAY(double, Variant::FLOAT) +MAKE_TYPED_ARRAY(String, Variant::STRING) +MAKE_TYPED_ARRAY(Vector2, Variant::VECTOR2) +MAKE_TYPED_ARRAY(Vector2i, Variant::VECTOR2I) +MAKE_TYPED_ARRAY(Rect2, Variant::RECT2) +MAKE_TYPED_ARRAY(Rect2i, Variant::RECT2I) +MAKE_TYPED_ARRAY(Vector3, Variant::VECTOR3) +MAKE_TYPED_ARRAY(Vector3i, Variant::VECTOR3I) +MAKE_TYPED_ARRAY(Transform2D, Variant::TRANSFORM2D) +MAKE_TYPED_ARRAY(Plane, Variant::PLANE) +MAKE_TYPED_ARRAY(Quaternion, Variant::QUATERNION) +MAKE_TYPED_ARRAY(AABB, Variant::AABB) +MAKE_TYPED_ARRAY(Basis, Variant::BASIS) +MAKE_TYPED_ARRAY(Transform3D, Variant::TRANSFORM3D) +MAKE_TYPED_ARRAY(Color, Variant::COLOR) +MAKE_TYPED_ARRAY(StringName, Variant::STRING_NAME) +MAKE_TYPED_ARRAY(NodePath, Variant::NODE_PATH) +MAKE_TYPED_ARRAY(RID, Variant::RID) +MAKE_TYPED_ARRAY(Callable, Variant::CALLABLE) +MAKE_TYPED_ARRAY(Signal, Variant::SIGNAL) +MAKE_TYPED_ARRAY(Dictionary, Variant::DICTIONARY) +MAKE_TYPED_ARRAY(Array, Variant::ARRAY) +MAKE_TYPED_ARRAY(PackedByteArray, Variant::PACKED_BYTE_ARRAY) +MAKE_TYPED_ARRAY(PackedInt32Array, Variant::PACKED_INT32_ARRAY) +MAKE_TYPED_ARRAY(PackedInt64Array, Variant::PACKED_INT64_ARRAY) +MAKE_TYPED_ARRAY(PackedFloat32Array, Variant::PACKED_FLOAT32_ARRAY) +MAKE_TYPED_ARRAY(PackedFloat64Array, Variant::PACKED_FLOAT64_ARRAY) +MAKE_TYPED_ARRAY(PackedStringArray, Variant::PACKED_STRING_ARRAY) +MAKE_TYPED_ARRAY(PackedVector2Array, Variant::PACKED_VECTOR2_ARRAY) +MAKE_TYPED_ARRAY(PackedVector3Array, Variant::PACKED_VECTOR3_ARRAY) +MAKE_TYPED_ARRAY(PackedColorArray, Variant::PACKED_COLOR_ARRAY) + +} // namespace godot + +#endif // GODOT_TYPED_ARRAY_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/variant.hpp b/lib/godot-cpp/include/godot_cpp/variant/variant.hpp new file mode 100644 index 0000000..06ba75f --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/variant.hpp @@ -0,0 +1,339 @@ +/**************************************************************************/ +/* variant.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VARIANT_HPP +#define GODOT_VARIANT_HPP + +#include + +#include +#include + +#include + +#include + +namespace godot { + +class ObjectID; + +class Variant { + uint8_t opaque[GODOT_CPP_VARIANT_SIZE]{ 0 }; + + _FORCE_INLINE_ GDExtensionVariantPtr _native_ptr() const { return const_cast(&opaque); } + + friend class GDExtensionBinding; + friend class MethodBind; + + static void init_bindings(); + +public: + enum Type { + NIL, + + // atomic types + BOOL, + INT, + FLOAT, + STRING, + + // math types + VECTOR2, + VECTOR2I, + RECT2, + RECT2I, + VECTOR3, + VECTOR3I, + TRANSFORM2D, + VECTOR4, + VECTOR4I, + PLANE, + QUATERNION, + AABB, + BASIS, + TRANSFORM3D, + PROJECTION, + + // misc types + COLOR, + STRING_NAME, + NODE_PATH, + RID, + OBJECT, + CALLABLE, + SIGNAL, + DICTIONARY, + ARRAY, + + // typed arrays + PACKED_BYTE_ARRAY, + PACKED_INT32_ARRAY, + PACKED_INT64_ARRAY, + PACKED_FLOAT32_ARRAY, + PACKED_FLOAT64_ARRAY, + PACKED_STRING_ARRAY, + PACKED_VECTOR2_ARRAY, + PACKED_VECTOR3_ARRAY, + PACKED_COLOR_ARRAY, + + VARIANT_MAX + }; + + enum Operator { + // comparison + OP_EQUAL, + OP_NOT_EQUAL, + OP_LESS, + OP_LESS_EQUAL, + OP_GREATER, + OP_GREATER_EQUAL, + // mathematic + OP_ADD, + OP_SUBTRACT, + OP_MULTIPLY, + OP_DIVIDE, + OP_NEGATE, + OP_POSITIVE, + OP_MODULE, + // bitwise + OP_SHIFT_LEFT, + OP_SHIFT_RIGHT, + OP_BIT_AND, + OP_BIT_OR, + OP_BIT_XOR, + OP_BIT_NEGATE, + // logic + OP_AND, + OP_OR, + OP_XOR, + OP_NOT, + // containment + OP_IN, + OP_MAX + }; + +private: + static GDExtensionVariantFromTypeConstructorFunc from_type_constructor[VARIANT_MAX]; + static GDExtensionTypeFromVariantConstructorFunc to_type_constructor[VARIANT_MAX]; + +public: + Variant(); + Variant(std::nullptr_t n) : + Variant() {} + explicit Variant(GDExtensionConstVariantPtr native_ptr); + Variant(const Variant &other); + Variant(Variant &&other); + Variant(bool v); + Variant(int64_t v); + Variant(int32_t v) : + Variant(static_cast(v)) {} + Variant(uint32_t v) : + Variant(static_cast(v)) {} + Variant(uint64_t v) : + Variant(static_cast(v)) {} + Variant(double v); + Variant(float v) : + Variant((double)v) {} + Variant(const String &v); + Variant(const char *v) : + Variant(String(v)) {} + Variant(const char16_t *v) : + Variant(String(v)) {} + Variant(const char32_t *v) : + Variant(String(v)) {} + Variant(const wchar_t *v) : + Variant(String(v)) {} + Variant(const Vector2 &v); + Variant(const Vector2i &v); + Variant(const Rect2 &v); + Variant(const Rect2i &v); + Variant(const Vector3 &v); + Variant(const Vector3i &v); + Variant(const Transform2D &v); + Variant(const Vector4 &v); + Variant(const Vector4i &v); + Variant(const Plane &v); + Variant(const Quaternion &v); + Variant(const godot::AABB &v); + Variant(const Basis &v); + Variant(const Transform3D &v); + Variant(const Projection &v); + Variant(const Color &v); + Variant(const StringName &v); + Variant(const NodePath &v); + Variant(const godot::RID &v); + Variant(const ObjectID &v); + Variant(const Object *v); + Variant(const Callable &v); + Variant(const Signal &v); + Variant(const Dictionary &v); + Variant(const Array &v); + Variant(const PackedByteArray &v); + Variant(const PackedInt32Array &v); + Variant(const PackedInt64Array &v); + Variant(const PackedFloat32Array &v); + Variant(const PackedFloat64Array &v); + Variant(const PackedStringArray &v); + Variant(const PackedVector2Array &v); + Variant(const PackedVector3Array &v); + Variant(const PackedColorArray &v); + ~Variant(); + + operator bool() const; + operator int64_t() const; + operator int32_t() const; + operator uint64_t() const; + operator uint32_t() const; + operator double() const; + operator float() const; + operator String() const; + operator Vector2() const; + operator Vector2i() const; + operator Rect2() const; + operator Rect2i() const; + operator Vector3() const; + operator Vector3i() const; + operator Transform2D() const; + operator Vector4() const; + operator Vector4i() const; + operator Plane() const; + operator Quaternion() const; + operator godot::AABB() const; + operator Basis() const; + operator Transform3D() const; + operator Projection() const; + operator Color() const; + operator StringName() const; + operator NodePath() const; + operator godot::RID() const; + operator ObjectID() const; + operator Object *() const; + operator Callable() const; + operator Signal() const; + operator Dictionary() const; + operator Array() const; + operator PackedByteArray() const; + operator PackedInt32Array() const; + operator PackedInt64Array() const; + operator PackedFloat32Array() const; + operator PackedFloat64Array() const; + operator PackedStringArray() const; + operator PackedVector2Array() const; + operator PackedVector3Array() const; + operator PackedColorArray() const; + + Variant &operator=(const Variant &other); + Variant &operator=(Variant &&other); + bool operator==(const Variant &other) const; + bool operator!=(const Variant &other) const; + bool operator<(const Variant &other) const; + + void call(const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error); + + template + Variant call(const StringName &method, Args... args) { + Variant result; + GDExtensionCallError error; + std::array call_args = { Variant(args)... }; + call(method, call_args.data(), call_args.size(), result, error); + return result; + } + + static void call_static(Variant::Type type, const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error); + + template + static Variant call_static(Variant::Type type, const StringName &method, Args... args) { + Variant result; + GDExtensionCallError error; + std::array call_args = { Variant(args)... }; + call_static(type, method, call_args.data(), call_args.size(), result, error); + return result; + } + + static void evaluate(const Operator &op, const Variant &a, const Variant &b, Variant &r_ret, bool &r_valid); + + void set(const Variant &key, const Variant &value, bool *r_valid = nullptr); + void set_named(const StringName &name, const Variant &value, bool &r_valid); + void set_indexed(int64_t index, const Variant &value, bool &r_valid, bool &r_oob); + void set_keyed(const Variant &key, const Variant &value, bool &r_valid); + Variant get(const Variant &key, bool *r_valid = nullptr) const; + Variant get_named(const StringName &name, bool &r_valid) const; + Variant get_indexed(int64_t index, bool &r_valid, bool &r_oob) const; + Variant get_keyed(const Variant &key, bool &r_valid) const; + bool in(const Variant &index, bool *r_valid = nullptr) const; + + bool iter_init(Variant &r_iter, bool &r_valid) const; + bool iter_next(Variant &r_iter, bool &r_valid) const; + Variant iter_get(const Variant &r_iter, bool &r_valid) const; + + Variant::Type get_type() const; + bool has_method(const StringName &method) const; + bool has_key(const Variant &key, bool *r_valid = nullptr) const; + static bool has_member(Variant::Type type, const StringName &member); + + uint32_t hash() const; + uint32_t recursive_hash(int recursion_count) const; + bool hash_compare(const Variant &variant) const; + bool booleanize() const; + String stringify() const; + Variant duplicate(bool deep = false) const; + static void blend(const Variant &a, const Variant &b, float c, Variant &r_dst); + static void interpolate(const Variant &a, const Variant &b, float c, Variant &r_dst); + + static String get_type_name(Variant::Type type); + static bool can_convert(Variant::Type from, Variant::Type to); + static bool can_convert_strict(Variant::Type from, Variant::Type to); + + void clear(); +}; + +struct VariantHasher { + static _FORCE_INLINE_ uint32_t hash(const Variant &p_variant) { return p_variant.hash(); } +}; + +struct VariantComparator { + static _FORCE_INLINE_ bool compare(const Variant &p_lhs, const Variant &p_rhs) { return p_lhs.hash_compare(p_rhs); } +}; + +template +String vformat(const String &p_text, const VarArgs... p_args) { + Variant args[sizeof...(p_args) + 1] = { p_args..., Variant() }; // +1 makes sure zero sized arrays are also supported. + Array args_array; + args_array.resize(sizeof...(p_args)); + for (uint32_t i = 0; i < sizeof...(p_args); i++) { + args_array[i] = args[i]; + } + + return p_text % args_array; +} + +} // namespace godot + +#endif // GODOT_VARIANT_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector2.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector2.hpp new file mode 100644 index 0000000..13c0da6 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector2.hpp @@ -0,0 +1,323 @@ +/**************************************************************************/ +/* vector2.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR2_HPP +#define GODOT_VECTOR2_HPP + +#include +#include + +namespace godot { + +class String; +struct Vector2i; + +struct _NO_DISCARD_ Vector2 { + static const int AXIS_COUNT = 2; + + enum Axis { + AXIS_X, + AXIS_Y, + }; + + union { + struct { + union { + real_t x; + real_t width; + }; + union { + real_t y; + real_t height; + }; + }; + + real_t coord[2] = { 0 }; + }; + + _FORCE_INLINE_ real_t &operator[](int p_idx) { + DEV_ASSERT((unsigned int)p_idx < 2); + return coord[p_idx]; + } + _FORCE_INLINE_ const real_t &operator[](int p_idx) const { + DEV_ASSERT((unsigned int)p_idx < 2); + return coord[p_idx]; + } + + _FORCE_INLINE_ Vector2::Axis min_axis_index() const { + return x < y ? Vector2::AXIS_X : Vector2::AXIS_Y; + } + + _FORCE_INLINE_ Vector2::Axis max_axis_index() const { + return x < y ? Vector2::AXIS_Y : Vector2::AXIS_X; + } + + void normalize(); + Vector2 normalized() const; + bool is_normalized() const; + + real_t length() const; + real_t length_squared() const; + Vector2 limit_length(const real_t p_len = 1.0) const; + + Vector2 min(const Vector2 &p_vector2) const { + return Vector2(MIN(x, p_vector2.x), MIN(y, p_vector2.y)); + } + + Vector2 max(const Vector2 &p_vector2) const { + return Vector2(MAX(x, p_vector2.x), MAX(y, p_vector2.y)); + } + + real_t distance_to(const Vector2 &p_vector2) const; + real_t distance_squared_to(const Vector2 &p_vector2) const; + real_t angle_to(const Vector2 &p_vector2) const; + real_t angle_to_point(const Vector2 &p_vector2) const; + _FORCE_INLINE_ Vector2 direction_to(const Vector2 &p_to) const; + + real_t dot(const Vector2 &p_other) const; + real_t cross(const Vector2 &p_other) const; + Vector2 posmod(const real_t p_mod) const; + Vector2 posmodv(const Vector2 &p_modv) const; + Vector2 project(const Vector2 &p_to) const; + + Vector2 plane_project(const real_t p_d, const Vector2 &p_vec) const; + + _FORCE_INLINE_ Vector2 lerp(const Vector2 &p_to, const real_t p_weight) const; + _FORCE_INLINE_ Vector2 slerp(const Vector2 &p_to, const real_t p_weight) const; + _FORCE_INLINE_ Vector2 cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight) const; + _FORCE_INLINE_ Vector2 cubic_interpolate_in_time(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const; + _FORCE_INLINE_ Vector2 bezier_interpolate(const Vector2 &p_control_1, const Vector2 &p_control_2, const Vector2 &p_end, const real_t p_t) const; + + Vector2 move_toward(const Vector2 &p_to, const real_t p_delta) const; + + Vector2 slide(const Vector2 &p_normal) const; + Vector2 bounce(const Vector2 &p_normal) const; + Vector2 reflect(const Vector2 &p_normal) const; + + bool is_equal_approx(const Vector2 &p_v) const; + bool is_zero_approx() const; + + Vector2 operator+(const Vector2 &p_v) const; + void operator+=(const Vector2 &p_v); + Vector2 operator-(const Vector2 &p_v) const; + void operator-=(const Vector2 &p_v); + Vector2 operator*(const Vector2 &p_v1) const; + + Vector2 operator*(const real_t &rvalue) const; + void operator*=(const real_t &rvalue); + void operator*=(const Vector2 &rvalue) { *this = *this * rvalue; } + + Vector2 operator/(const Vector2 &p_v1) const; + + Vector2 operator/(const real_t &rvalue) const; + + void operator/=(const real_t &rvalue); + void operator/=(const Vector2 &rvalue) { *this = *this / rvalue; } + + Vector2 operator-() const; + + bool operator==(const Vector2 &p_vec2) const; + bool operator!=(const Vector2 &p_vec2) const; + + bool operator<(const Vector2 &p_vec2) const { return x == p_vec2.x ? (y < p_vec2.y) : (x < p_vec2.x); } + bool operator>(const Vector2 &p_vec2) const { return x == p_vec2.x ? (y > p_vec2.y) : (x > p_vec2.x); } + bool operator<=(const Vector2 &p_vec2) const { return x == p_vec2.x ? (y <= p_vec2.y) : (x < p_vec2.x); } + bool operator>=(const Vector2 &p_vec2) const { return x == p_vec2.x ? (y >= p_vec2.y) : (x > p_vec2.x); } + + real_t angle() const; + static Vector2 from_angle(const real_t p_angle); + + _FORCE_INLINE_ Vector2 abs() const { + return Vector2(Math::abs(x), Math::abs(y)); + } + + Vector2 rotated(const real_t p_by) const; + Vector2 orthogonal() const { + return Vector2(y, -x); + } + + Vector2 sign() const; + Vector2 floor() const; + Vector2 ceil() const; + Vector2 round() const; + Vector2 snapped(const Vector2 &p_by) const; + Vector2 clamp(const Vector2 &p_min, const Vector2 &p_max) const; + real_t aspect() const { return width / height; } + + operator String() const; + operator Vector2i() const; + + _FORCE_INLINE_ Vector2() {} + _FORCE_INLINE_ Vector2(const real_t p_x, const real_t p_y) { + x = p_x; + y = p_y; + } +}; + +_FORCE_INLINE_ Vector2 Vector2::plane_project(const real_t p_d, const Vector2 &p_vec) const { + return p_vec - *this * (dot(p_vec) - p_d); +} + +_FORCE_INLINE_ Vector2 Vector2::operator+(const Vector2 &p_v) const { + return Vector2(x + p_v.x, y + p_v.y); +} + +_FORCE_INLINE_ void Vector2::operator+=(const Vector2 &p_v) { + x += p_v.x; + y += p_v.y; +} + +_FORCE_INLINE_ Vector2 Vector2::operator-(const Vector2 &p_v) const { + return Vector2(x - p_v.x, y - p_v.y); +} + +_FORCE_INLINE_ void Vector2::operator-=(const Vector2 &p_v) { + x -= p_v.x; + y -= p_v.y; +} + +_FORCE_INLINE_ Vector2 Vector2::operator*(const Vector2 &p_v1) const { + return Vector2(x * p_v1.x, y * p_v1.y); +} + +_FORCE_INLINE_ Vector2 Vector2::operator*(const real_t &rvalue) const { + return Vector2(x * rvalue, y * rvalue); +} + +_FORCE_INLINE_ void Vector2::operator*=(const real_t &rvalue) { + x *= rvalue; + y *= rvalue; +} + +_FORCE_INLINE_ Vector2 Vector2::operator/(const Vector2 &p_v1) const { + return Vector2(x / p_v1.x, y / p_v1.y); +} + +_FORCE_INLINE_ Vector2 Vector2::operator/(const real_t &rvalue) const { + return Vector2(x / rvalue, y / rvalue); +} + +_FORCE_INLINE_ void Vector2::operator/=(const real_t &rvalue) { + x /= rvalue; + y /= rvalue; +} + +_FORCE_INLINE_ Vector2 Vector2::operator-() const { + return Vector2(-x, -y); +} + +_FORCE_INLINE_ bool Vector2::operator==(const Vector2 &p_vec2) const { + return x == p_vec2.x && y == p_vec2.y; +} + +_FORCE_INLINE_ bool Vector2::operator!=(const Vector2 &p_vec2) const { + return x != p_vec2.x || y != p_vec2.y; +} + +Vector2 Vector2::lerp(const Vector2 &p_to, const real_t p_weight) const { + Vector2 res = *this; + + res.x += (p_weight * (p_to.x - x)); + res.y += (p_weight * (p_to.y - y)); + + return res; +} + +Vector2 Vector2::slerp(const Vector2 &p_to, const real_t p_weight) const { + real_t start_length_sq = length_squared(); + real_t end_length_sq = p_to.length_squared(); + if (unlikely(start_length_sq == 0.0f || end_length_sq == 0.0f)) { + // Zero length vectors have no angle, so the best we can do is either lerp or throw an error. + return lerp(p_to, p_weight); + } + real_t start_length = Math::sqrt(start_length_sq); + real_t result_length = Math::lerp(start_length, Math::sqrt(end_length_sq), p_weight); + real_t angle = angle_to(p_to); + return rotated(angle * p_weight) * (result_length / start_length); +} + +Vector2 Vector2::cubic_interpolate(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight) const { + Vector2 res = *this; + res.x = Math::cubic_interpolate(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight); + res.y = Math::cubic_interpolate(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight); + return res; +} + +Vector2 Vector2::cubic_interpolate_in_time(const Vector2 &p_b, const Vector2 &p_pre_a, const Vector2 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const { + Vector2 res = *this; + res.x = Math::cubic_interpolate_in_time(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.y = Math::cubic_interpolate_in_time(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + return res; +} + +Vector2 Vector2::bezier_interpolate(const Vector2 &p_control_1, const Vector2 &p_control_2, const Vector2 &p_end, const real_t p_t) const { + Vector2 res = *this; + + /* Formula from Wikipedia article on Bezier curves. */ + real_t omt = (1.0 - p_t); + real_t omt2 = omt * omt; + real_t omt3 = omt2 * omt; + real_t t2 = p_t * p_t; + real_t t3 = t2 * p_t; + + return res * omt3 + p_control_1 * omt2 * p_t * 3.0 + p_control_2 * omt * t2 * 3.0 + p_end * t3; +} + +Vector2 Vector2::direction_to(const Vector2 &p_to) const { + Vector2 ret(p_to.x - x, p_to.y - y); + ret.normalize(); + return ret; +} + +// Multiplication operators required to workaround issues with LLVM using implicit conversion +// to Vector2i instead for integers where it should not. + +_FORCE_INLINE_ Vector2 operator*(const float p_scalar, const Vector2 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector2 operator*(const double p_scalar, const Vector2 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector2 operator*(const int32_t p_scalar, const Vector2 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector2 operator*(const int64_t p_scalar, const Vector2 &p_vec) { + return p_vec * p_scalar; +} + +typedef Vector2 Size2; +typedef Vector2 Point2; + +} // namespace godot + +#endif // GODOT_VECTOR2_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector2i.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector2i.hpp new file mode 100644 index 0000000..b3eeec3 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector2i.hpp @@ -0,0 +1,158 @@ +/**************************************************************************/ +/* vector2i.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR2I_HPP +#define GODOT_VECTOR2I_HPP + +#include +#include + +namespace godot { + +class String; +struct Vector2; + +struct _NO_DISCARD_ Vector2i { + static const int AXIS_COUNT = 2; + + enum Axis { + AXIS_X, + AXIS_Y, + }; + + union { + struct { + union { + int32_t x; + int32_t width; + }; + union { + int32_t y; + int32_t height; + }; + }; + + int32_t coord[2] = { 0 }; + }; + + _FORCE_INLINE_ int32_t &operator[](int p_idx) { + DEV_ASSERT((unsigned int)p_idx < 2); + return coord[p_idx]; + } + _FORCE_INLINE_ const int32_t &operator[](int p_idx) const { + DEV_ASSERT((unsigned int)p_idx < 2); + return coord[p_idx]; + } + + _FORCE_INLINE_ Vector2i::Axis min_axis_index() const { + return x < y ? Vector2i::AXIS_X : Vector2i::AXIS_Y; + } + + _FORCE_INLINE_ Vector2i::Axis max_axis_index() const { + return x < y ? Vector2i::AXIS_Y : Vector2i::AXIS_X; + } + + Vector2i min(const Vector2i &p_vector2i) const { + return Vector2i(MIN(x, p_vector2i.x), MIN(y, p_vector2i.y)); + } + + Vector2i max(const Vector2i &p_vector2i) const { + return Vector2i(MAX(x, p_vector2i.x), MAX(y, p_vector2i.y)); + } + + Vector2i operator+(const Vector2i &p_v) const; + void operator+=(const Vector2i &p_v); + Vector2i operator-(const Vector2i &p_v) const; + void operator-=(const Vector2i &p_v); + Vector2i operator*(const Vector2i &p_v1) const; + + Vector2i operator*(const int32_t &rvalue) const; + void operator*=(const int32_t &rvalue); + + Vector2i operator/(const Vector2i &p_v1) const; + Vector2i operator/(const int32_t &rvalue) const; + void operator/=(const int32_t &rvalue); + + Vector2i operator%(const Vector2i &p_v1) const; + Vector2i operator%(const int32_t &rvalue) const; + void operator%=(const int32_t &rvalue); + + Vector2i operator-() const; + bool operator<(const Vector2i &p_vec2) const { return (x == p_vec2.x) ? (y < p_vec2.y) : (x < p_vec2.x); } + bool operator>(const Vector2i &p_vec2) const { return (x == p_vec2.x) ? (y > p_vec2.y) : (x > p_vec2.x); } + + bool operator<=(const Vector2i &p_vec2) const { return x == p_vec2.x ? (y <= p_vec2.y) : (x < p_vec2.x); } + bool operator>=(const Vector2i &p_vec2) const { return x == p_vec2.x ? (y >= p_vec2.y) : (x > p_vec2.x); } + + bool operator==(const Vector2i &p_vec2) const; + bool operator!=(const Vector2i &p_vec2) const; + + int64_t length_squared() const; + double length() const; + + real_t aspect() const { return width / (real_t)height; } + Vector2i sign() const { return Vector2i(SIGN(x), SIGN(y)); } + Vector2i abs() const { return Vector2i(Math::abs(x), Math::abs(y)); } + Vector2i clamp(const Vector2i &p_min, const Vector2i &p_max) const; + + operator String() const; + operator Vector2() const; + + inline Vector2i() {} + inline Vector2i(const int32_t p_x, const int32_t p_y) { + x = p_x; + y = p_y; + } +}; + +// Multiplication operators required to workaround issues with LLVM using implicit conversion. + +_FORCE_INLINE_ Vector2i operator*(const int32_t p_scalar, const Vector2i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector2i operator*(const int64_t p_scalar, const Vector2i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector2i operator*(const float p_scalar, const Vector2i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector2i operator*(const double p_scalar, const Vector2i &p_vector) { + return p_vector * p_scalar; +} + +typedef Vector2i Size2i; +typedef Vector2i Point2i; + +} // namespace godot + +#endif // GODOT_VECTOR2I_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector3.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector3.hpp new file mode 100644 index 0000000..2ccd6cf --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector3.hpp @@ -0,0 +1,521 @@ +/**************************************************************************/ +/* vector3.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR3_HPP +#define GODOT_VECTOR3_HPP + +#include +#include + +namespace godot { + +class String; +struct Basis; +struct Vector2; +struct Vector3i; + +struct _NO_DISCARD_ Vector3 { + static const int AXIS_COUNT = 3; + + enum Axis { + AXIS_X, + AXIS_Y, + AXIS_Z, + }; + + union { + struct { + real_t x; + real_t y; + real_t z; + }; + + real_t coord[3] = { 0 }; + }; + + _FORCE_INLINE_ const real_t &operator[](const int p_axis) const { + DEV_ASSERT((unsigned int)p_axis < 3); + return coord[p_axis]; + } + + _FORCE_INLINE_ real_t &operator[](const int p_axis) { + DEV_ASSERT((unsigned int)p_axis < 3); + return coord[p_axis]; + } + + _FORCE_INLINE_ Vector3::Axis min_axis_index() const { + return x < y ? (x < z ? Vector3::AXIS_X : Vector3::AXIS_Z) : (y < z ? Vector3::AXIS_Y : Vector3::AXIS_Z); + } + + _FORCE_INLINE_ Vector3::Axis max_axis_index() const { + return x < y ? (y < z ? Vector3::AXIS_Z : Vector3::AXIS_Y) : (x < z ? Vector3::AXIS_Z : Vector3::AXIS_X); + } + + _FORCE_INLINE_ real_t length() const; + _FORCE_INLINE_ real_t length_squared() const; + + _FORCE_INLINE_ void normalize(); + _FORCE_INLINE_ Vector3 normalized() const; + _FORCE_INLINE_ bool is_normalized() const; + _FORCE_INLINE_ Vector3 inverse() const; + Vector3 limit_length(const real_t p_len = 1.0) const; + + _FORCE_INLINE_ void zero(); + + void snap(const Vector3 p_val); + Vector3 snapped(const Vector3 p_val) const; + + void rotate(const Vector3 &p_axis, const real_t p_angle); + Vector3 rotated(const Vector3 &p_axis, const real_t p_angle) const; + + /* Static Methods between 2 vector3s */ + + _FORCE_INLINE_ Vector3 lerp(const Vector3 &p_to, const real_t p_weight) const; + _FORCE_INLINE_ Vector3 slerp(const Vector3 &p_to, const real_t p_weight) const; + _FORCE_INLINE_ Vector3 cubic_interpolate(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, const real_t p_weight) const; + _FORCE_INLINE_ Vector3 cubic_interpolate_in_time(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const; + _FORCE_INLINE_ Vector3 bezier_interpolate(const Vector3 &p_control_1, const Vector3 &p_control_2, const Vector3 &p_end, const real_t p_t) const; + + Vector3 move_toward(const Vector3 &p_to, const real_t p_delta) const; + + Vector2 octahedron_encode() const; + static Vector3 octahedron_decode(const Vector2 &p_oct); + Vector2 octahedron_tangent_encode(const float sign) const; + static Vector3 octahedron_tangent_decode(const Vector2 &p_oct, float *sign); + + _FORCE_INLINE_ Vector3 cross(const Vector3 &p_with) const; + _FORCE_INLINE_ real_t dot(const Vector3 &p_with) const; + Basis outer(const Vector3 &p_with) const; + + _FORCE_INLINE_ Vector3 abs() const; + _FORCE_INLINE_ Vector3 floor() const; + _FORCE_INLINE_ Vector3 sign() const; + _FORCE_INLINE_ Vector3 ceil() const; + _FORCE_INLINE_ Vector3 round() const; + Vector3 clamp(const Vector3 &p_min, const Vector3 &p_max) const; + + _FORCE_INLINE_ real_t distance_to(const Vector3 &p_to) const; + _FORCE_INLINE_ real_t distance_squared_to(const Vector3 &p_to) const; + + _FORCE_INLINE_ Vector3 posmod(const real_t p_mod) const; + _FORCE_INLINE_ Vector3 posmodv(const Vector3 &p_modv) const; + _FORCE_INLINE_ Vector3 project(const Vector3 &p_to) const; + + _FORCE_INLINE_ real_t angle_to(const Vector3 &p_to) const; + _FORCE_INLINE_ real_t signed_angle_to(const Vector3 &p_to, const Vector3 &p_axis) const; + _FORCE_INLINE_ Vector3 direction_to(const Vector3 &p_to) const; + + _FORCE_INLINE_ Vector3 slide(const Vector3 &p_normal) const; + _FORCE_INLINE_ Vector3 bounce(const Vector3 &p_normal) const; + _FORCE_INLINE_ Vector3 reflect(const Vector3 &p_normal) const; + + bool is_equal_approx(const Vector3 &p_v) const; + bool is_zero_approx() const; + + /* Operators */ + + _FORCE_INLINE_ Vector3 &operator+=(const Vector3 &p_v); + _FORCE_INLINE_ Vector3 operator+(const Vector3 &p_v) const; + _FORCE_INLINE_ Vector3 &operator-=(const Vector3 &p_v); + _FORCE_INLINE_ Vector3 operator-(const Vector3 &p_v) const; + _FORCE_INLINE_ Vector3 &operator*=(const Vector3 &p_v); + _FORCE_INLINE_ Vector3 operator*(const Vector3 &p_v) const; + _FORCE_INLINE_ Vector3 &operator/=(const Vector3 &p_v); + _FORCE_INLINE_ Vector3 operator/(const Vector3 &p_v) const; + + _FORCE_INLINE_ Vector3 &operator*=(const real_t p_scalar); + _FORCE_INLINE_ Vector3 operator*(const real_t p_scalar) const; + _FORCE_INLINE_ Vector3 &operator/=(const real_t p_scalar); + _FORCE_INLINE_ Vector3 operator/(const real_t p_scalar) const; + + _FORCE_INLINE_ Vector3 operator-() const; + + _FORCE_INLINE_ bool operator==(const Vector3 &p_v) const; + _FORCE_INLINE_ bool operator!=(const Vector3 &p_v) const; + _FORCE_INLINE_ bool operator<(const Vector3 &p_v) const; + _FORCE_INLINE_ bool operator<=(const Vector3 &p_v) const; + _FORCE_INLINE_ bool operator>(const Vector3 &p_v) const; + _FORCE_INLINE_ bool operator>=(const Vector3 &p_v) const; + + operator String() const; + operator Vector3i() const; + + _FORCE_INLINE_ Vector3() {} + _FORCE_INLINE_ Vector3(const real_t p_x, const real_t p_y, const real_t p_z) { + x = p_x; + y = p_y; + z = p_z; + } +}; + +Vector3 Vector3::cross(const Vector3 &p_with) const { + Vector3 ret( + (y * p_with.z) - (z * p_with.y), + (z * p_with.x) - (x * p_with.z), + (x * p_with.y) - (y * p_with.x)); + + return ret; +} + +real_t Vector3::dot(const Vector3 &p_with) const { + return x * p_with.x + y * p_with.y + z * p_with.z; +} + +Vector3 Vector3::abs() const { + return Vector3(Math::abs(x), Math::abs(y), Math::abs(z)); +} + +Vector3 Vector3::sign() const { + return Vector3(SIGN(x), SIGN(y), SIGN(z)); +} + +Vector3 Vector3::floor() const { + return Vector3(Math::floor(x), Math::floor(y), Math::floor(z)); +} + +Vector3 Vector3::ceil() const { + return Vector3(Math::ceil(x), Math::ceil(y), Math::ceil(z)); +} + +Vector3 Vector3::round() const { + return Vector3(Math::round(x), Math::round(y), Math::round(z)); +} + +Vector3 Vector3::lerp(const Vector3 &p_to, const real_t p_weight) const { + return Vector3( + x + (p_weight * (p_to.x - x)), + y + (p_weight * (p_to.y - y)), + z + (p_weight * (p_to.z - z))); +} + +Vector3 Vector3::slerp(const Vector3 &p_to, const real_t p_weight) const { + // This method seems more complicated than it really is, since we write out + // the internals of some methods for efficiency (mainly, checking length). + real_t start_length_sq = length_squared(); + real_t end_length_sq = p_to.length_squared(); + if (unlikely(start_length_sq == 0.0f || end_length_sq == 0.0f)) { + // Zero length vectors have no angle, so the best we can do is either lerp or throw an error. + return lerp(p_to, p_weight); + } + Vector3 axis = cross(p_to); + real_t axis_length_sq = axis.length_squared(); + if (unlikely(axis_length_sq == 0.0f)) { + // Colinear vectors have no rotation axis or angle between them, so the best we can do is lerp. + return lerp(p_to, p_weight); + } + axis /= Math::sqrt(axis_length_sq); + real_t start_length = Math::sqrt(start_length_sq); + real_t result_length = Math::lerp(start_length, Math::sqrt(end_length_sq), p_weight); + real_t angle = angle_to(p_to); + return rotated(axis, angle * p_weight) * (result_length / start_length); +} + +Vector3 Vector3::cubic_interpolate(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, const real_t p_weight) const { + Vector3 res = *this; + res.x = Math::cubic_interpolate(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight); + res.y = Math::cubic_interpolate(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight); + res.z = Math::cubic_interpolate(res.z, p_b.z, p_pre_a.z, p_post_b.z, p_weight); + return res; +} + +Vector3 Vector3::cubic_interpolate_in_time(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const { + Vector3 res = *this; + res.x = Math::cubic_interpolate_in_time(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.y = Math::cubic_interpolate_in_time(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.z = Math::cubic_interpolate_in_time(res.z, p_b.z, p_pre_a.z, p_post_b.z, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + return res; +} + +Vector3 Vector3::bezier_interpolate(const Vector3 &p_control_1, const Vector3 &p_control_2, const Vector3 &p_end, const real_t p_t) const { + Vector3 res = *this; + + /* Formula from Wikipedia article on Bezier curves. */ + real_t omt = (1.0 - p_t); + real_t omt2 = omt * omt; + real_t omt3 = omt2 * omt; + real_t t2 = p_t * p_t; + real_t t3 = t2 * p_t; + + return res * omt3 + p_control_1 * omt2 * p_t * 3.0 + p_control_2 * omt * t2 * 3.0 + p_end * t3; +} + +real_t Vector3::distance_to(const Vector3 &p_to) const { + return (p_to - *this).length(); +} + +real_t Vector3::distance_squared_to(const Vector3 &p_to) const { + return (p_to - *this).length_squared(); +} + +Vector3 Vector3::posmod(const real_t p_mod) const { + return Vector3(Math::fposmod(x, p_mod), Math::fposmod(y, p_mod), Math::fposmod(z, p_mod)); +} + +Vector3 Vector3::posmodv(const Vector3 &p_modv) const { + return Vector3(Math::fposmod(x, p_modv.x), Math::fposmod(y, p_modv.y), Math::fposmod(z, p_modv.z)); +} + +Vector3 Vector3::project(const Vector3 &p_to) const { + return p_to * (dot(p_to) / p_to.length_squared()); +} + +real_t Vector3::angle_to(const Vector3 &p_to) const { + return Math::atan2(cross(p_to).length(), dot(p_to)); +} + +real_t Vector3::signed_angle_to(const Vector3 &p_to, const Vector3 &p_axis) const { + Vector3 cross_to = cross(p_to); + real_t unsigned_angle = Math::atan2(cross_to.length(), dot(p_to)); + real_t sign = cross_to.dot(p_axis); + return (sign < 0) ? -unsigned_angle : unsigned_angle; +} + +Vector3 Vector3::direction_to(const Vector3 &p_to) const { + Vector3 ret(p_to.x - x, p_to.y - y, p_to.z - z); + ret.normalize(); + return ret; +} + +/* Operators */ + +Vector3 &Vector3::operator+=(const Vector3 &p_v) { + x += p_v.x; + y += p_v.y; + z += p_v.z; + return *this; +} + +Vector3 Vector3::operator+(const Vector3 &p_v) const { + return Vector3(x + p_v.x, y + p_v.y, z + p_v.z); +} + +Vector3 &Vector3::operator-=(const Vector3 &p_v) { + x -= p_v.x; + y -= p_v.y; + z -= p_v.z; + return *this; +} + +Vector3 Vector3::operator-(const Vector3 &p_v) const { + return Vector3(x - p_v.x, y - p_v.y, z - p_v.z); +} + +Vector3 &Vector3::operator*=(const Vector3 &p_v) { + x *= p_v.x; + y *= p_v.y; + z *= p_v.z; + return *this; +} + +Vector3 Vector3::operator*(const Vector3 &p_v) const { + return Vector3(x * p_v.x, y * p_v.y, z * p_v.z); +} + +Vector3 &Vector3::operator/=(const Vector3 &p_v) { + x /= p_v.x; + y /= p_v.y; + z /= p_v.z; + return *this; +} + +Vector3 Vector3::operator/(const Vector3 &p_v) const { + return Vector3(x / p_v.x, y / p_v.y, z / p_v.z); +} + +Vector3 &Vector3::operator*=(const real_t p_scalar) { + x *= p_scalar; + y *= p_scalar; + z *= p_scalar; + return *this; +} + +// Multiplication operators required to workaround issues with LLVM using implicit conversion +// to Vector3i instead for integers where it should not. + +_FORCE_INLINE_ Vector3 operator*(const float p_scalar, const Vector3 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector3 operator*(const double p_scalar, const Vector3 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector3 operator*(const int32_t p_scalar, const Vector3 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector3 operator*(const int64_t p_scalar, const Vector3 &p_vec) { + return p_vec * p_scalar; +} + +Vector3 Vector3::operator*(const real_t p_scalar) const { + return Vector3(x * p_scalar, y * p_scalar, z * p_scalar); +} + +Vector3 &Vector3::operator/=(const real_t p_scalar) { + x /= p_scalar; + y /= p_scalar; + z /= p_scalar; + return *this; +} + +Vector3 Vector3::operator/(const real_t p_scalar) const { + return Vector3(x / p_scalar, y / p_scalar, z / p_scalar); +} + +Vector3 Vector3::operator-() const { + return Vector3(-x, -y, -z); +} + +bool Vector3::operator==(const Vector3 &p_v) const { + return x == p_v.x && y == p_v.y && z == p_v.z; +} + +bool Vector3::operator!=(const Vector3 &p_v) const { + return x != p_v.x || y != p_v.y || z != p_v.z; +} + +bool Vector3::operator<(const Vector3 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z < p_v.z; + } + return y < p_v.y; + } + return x < p_v.x; +} + +bool Vector3::operator>(const Vector3 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z > p_v.z; + } + return y > p_v.y; + } + return x > p_v.x; +} + +bool Vector3::operator<=(const Vector3 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z <= p_v.z; + } + return y < p_v.y; + } + return x < p_v.x; +} + +bool Vector3::operator>=(const Vector3 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z >= p_v.z; + } + return y > p_v.y; + } + return x > p_v.x; +} + +_FORCE_INLINE_ Vector3 vec3_cross(const Vector3 &p_a, const Vector3 &p_b) { + return p_a.cross(p_b); +} + +_FORCE_INLINE_ real_t vec3_dot(const Vector3 &p_a, const Vector3 &p_b) { + return p_a.dot(p_b); +} + +real_t Vector3::length() const { + real_t x2 = x * x; + real_t y2 = y * y; + real_t z2 = z * z; + + return Math::sqrt(x2 + y2 + z2); +} + +real_t Vector3::length_squared() const { + real_t x2 = x * x; + real_t y2 = y * y; + real_t z2 = z * z; + + return x2 + y2 + z2; +} + +void Vector3::normalize() { + real_t lengthsq = length_squared(); + if (lengthsq == 0) { + x = y = z = 0; + } else { + real_t length = Math::sqrt(lengthsq); + x /= length; + y /= length; + z /= length; + } +} + +Vector3 Vector3::normalized() const { + Vector3 v = *this; + v.normalize(); + return v; +} + +bool Vector3::is_normalized() const { + // use length_squared() instead of length() to avoid sqrt(), makes it more stringent. + return Math::is_equal_approx(length_squared(), 1, (real_t)UNIT_EPSILON); +} + +Vector3 Vector3::inverse() const { + return Vector3(1.0f / x, 1.0f / y, 1.0f / z); +} + +void Vector3::zero() { + x = y = z = 0; +} + +// slide returns the component of the vector along the given plane, specified by its normal vector. +Vector3 Vector3::slide(const Vector3 &p_normal) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector3(), "The normal Vector3 must be normalized."); +#endif + return *this - p_normal * this->dot(p_normal); +} + +Vector3 Vector3::bounce(const Vector3 &p_normal) const { + return -reflect(p_normal); +} + +Vector3 Vector3::reflect(const Vector3 &p_normal) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector3(), "The normal Vector3 must be normalized."); +#endif + return 2.0f * p_normal * this->dot(p_normal) - *this; +} + +} // namespace godot + +#endif // GODOT_VECTOR3_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector3i.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector3i.hpp new file mode 100644 index 0000000..c8f1fe5 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector3i.hpp @@ -0,0 +1,313 @@ +/**************************************************************************/ +/* vector3i.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR3I_HPP +#define GODOT_VECTOR3I_HPP + +#include +#include + +namespace godot { + +class String; +struct Vector3; + +struct _NO_DISCARD_ Vector3i { + static const int AXIS_COUNT = 3; + + enum Axis { + AXIS_X, + AXIS_Y, + AXIS_Z, + }; + + union { + struct { + int32_t x; + int32_t y; + int32_t z; + }; + + int32_t coord[3] = { 0 }; + }; + + _FORCE_INLINE_ const int32_t &operator[](const int p_axis) const { + DEV_ASSERT((unsigned int)p_axis < 3); + return coord[p_axis]; + } + + _FORCE_INLINE_ int32_t &operator[](const int p_axis) { + DEV_ASSERT((unsigned int)p_axis < 3); + return coord[p_axis]; + } + + Vector3i::Axis min_axis_index() const; + Vector3i::Axis max_axis_index() const; + + _FORCE_INLINE_ int64_t length_squared() const; + _FORCE_INLINE_ double length() const; + + _FORCE_INLINE_ void zero(); + + _FORCE_INLINE_ Vector3i abs() const; + _FORCE_INLINE_ Vector3i sign() const; + Vector3i clamp(const Vector3i &p_min, const Vector3i &p_max) const; + + /* Operators */ + + _FORCE_INLINE_ Vector3i &operator+=(const Vector3i &p_v); + _FORCE_INLINE_ Vector3i operator+(const Vector3i &p_v) const; + _FORCE_INLINE_ Vector3i &operator-=(const Vector3i &p_v); + _FORCE_INLINE_ Vector3i operator-(const Vector3i &p_v) const; + _FORCE_INLINE_ Vector3i &operator*=(const Vector3i &p_v); + _FORCE_INLINE_ Vector3i operator*(const Vector3i &p_v) const; + _FORCE_INLINE_ Vector3i &operator/=(const Vector3i &p_v); + _FORCE_INLINE_ Vector3i operator/(const Vector3i &p_v) const; + _FORCE_INLINE_ Vector3i &operator%=(const Vector3i &p_v); + _FORCE_INLINE_ Vector3i operator%(const Vector3i &p_v) const; + + _FORCE_INLINE_ Vector3i &operator*=(const int32_t p_scalar); + _FORCE_INLINE_ Vector3i operator*(const int32_t p_scalar) const; + _FORCE_INLINE_ Vector3i &operator/=(const int32_t p_scalar); + _FORCE_INLINE_ Vector3i operator/(const int32_t p_scalar) const; + _FORCE_INLINE_ Vector3i &operator%=(const int32_t p_scalar); + _FORCE_INLINE_ Vector3i operator%(const int32_t p_scalar) const; + + _FORCE_INLINE_ Vector3i operator-() const; + + _FORCE_INLINE_ bool operator==(const Vector3i &p_v) const; + _FORCE_INLINE_ bool operator!=(const Vector3i &p_v) const; + _FORCE_INLINE_ bool operator<(const Vector3i &p_v) const; + _FORCE_INLINE_ bool operator<=(const Vector3i &p_v) const; + _FORCE_INLINE_ bool operator>(const Vector3i &p_v) const; + _FORCE_INLINE_ bool operator>=(const Vector3i &p_v) const; + + operator String() const; + operator Vector3() const; + + _FORCE_INLINE_ Vector3i() {} + _FORCE_INLINE_ Vector3i(const int32_t p_x, const int32_t p_y, const int32_t p_z) { + x = p_x; + y = p_y; + z = p_z; + } +}; + +int64_t Vector3i::length_squared() const { + return x * (int64_t)x + y * (int64_t)y + z * (int64_t)z; +} + +double Vector3i::length() const { + return Math::sqrt((double)length_squared()); +} + +Vector3i Vector3i::abs() const { + return Vector3i(Math::abs(x), Math::abs(y), Math::abs(z)); +} + +Vector3i Vector3i::sign() const { + return Vector3i(SIGN(x), SIGN(y), SIGN(z)); +} + +/* Operators */ + +Vector3i &Vector3i::operator+=(const Vector3i &p_v) { + x += p_v.x; + y += p_v.y; + z += p_v.z; + return *this; +} + +Vector3i Vector3i::operator+(const Vector3i &p_v) const { + return Vector3i(x + p_v.x, y + p_v.y, z + p_v.z); +} + +Vector3i &Vector3i::operator-=(const Vector3i &p_v) { + x -= p_v.x; + y -= p_v.y; + z -= p_v.z; + return *this; +} + +Vector3i Vector3i::operator-(const Vector3i &p_v) const { + return Vector3i(x - p_v.x, y - p_v.y, z - p_v.z); +} + +Vector3i &Vector3i::operator*=(const Vector3i &p_v) { + x *= p_v.x; + y *= p_v.y; + z *= p_v.z; + return *this; +} + +Vector3i Vector3i::operator*(const Vector3i &p_v) const { + return Vector3i(x * p_v.x, y * p_v.y, z * p_v.z); +} + +Vector3i &Vector3i::operator/=(const Vector3i &p_v) { + x /= p_v.x; + y /= p_v.y; + z /= p_v.z; + return *this; +} + +Vector3i Vector3i::operator/(const Vector3i &p_v) const { + return Vector3i(x / p_v.x, y / p_v.y, z / p_v.z); +} + +Vector3i &Vector3i::operator%=(const Vector3i &p_v) { + x %= p_v.x; + y %= p_v.y; + z %= p_v.z; + return *this; +} + +Vector3i Vector3i::operator%(const Vector3i &p_v) const { + return Vector3i(x % p_v.x, y % p_v.y, z % p_v.z); +} + +Vector3i &Vector3i::operator*=(const int32_t p_scalar) { + x *= p_scalar; + y *= p_scalar; + z *= p_scalar; + return *this; +} + +Vector3i Vector3i::operator*(const int32_t p_scalar) const { + return Vector3i(x * p_scalar, y * p_scalar, z * p_scalar); +} + +// Multiplication operators required to workaround issues with LLVM using implicit conversion. + +_FORCE_INLINE_ Vector3i operator*(const int32_t p_scalar, const Vector3i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector3i operator*(const int64_t p_scalar, const Vector3i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector3i operator*(const float p_scalar, const Vector3i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector3i operator*(const double p_scalar, const Vector3i &p_vector) { + return p_vector * p_scalar; +} + +Vector3i &Vector3i::operator/=(const int32_t p_scalar) { + x /= p_scalar; + y /= p_scalar; + z /= p_scalar; + return *this; +} + +Vector3i Vector3i::operator/(const int32_t p_scalar) const { + return Vector3i(x / p_scalar, y / p_scalar, z / p_scalar); +} + +Vector3i &Vector3i::operator%=(const int32_t p_scalar) { + x %= p_scalar; + y %= p_scalar; + z %= p_scalar; + return *this; +} + +Vector3i Vector3i::operator%(const int32_t p_scalar) const { + return Vector3i(x % p_scalar, y % p_scalar, z % p_scalar); +} + +Vector3i Vector3i::operator-() const { + return Vector3i(-x, -y, -z); +} + +bool Vector3i::operator==(const Vector3i &p_v) const { + return (x == p_v.x && y == p_v.y && z == p_v.z); +} + +bool Vector3i::operator!=(const Vector3i &p_v) const { + return (x != p_v.x || y != p_v.y || z != p_v.z); +} + +bool Vector3i::operator<(const Vector3i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z < p_v.z; + } else { + return y < p_v.y; + } + } else { + return x < p_v.x; + } +} + +bool Vector3i::operator>(const Vector3i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z > p_v.z; + } else { + return y > p_v.y; + } + } else { + return x > p_v.x; + } +} + +bool Vector3i::operator<=(const Vector3i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z <= p_v.z; + } else { + return y < p_v.y; + } + } else { + return x < p_v.x; + } +} + +bool Vector3i::operator>=(const Vector3i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + return z >= p_v.z; + } else { + return y > p_v.y; + } + } else { + return x > p_v.x; + } +} + +void Vector3i::zero() { + x = y = z = 0; +} + +} // namespace godot + +#endif // GODOT_VECTOR3I_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector4.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector4.hpp new file mode 100644 index 0000000..ba3da68 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector4.hpp @@ -0,0 +1,302 @@ +/**************************************************************************/ +/* vector4.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR4_HPP +#define GODOT_VECTOR4_HPP + +#include +#include + +namespace godot { + +class String; + +struct _NO_DISCARD_ Vector4 { + static const int AXIS_COUNT = 4; + + enum Axis { + AXIS_X, + AXIS_Y, + AXIS_Z, + AXIS_W, + }; + + union { + struct { + real_t x; + real_t y; + real_t z; + real_t w; + }; + real_t components[4] = { 0, 0, 0, 0 }; + }; + + _FORCE_INLINE_ real_t &operator[](const int p_axis) { + DEV_ASSERT((unsigned int)p_axis < 4); + return components[p_axis]; + } + _FORCE_INLINE_ const real_t &operator[](const int p_axis) const { + DEV_ASSERT((unsigned int)p_axis < 4); + return components[p_axis]; + } + + Vector4::Axis min_axis_index() const; + Vector4::Axis max_axis_index() const; + + _FORCE_INLINE_ real_t length_squared() const; + bool is_equal_approx(const Vector4 &p_vec4) const; + bool is_zero_approx() const; + real_t length() const; + void normalize(); + Vector4 normalized() const; + bool is_normalized() const; + + real_t distance_to(const Vector4 &p_to) const; + real_t distance_squared_to(const Vector4 &p_to) const; + Vector4 direction_to(const Vector4 &p_to) const; + + Vector4 abs() const; + Vector4 sign() const; + Vector4 floor() const; + Vector4 ceil() const; + Vector4 round() const; + Vector4 lerp(const Vector4 &p_to, const real_t p_weight) const; + Vector4 cubic_interpolate(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight) const; + Vector4 cubic_interpolate_in_time(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const; + + Vector4 posmod(const real_t p_mod) const; + Vector4 posmodv(const Vector4 &p_modv) const; + void snap(const Vector4 &p_step); + Vector4 snapped(const Vector4 &p_step) const; + Vector4 clamp(const Vector4 &p_min, const Vector4 &p_max) const; + + Vector4 inverse() const; + _FORCE_INLINE_ real_t dot(const Vector4 &p_vec4) const; + + _FORCE_INLINE_ void operator+=(const Vector4 &p_vec4); + _FORCE_INLINE_ void operator-=(const Vector4 &p_vec4); + _FORCE_INLINE_ void operator*=(const Vector4 &p_vec4); + _FORCE_INLINE_ void operator/=(const Vector4 &p_vec4); + _FORCE_INLINE_ void operator*=(const real_t &s); + _FORCE_INLINE_ void operator/=(const real_t &s); + _FORCE_INLINE_ Vector4 operator+(const Vector4 &p_vec4) const; + _FORCE_INLINE_ Vector4 operator-(const Vector4 &p_vec4) const; + _FORCE_INLINE_ Vector4 operator*(const Vector4 &p_vec4) const; + _FORCE_INLINE_ Vector4 operator/(const Vector4 &p_vec4) const; + _FORCE_INLINE_ Vector4 operator-() const; + _FORCE_INLINE_ Vector4 operator*(const real_t &s) const; + _FORCE_INLINE_ Vector4 operator/(const real_t &s) const; + + _FORCE_INLINE_ bool operator==(const Vector4 &p_vec4) const; + _FORCE_INLINE_ bool operator!=(const Vector4 &p_vec4) const; + _FORCE_INLINE_ bool operator>(const Vector4 &p_vec4) const; + _FORCE_INLINE_ bool operator<(const Vector4 &p_vec4) const; + _FORCE_INLINE_ bool operator>=(const Vector4 &p_vec4) const; + _FORCE_INLINE_ bool operator<=(const Vector4 &p_vec4) const; + + operator String() const; + + _FORCE_INLINE_ Vector4() {} + + _FORCE_INLINE_ Vector4(real_t p_x, real_t p_y, real_t p_z, real_t p_w) : + x(p_x), + y(p_y), + z(p_z), + w(p_w) { + } + + Vector4(const Vector4 &p_vec4) : + x(p_vec4.x), + y(p_vec4.y), + z(p_vec4.z), + w(p_vec4.w) { + } + + void operator=(const Vector4 &p_vec4) { + x = p_vec4.x; + y = p_vec4.y; + z = p_vec4.z; + w = p_vec4.w; + } +}; + +real_t Vector4::dot(const Vector4 &p_vec4) const { + return x * p_vec4.x + y * p_vec4.y + z * p_vec4.z + w * p_vec4.w; +} + +real_t Vector4::length_squared() const { + return dot(*this); +} + +void Vector4::operator+=(const Vector4 &p_vec4) { + x += p_vec4.x; + y += p_vec4.y; + z += p_vec4.z; + w += p_vec4.w; +} + +void Vector4::operator-=(const Vector4 &p_vec4) { + x -= p_vec4.x; + y -= p_vec4.y; + z -= p_vec4.z; + w -= p_vec4.w; +} + +void Vector4::operator*=(const Vector4 &p_vec4) { + x *= p_vec4.x; + y *= p_vec4.y; + z *= p_vec4.z; + w *= p_vec4.w; +} + +void Vector4::operator/=(const Vector4 &p_vec4) { + x /= p_vec4.x; + y /= p_vec4.y; + z /= p_vec4.z; + w /= p_vec4.w; +} +void Vector4::operator*=(const real_t &s) { + x *= s; + y *= s; + z *= s; + w *= s; +} + +void Vector4::operator/=(const real_t &s) { + *this *= 1.0f / s; +} + +Vector4 Vector4::operator+(const Vector4 &p_vec4) const { + return Vector4(x + p_vec4.x, y + p_vec4.y, z + p_vec4.z, w + p_vec4.w); +} + +Vector4 Vector4::operator-(const Vector4 &p_vec4) const { + return Vector4(x - p_vec4.x, y - p_vec4.y, z - p_vec4.z, w - p_vec4.w); +} + +Vector4 Vector4::operator*(const Vector4 &p_vec4) const { + return Vector4(x * p_vec4.x, y * p_vec4.y, z * p_vec4.z, w * p_vec4.w); +} + +Vector4 Vector4::operator/(const Vector4 &p_vec4) const { + return Vector4(x / p_vec4.x, y / p_vec4.y, z / p_vec4.z, w / p_vec4.w); +} + +Vector4 Vector4::operator-() const { + return Vector4(-x, -y, -z, -w); +} + +Vector4 Vector4::operator*(const real_t &s) const { + return Vector4(x * s, y * s, z * s, w * s); +} + +Vector4 Vector4::operator/(const real_t &s) const { + return *this * (1.0f / s); +} + +bool Vector4::operator==(const Vector4 &p_vec4) const { + return x == p_vec4.x && y == p_vec4.y && z == p_vec4.z && w == p_vec4.w; +} + +bool Vector4::operator!=(const Vector4 &p_vec4) const { + return x != p_vec4.x || y != p_vec4.y || z != p_vec4.z || w != p_vec4.w; +} + +bool Vector4::operator<(const Vector4 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w < p_v.w; + } + return z < p_v.z; + } + return y < p_v.y; + } + return x < p_v.x; +} + +bool Vector4::operator>(const Vector4 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w > p_v.w; + } + return z > p_v.z; + } + return y > p_v.y; + } + return x > p_v.x; +} + +bool Vector4::operator<=(const Vector4 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w <= p_v.w; + } + return z < p_v.z; + } + return y < p_v.y; + } + return x < p_v.x; +} + +bool Vector4::operator>=(const Vector4 &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w >= p_v.w; + } + return z > p_v.z; + } + return y > p_v.y; + } + return x > p_v.x; +} + +_FORCE_INLINE_ Vector4 operator*(const float p_scalar, const Vector4 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector4 operator*(const double p_scalar, const Vector4 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector4 operator*(const int32_t p_scalar, const Vector4 &p_vec) { + return p_vec * p_scalar; +} + +_FORCE_INLINE_ Vector4 operator*(const int64_t p_scalar, const Vector4 &p_vec) { + return p_vec * p_scalar; +} + +} // namespace godot + +#endif // GODOT_VECTOR4_HPP diff --git a/lib/godot-cpp/include/godot_cpp/variant/vector4i.hpp b/lib/godot-cpp/include/godot_cpp/variant/vector4i.hpp new file mode 100644 index 0000000..9d70fb7 --- /dev/null +++ b/lib/godot-cpp/include/godot_cpp/variant/vector4i.hpp @@ -0,0 +1,341 @@ +/**************************************************************************/ +/* vector4i.hpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#ifndef GODOT_VECTOR4I_HPP +#define GODOT_VECTOR4I_HPP + +#include +#include + +namespace godot { + +class String; +struct Vector4; + +struct _NO_DISCARD_ Vector4i { + static const int AXIS_COUNT = 4; + + enum Axis { + AXIS_X, + AXIS_Y, + AXIS_Z, + AXIS_W, + }; + + union { + struct { + int32_t x; + int32_t y; + int32_t z; + int32_t w; + }; + + int32_t coord[4] = { 0 }; + }; + + _FORCE_INLINE_ const int32_t &operator[](const int p_axis) const { + DEV_ASSERT((unsigned int)p_axis < 4); + return coord[p_axis]; + } + + _FORCE_INLINE_ int32_t &operator[](const int p_axis) { + DEV_ASSERT((unsigned int)p_axis < 4); + return coord[p_axis]; + } + + Vector4i::Axis min_axis_index() const; + Vector4i::Axis max_axis_index() const; + + _FORCE_INLINE_ int64_t length_squared() const; + _FORCE_INLINE_ double length() const; + + _FORCE_INLINE_ void zero(); + + _FORCE_INLINE_ Vector4i abs() const; + _FORCE_INLINE_ Vector4i sign() const; + Vector4i clamp(const Vector4i &p_min, const Vector4i &p_max) const; + + /* Operators */ + + _FORCE_INLINE_ Vector4i &operator+=(const Vector4i &p_v); + _FORCE_INLINE_ Vector4i operator+(const Vector4i &p_v) const; + _FORCE_INLINE_ Vector4i &operator-=(const Vector4i &p_v); + _FORCE_INLINE_ Vector4i operator-(const Vector4i &p_v) const; + _FORCE_INLINE_ Vector4i &operator*=(const Vector4i &p_v); + _FORCE_INLINE_ Vector4i operator*(const Vector4i &p_v) const; + _FORCE_INLINE_ Vector4i &operator/=(const Vector4i &p_v); + _FORCE_INLINE_ Vector4i operator/(const Vector4i &p_v) const; + _FORCE_INLINE_ Vector4i &operator%=(const Vector4i &p_v); + _FORCE_INLINE_ Vector4i operator%(const Vector4i &p_v) const; + + _FORCE_INLINE_ Vector4i &operator*=(const int32_t p_scalar); + _FORCE_INLINE_ Vector4i operator*(const int32_t p_scalar) const; + _FORCE_INLINE_ Vector4i &operator/=(const int32_t p_scalar); + _FORCE_INLINE_ Vector4i operator/(const int32_t p_scalar) const; + _FORCE_INLINE_ Vector4i &operator%=(const int32_t p_scalar); + _FORCE_INLINE_ Vector4i operator%(const int32_t p_scalar) const; + + _FORCE_INLINE_ Vector4i operator-() const; + + _FORCE_INLINE_ bool operator==(const Vector4i &p_v) const; + _FORCE_INLINE_ bool operator!=(const Vector4i &p_v) const; + _FORCE_INLINE_ bool operator<(const Vector4i &p_v) const; + _FORCE_INLINE_ bool operator<=(const Vector4i &p_v) const; + _FORCE_INLINE_ bool operator>(const Vector4i &p_v) const; + _FORCE_INLINE_ bool operator>=(const Vector4i &p_v) const; + + operator String() const; + operator Vector4() const; + + _FORCE_INLINE_ Vector4i() {} + Vector4i(const Vector4 &p_vec4); + _FORCE_INLINE_ Vector4i(const int32_t p_x, const int32_t p_y, const int32_t p_z, const int32_t p_w) { + x = p_x; + y = p_y; + z = p_z; + w = p_w; + } +}; + +int64_t Vector4i::length_squared() const { + return x * (int64_t)x + y * (int64_t)y + z * (int64_t)z + w * (int64_t)w; +} + +double Vector4i::length() const { + return Math::sqrt((double)length_squared()); +} + +Vector4i Vector4i::abs() const { + return Vector4i(Math::abs(x), Math::abs(y), Math::abs(z), Math::abs(w)); +} + +Vector4i Vector4i::sign() const { + return Vector4i(Math::sign(x), Math::sign(y), Math::sign(z), Math::sign(w)); +} + +/* Operators */ + +Vector4i &Vector4i::operator+=(const Vector4i &p_v) { + x += p_v.x; + y += p_v.y; + z += p_v.z; + w += p_v.w; + return *this; +} + +Vector4i Vector4i::operator+(const Vector4i &p_v) const { + return Vector4i(x + p_v.x, y + p_v.y, z + p_v.z, w + p_v.w); +} + +Vector4i &Vector4i::operator-=(const Vector4i &p_v) { + x -= p_v.x; + y -= p_v.y; + z -= p_v.z; + w -= p_v.w; + return *this; +} + +Vector4i Vector4i::operator-(const Vector4i &p_v) const { + return Vector4i(x - p_v.x, y - p_v.y, z - p_v.z, w - p_v.w); +} + +Vector4i &Vector4i::operator*=(const Vector4i &p_v) { + x *= p_v.x; + y *= p_v.y; + z *= p_v.z; + w *= p_v.w; + return *this; +} + +Vector4i Vector4i::operator*(const Vector4i &p_v) const { + return Vector4i(x * p_v.x, y * p_v.y, z * p_v.z, w * p_v.w); +} + +Vector4i &Vector4i::operator/=(const Vector4i &p_v) { + x /= p_v.x; + y /= p_v.y; + z /= p_v.z; + w /= p_v.w; + return *this; +} + +Vector4i Vector4i::operator/(const Vector4i &p_v) const { + return Vector4i(x / p_v.x, y / p_v.y, z / p_v.z, w / p_v.w); +} + +Vector4i &Vector4i::operator%=(const Vector4i &p_v) { + x %= p_v.x; + y %= p_v.y; + z %= p_v.z; + w %= p_v.w; + return *this; +} + +Vector4i Vector4i::operator%(const Vector4i &p_v) const { + return Vector4i(x % p_v.x, y % p_v.y, z % p_v.z, w % p_v.w); +} + +Vector4i &Vector4i::operator*=(const int32_t p_scalar) { + x *= p_scalar; + y *= p_scalar; + z *= p_scalar; + w *= p_scalar; + return *this; +} + +Vector4i Vector4i::operator*(const int32_t p_scalar) const { + return Vector4i(x * p_scalar, y * p_scalar, z * p_scalar, w * p_scalar); +} + +// Multiplication operators required to workaround issues with LLVM using implicit conversion. + +_FORCE_INLINE_ Vector4i operator*(const int32_t p_scalar, const Vector4i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector4i operator*(const int64_t p_scalar, const Vector4i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector4i operator*(const float p_scalar, const Vector4i &p_vector) { + return p_vector * p_scalar; +} + +_FORCE_INLINE_ Vector4i operator*(const double p_scalar, const Vector4i &p_vector) { + return p_vector * p_scalar; +} + +Vector4i &Vector4i::operator/=(const int32_t p_scalar) { + x /= p_scalar; + y /= p_scalar; + z /= p_scalar; + w /= p_scalar; + return *this; +} + +Vector4i Vector4i::operator/(const int32_t p_scalar) const { + return Vector4i(x / p_scalar, y / p_scalar, z / p_scalar, w / p_scalar); +} + +Vector4i &Vector4i::operator%=(const int32_t p_scalar) { + x %= p_scalar; + y %= p_scalar; + z %= p_scalar; + w %= p_scalar; + return *this; +} + +Vector4i Vector4i::operator%(const int32_t p_scalar) const { + return Vector4i(x % p_scalar, y % p_scalar, z % p_scalar, w % p_scalar); +} + +Vector4i Vector4i::operator-() const { + return Vector4i(-x, -y, -z, -w); +} + +bool Vector4i::operator==(const Vector4i &p_v) const { + return (x == p_v.x && y == p_v.y && z == p_v.z && w == p_v.w); +} + +bool Vector4i::operator!=(const Vector4i &p_v) const { + return (x != p_v.x || y != p_v.y || z != p_v.z || w != p_v.w); +} + +bool Vector4i::operator<(const Vector4i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w < p_v.w; + } else { + return z < p_v.z; + } + } else { + return y < p_v.y; + } + } else { + return x < p_v.x; + } +} + +bool Vector4i::operator>(const Vector4i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w > p_v.w; + } else { + return z > p_v.z; + } + } else { + return y > p_v.y; + } + } else { + return x > p_v.x; + } +} + +bool Vector4i::operator<=(const Vector4i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w <= p_v.w; + } else { + return z < p_v.z; + } + } else { + return y < p_v.y; + } + } else { + return x < p_v.x; + } +} + +bool Vector4i::operator>=(const Vector4i &p_v) const { + if (x == p_v.x) { + if (y == p_v.y) { + if (z == p_v.z) { + return w >= p_v.w; + } else { + return z > p_v.z; + } + } else { + return y > p_v.y; + } + } else { + return x > p_v.x; + } +} + +void Vector4i::zero() { + x = y = z = w = 0; +} + +} // namespace godot + +#endif // GODOT_VECTOR4I_HPP diff --git a/lib/godot-cpp/misc/ci/sources.list b/lib/godot-cpp/misc/ci/sources.list new file mode 100644 index 0000000..4d8f94f --- /dev/null +++ b/lib/godot-cpp/misc/ci/sources.list @@ -0,0 +1,4 @@ +deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse diff --git a/lib/godot-cpp/misc/hooks/README.md b/lib/godot-cpp/misc/hooks/README.md new file mode 100644 index 0000000..8732237 --- /dev/null +++ b/lib/godot-cpp/misc/hooks/README.md @@ -0,0 +1,37 @@ +# Git hooks for Godot Engine + +This folder contains Git hooks meant to be installed locally by Godot Engine +contributors to make sure they comply with our requirements. + +## List of hooks + +- Pre-commit hook for `clang-format`: Applies `clang-format` to the staged + files before accepting a commit; blocks the commit and generates a patch if + the style is not respected. + You may need to edit the file if your `clang-format` binary is not in the + `PATH`, or if you want to enable colored output with `pygmentize`. +- Pre-commit hook for `black`: Applies `black` to the staged Python files + before accepting a commit. +- Pre-commit hook for `make_rst`: Checks the class reference syntax using + `make_rst.py`. + +## Installation + +Copy all the files from this folder into your `.git/hooks` folder, and make +sure the hooks and helper scripts are executable. + +#### Linux/MacOS + +The hooks rely on bash scripts and tools which should be in the system `PATH`, +so they should work out of the box on Linux/macOS. + +#### Windows + +##### clang-format +- Download LLVM for Windows (version 13 or later) from + +- Make sure LLVM is added to the `PATH` during installation + +##### black +- Python installation: make sure Python is added to the `PATH` +- Install `black` - in any console: `pip3 install black` diff --git a/lib/godot-cpp/misc/hooks/canonicalize_filename.sh b/lib/godot-cpp/misc/hooks/canonicalize_filename.sh new file mode 100644 index 0000000..fe66999 --- /dev/null +++ b/lib/godot-cpp/misc/hooks/canonicalize_filename.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# Provide the canonicalize filename (physical filename with out any symlinks) +# like the GNU version readlink with the -f option regardless of the version of +# readlink (GNU or BSD). + +# This file is part of a set of unofficial pre-commit hooks available +# at github. +# Link: https://github.com/githubbrowser/Pre-commit-hooks +# Contact: David Martin, david.martin.mailbox@googlemail.com + +########################################################### +# There should be no need to change anything below this line. + +# Canonicalize by recursively following every symlink in every component of the +# specified filename. This should reproduce the results of the GNU version of +# readlink with the -f option. +# +# Reference: https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac +canonicalize_filename () { + local target_file="$1" + local physical_directory="" + local result="" + + # Need to restore the working directory after work. + local working_dir="`pwd`" + + cd -- "$(dirname -- "$target_file")" + target_file="$(basename -- "$target_file")" + + # Iterate down a (possible) chain of symlinks + while [ -L "$target_file" ] + do + target_file="$(readlink -- "$target_file")" + cd -- "$(dirname -- "$target_file")" + target_file="$(basename -- "$target_file")" + done + + # Compute the canonicalized name by finding the physical path + # for the directory we're in and appending the target file. + physical_directory="`pwd -P`" + result="$physical_directory/$target_file" + + # restore the working directory after work. + cd -- "$working_dir" + + echo "$result" +} diff --git a/lib/godot-cpp/misc/hooks/pre-commit b/lib/godot-cpp/misc/hooks/pre-commit new file mode 100644 index 0000000..1d71370 --- /dev/null +++ b/lib/godot-cpp/misc/hooks/pre-commit @@ -0,0 +1,50 @@ +#!/bin/sh +# Git pre-commit hook that runs multiple hooks specified in $HOOKS. +# Make sure this script is executable. Bypass hooks with git commit --no-verify. + +# This file is part of a set of unofficial pre-commit hooks available +# at github. +# Link: https://github.com/githubbrowser/Pre-commit-hooks +# Contact: David Martin, david.martin.mailbox@googlemail.com + + +########################################################### +# CONFIGURATION: +# pre-commit hooks to be executed. They should be in the same .git/hooks/ folder +# as this script. Hooks should return 0 if successful and nonzero to cancel the +# commit. They are executed in the order in which they are listed. +#HOOKS="pre-commit-compile pre-commit-uncrustify" +HOOKS="pre-commit-clang-format pre-commit-black" +########################################################### +# There should be no need to change anything below this line. + +. "$(dirname -- "$0")/canonicalize_filename.sh" + +# exit on error +set -e + +# Absolute path to this script, e.g. /home/user/bin/foo.sh +SCRIPT="$(canonicalize_filename "$0")" + +# Absolute path this script is in, thus /home/user/bin +SCRIPTPATH="$(dirname -- "$SCRIPT")" + + +for hook in $HOOKS +do + echo "Running hook: $hook" + # run hook if it exists + # if it returns with nonzero exit with 1 and thus abort the commit + if [ -f "$SCRIPTPATH/$hook" ]; then + "$SCRIPTPATH/$hook" + if [ $? != 0 ]; then + exit 1 + fi + else + echo "Error: file $hook not found." + echo "Aborting commit. Make sure the hook is in $SCRIPTPATH and executable." + echo "You can disable it by removing it from the list in $SCRIPT." + echo "You can skip all pre-commit hooks with --no-verify (not recommended)." + exit 1 + fi +done diff --git a/lib/godot-cpp/misc/hooks/pre-commit-black b/lib/godot-cpp/misc/hooks/pre-commit-black new file mode 100644 index 0000000..fd93bfe --- /dev/null +++ b/lib/godot-cpp/misc/hooks/pre-commit-black @@ -0,0 +1,202 @@ +#!/usr/bin/env bash + +# git pre-commit hook that runs a black stylecheck. +# Based on pre-commit-clang-format. + +################################################################## +# SETTINGS +# Set path to black binary. +BLACK=`which black 2>/dev/null` +BLACK_OPTIONS="-l 120" + +# Remove any older patches from previous commits. Set to true or false. +DELETE_OLD_PATCHES=false + +# File types to parse. +FILE_NAMES="SConstruct SCsub" +FILE_EXTS=".py" + +# Use pygmentize instead of cat to parse diff with highlighting. +# Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac) +PYGMENTIZE=`which pygmentize 2>/dev/null` +if [ ! -z "$PYGMENTIZE" ]; then + READER="pygmentize -l diff" +else + READER=cat +fi + +# Path to zenity +ZENITY=`which zenity 2>/dev/null` + +# Path to xmessage +XMSG=`which xmessage 2>/dev/null` + +# Path to powershell (Windows only) +PWSH=`which powershell 2>/dev/null` + +################################################################## +# There should be no need to change anything below this line. + +. "$(dirname -- "$0")/canonicalize_filename.sh" + +# exit on error +set -e + +# check whether the given file matches any of the set extensions +matches_name_or_extension() { + local filename=$(basename "$1") + local extension=".${filename##*.}" + + for name in $FILE_NAMES; do [[ "$name" == "$filename" ]] && return 0; done + for ext in $FILE_EXTS; do [[ "$ext" == "$extension" ]] && return 0; done + + return 1 +} + +# necessary check for initial commit +if git rev-parse --verify HEAD >/dev/null 2>&1 ; then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 +fi + +if [ ! -x "$BLACK" ] ; then + if [ ! -t 1 ] ; then + if [ -x "$ZENITY" ] ; then + $ZENITY --error --title="Error" --text="Error: black executable not found." + exit 1 + elif [ -x "$XMSG" ] ; then + $XMSG -center -title "Error" "Error: black executable not found." + exit 1 + elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then + winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")" + $PWSH -noprofile -executionpolicy bypass -file "$winmessage" -center -title "Error" --text "Error: black executable not found." + exit 1 + fi + fi + printf "Error: black executable not found.\n" + printf "Set the correct path in $(canonicalize_filename "$0").\n" + exit 1 +fi + +# create a random filename to store our generated patch +prefix="pre-commit-black" +suffix="$(date +%s)" +patch="/tmp/$prefix-$suffix.patch" + +# clean up any older black patches +$DELETE_OLD_PATCHES && rm -f /tmp/$prefix*.patch + +# create one patch containing all changes to the files +git diff-index --cached --diff-filter=ACMR --name-only $against -- | while read file; +do + # ignore thirdparty files + if grep -q "thirdparty" <<< $file; then + continue; + fi + + # ignore file if not one of the names or extensions we handle + if ! matches_name_or_extension "$file"; then + continue; + fi + + # format our file with black, create a patch with diff and append it to our $patch + # The sed call is necessary to transform the patch from + # --- $file timestamp + # +++ $file timestamp + # to both lines working on the same file and having a/ and b/ prefix. + # Else it can not be applied with 'git apply'. + "$BLACK" "$BLACK_OPTIONS" --diff "$file" | \ + sed -e "1s|--- |--- a/|" -e "2s|+++ |+++ b/|" >> "$patch" +done + +# if no patch has been generated all is ok, clean up the file stub and exit +if [ ! -s "$patch" ] ; then + printf "Files in this commit comply with the black formatter rules.\n" + rm -f "$patch" + exit 0 +fi + +# a patch has been created, notify the user and exit +printf "\nThe following differences were found between the code to commit " +printf "and the black formatter rules:\n\n" + +if [ -t 1 ] ; then + $READER "$patch" + printf "\n" + # Allows us to read user input below, assigns stdin to keyboard + exec < /dev/tty + terminal="1" +else + cat "$patch" + printf "\n" + # Allows non zero zenity/powershell output + set +e + terminal="0" +fi + +while true; do + if [ $terminal = "0" ] ; then + if [ -x "$ZENITY" ] ; then + choice=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage") + if [ "$?" = "0" ] ; then + yn="Y" + else + if [ "$choice" = "Apply and stage" ] ; then + yn="S" + else + yn="N" + fi + fi + elif [ -x "$XMSG" ] ; then + $XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?" + choice=$? + if [ "$choice" = "100" ] ; then + yn="Y" + elif [ "$choice" = "200" ] ; then + yn="S" + else + yn="N" + fi + elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then + winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")" + $PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?" + choice=$? + if [ "$choice" = "100" ] ; then + yn="Y" + elif [ "$choice" = "200" ] ; then + yn="S" + else + yn="N" + fi + else + printf "Error: zenity, xmessage, or powershell executable not found.\n" + exit 1 + fi + else + read -p "Do you want to apply that patch (Y - Apply, N - Do not apply, S - Apply and stage files)? [Y/N/S] " yn + fi + case $yn in + [Yy] ) git apply $patch; + printf "The patch was applied. You can now stage the changes and commit again.\n\n"; + break + ;; + [Nn] ) printf "\nYou can apply these changes with:\n git apply $patch\n"; + printf "(may need to be called from the root directory of your repository)\n"; + printf "Aborting commit. Apply changes and commit again or skip checking with"; + printf " --no-verify (not recommended).\n\n"; + break + ;; + [Ss] ) git apply $patch; + git diff-index --cached --diff-filter=ACMR --name-only $against -- | while read file; + do git add $file; + done + printf "The patch was applied and the changed files staged. You can now commit.\n\n"; + break + ;; + * ) echo "Please answer yes or no." + ;; + esac +done +exit 1 # we don't commit in any case diff --git a/lib/godot-cpp/misc/hooks/pre-commit-clang-format b/lib/godot-cpp/misc/hooks/pre-commit-clang-format new file mode 100644 index 0000000..2ee3f56 --- /dev/null +++ b/lib/godot-cpp/misc/hooks/pre-commit-clang-format @@ -0,0 +1,242 @@ +#!/usr/bin/env bash + +# git pre-commit hook that runs a clang-format stylecheck. +# Features: +# - abort commit when commit does not comply with the style guidelines +# - create a patch of the proposed style changes +# Modifications for clang-format by rene.milk@wwu.de + +# This file is part of a set of unofficial pre-commit hooks available +# at github. +# Link: https://github.com/githubbrowser/Pre-commit-hooks +# Contact: David Martin, david.martin.mailbox@googlemail.com + +# Some quality of life modifications made for Godot Engine. + +################################################################## +# SETTINGS +# Set path to clang-format binary. +CLANG_FORMAT=`which clang-format 2>/dev/null` + +# Remove any older patches from previous commits. Set to true or false. +DELETE_OLD_PATCHES=false + +# Only parse files with the extensions in FILE_EXTS. Set to true or false. +# If false every changed file in the commit will be parsed with clang-format. +# If true only files matching one of the extensions are parsed with clang-format. +PARSE_EXTS=true + +# File types to parse. Only effective when PARSE_EXTS is true. +FILE_EXTS=".c .h .cpp .hpp .cc .hh .cxx .m .mm .inc .java .glsl" + +# Use pygmentize instead of cat to parse diff with highlighting. +# Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac) +PYGMENTIZE=`which pygmentize 2>/dev/null` +if [ ! -z "$PYGMENTIZE" ]; then + READER="pygmentize -l diff" +else + READER=cat +fi + +# Path to zenity +ZENITY=`which zenity 2>/dev/null` + +# Path to xmessage +XMSG=`which xmessage 2>/dev/null` + +# Path to powershell (Windows only) +PWSH=`which powershell 2>/dev/null` + +################################################################## +# There should be no need to change anything below this line. + +. "$(dirname -- "$0")/canonicalize_filename.sh" + +# exit on error +set -e + +# check whether the given file matches any of the set extensions +matches_extension() { + local filename=$(basename "$1") + local extension=".${filename##*.}" + local ext + + for ext in $FILE_EXTS; do [[ "$ext" == "$extension" ]] && return 0; done + + return 1 +} + +# necessary check for initial commit +if git rev-parse --verify HEAD >/dev/null 2>&1 ; then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 +fi + +# To get consistent formatting, we recommend contributors to use the same +# clang-format version as CI. +RECOMMENDED_CLANG_FORMAT_MAJOR_MIN="12" +RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="13" + +if [ ! -x "$CLANG_FORMAT" ] ; then + message="Error: clang-format executable not found. Please install clang-format $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX." + + if [ ! -t 1 ] ; then + if [ -x "$ZENITY" ] ; then + $ZENITY --error --title="Error" --text="$message" + exit 1 + elif [ -x "$XMSG" ] ; then + $XMSG -center -title "Error" "$message" + exit 1 + elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then + winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")" + $PWSH -noprofile -executionpolicy bypass -file "$winmessage" -center -title "Error" --text "$message" + exit 1 + fi + fi + printf "$message\n" + printf "Set the correct path in $(canonicalize_filename "$0").\n" + exit 1 +fi + +# The returned string can be inconsistent depending on where clang-format comes from. +# Example output strings reported by `clang-format --version`: +# - Ubuntu: "Ubuntu clang-format version 11.0.0-2" +# - Fedora: "clang-format version 11.0.0 (Fedora 11.0.0-2.fc33)" +CLANG_FORMAT_VERSION="$(clang-format --version | sed "s/[^0-9\.]*\([0-9\.]*\).*/\1/")" +CLANG_FORMAT_MAJOR="$(echo "$CLANG_FORMAT_VERSION" | cut -d. -f1)" + +if [[ "$CLANG_FORMAT_MAJOR" -lt "$RECOMMENDED_CLANG_FORMAT_MAJOR_MIN" || "$CLANG_FORMAT_MAJOR" -gt "$RECOMMENDED_CLANG_FORMAT_MAJOR_MAX" ]]; then + echo "Warning: Your clang-format binary is the wrong version ($CLANG_FORMAT_VERSION, expected between $RECOMMENDED_CLANG_FORMAT_MAJOR_MIN and $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX)." + echo " Consider upgrading or downgrading clang-format as formatting may not be applied correctly." +fi + +# create a random filename to store our generated patch +prefix="pre-commit-clang-format" +suffix="$(date +%s)" +patch="/tmp/$prefix-$suffix.patch" + +# clean up any older clang-format patches +$DELETE_OLD_PATCHES && rm -f /tmp/$prefix*.patch + +# create one patch containing all changes to the files +git diff-index --cached --diff-filter=ACMR --name-only $against -- | while read file; +do + # ignore thirdparty files + if grep -q "thirdparty" <<< $file; then + continue; + fi + if grep -q "platform/android/java/lib/src/com" <<< $file; then + continue; + fi + if grep -q "\-so_wrap." <<< $file; then + continue; + fi + + # ignore file if we do check for file extensions and the file + # does not match any of the extensions specified in $FILE_EXTS + if $PARSE_EXTS && ! matches_extension "$file"; then + continue; + fi + + # clang-format our sourcefile, create a patch with diff and append it to our $patch + # The sed call is necessary to transform the patch from + # --- $file timestamp + # +++ - timestamp + # to both lines working on the same file and having a/ and b/ prefix. + # Else it can not be applied with 'git apply'. + "$CLANG_FORMAT" -style=file "$file" --Wno-error=unknown | \ + diff -u "$file" - | \ + sed -e "1s|--- |--- a/|" -e "2s|+++ -|+++ b/$file|" >> "$patch" +done + +# if no patch has been generated all is ok, clean up the file stub and exit +if [ ! -s "$patch" ] ; then + printf "Files in this commit comply with the clang-format rules.\n" + rm -f "$patch" + exit 0 +fi + +# a patch has been created, notify the user and exit +printf "\nThe following differences were found between the code to commit " +printf "and the clang-format rules:\n\n" + +if [ -t 1 ] ; then + $READER "$patch" + printf "\n" + # Allows us to read user input below, assigns stdin to keyboard + exec < /dev/tty + terminal="1" +else + cat "$patch" + printf "\n" + # Allows non zero zenity/powershell output + set +e + terminal="0" +fi + +while true; do + if [ $terminal = "0" ] ; then + if [ -x "$ZENITY" ] ; then + choice=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage") + if [ "$?" = "0" ] ; then + yn="Y" + else + if [ "$choice" = "Apply and stage" ] ; then + yn="S" + else + yn="N" + fi + fi + elif [ -x "$XMSG" ] ; then + $XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?" + choice=$? + if [ "$choice" = "100" ] ; then + yn="Y" + elif [ "$choice" = "200" ] ; then + yn="S" + else + yn="N" + fi + elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then + winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")" + $PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?" + choice=$? + if [ "$choice" = "100" ] ; then + yn="Y" + elif [ "$choice" = "200" ] ; then + yn="S" + else + yn="N" + fi + else + printf "Error: zenity, xmessage, or powershell executable not found.\n" + exit 1 + fi + else + read -p "Do you want to apply that patch (Y - Apply, N - Do not apply, S - Apply and stage files)? [Y/N/S] " yn + fi + case $yn in + [Yy] ) git apply $patch; + printf "The patch was applied. You can now stage the changes and commit again.\n\n"; + break + ;; + [Nn] ) printf "\nYou can apply these changes with:\n git apply $patch\n"; + printf "(may need to be called from the root directory of your repository)\n"; + printf "Aborting commit. Apply changes and commit again or skip checking with"; + printf " --no-verify (not recommended).\n\n"; + break + ;; + [Ss] ) git apply $patch; + git diff-index --cached --diff-filter=ACMR --name-only $against -- | while read file; + do git add $file; + done + printf "The patch was applied and the changed files staged. You can now commit.\n\n"; + break + ;; + * ) echo "Please answer yes or no." + ;; + esac +done +exit 1 # we don't commit in any case diff --git a/lib/godot-cpp/misc/hooks/winmessage.ps1 b/lib/godot-cpp/misc/hooks/winmessage.ps1 new file mode 100644 index 0000000..3672579 --- /dev/null +++ b/lib/godot-cpp/misc/hooks/winmessage.ps1 @@ -0,0 +1,103 @@ +Param ( + [string]$file = "", + [string]$text = "", + [string]$buttons = "OK:0", + [string]$default = "", + [switch]$nearmouse = $false, + [switch]$center = $false, + [string]$geometry = "", + [int32]$timeout = 0, + [string]$title = "Message" +) +Add-Type -assembly System.Windows.Forms + +$global:Result = 0 + +$main_form = New-Object System.Windows.Forms.Form +$main_form.Text = $title + +$geometry_data = $geometry.Split("+") +if ($geometry_data.Length -ge 1) { + $size_data = $geometry_data[0].Split("x") + if ($size_data.Length -eq 2) { + $main_form.Width = $size_data[0] + $main_form.Height = $size_data[1] + } +} +if ($geometry_data.Length -eq 3) { + $main_form.StartPosition = [System.Windows.Forms.FormStartPosition]::Manual + $main_form.Location = New-Object System.Drawing.Point($geometry_data[1], $geometry_data[2]) +} +if ($nearmouse) { + $main_form.StartPosition = [System.Windows.Forms.FormStartPosition]::Manual + $main_form.Location = System.Windows.Forms.Cursor.Position +} +if ($center) { + $main_form.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen +} + +$main_form.SuspendLayout() + +$button_panel = New-Object System.Windows.Forms.FlowLayoutPanel +$button_panel.SuspendLayout() +$button_panel.FlowDirection = [System.Windows.Forms.FlowDirection]::RightToLeft +$button_panel.Dock = [System.Windows.Forms.DockStyle]::Bottom +$button_panel.Autosize = $true + +if ($file -ne "") { + $text = [IO.File]::ReadAllText($file).replace("`n", "`r`n") +} + +if ($text -ne "") { + $text_box = New-Object System.Windows.Forms.TextBox + $text_box.Multiline = $true + $text_box.ReadOnly = $true + $text_box.Autosize = $true + $text_box.Text = $text + $text_box.Select(0,0) + $text_box.Dock = [System.Windows.Forms.DockStyle]::Fill + $main_form.Controls.Add($text_box) +} + +$buttons_array = $buttons.Split(",") +foreach ($button in $buttons_array) { + $button_data = $button.Split(":") + $button_ctl = New-Object System.Windows.Forms.Button + if ($button_data.Length -eq 2) { + $button_ctl.Tag = $button_data[1] + } else { + $button_ctl.Tag = 100 + $buttons_array.IndexOf($button) + } + if ($default -eq $button_data[0]) { + $main_form.AcceptButton = $button_ctl + } + $button_ctl.Autosize = $true + $button_ctl.Text = $button_data[0] + $button_ctl.Add_Click( + { + Param($sender) + $global:Result = $sender.Tag + $main_form.Close() + } + ) + $button_panel.Controls.Add($button_ctl) +} +$main_form.Controls.Add($button_panel) + +$button_panel.ResumeLayout($false) +$main_form.ResumeLayout($false) + +if ($timeout -gt 0) { + $timer = New-Object System.Windows.Forms.Timer + $timer.Add_Tick( + { + $global:Result = 0 + $main_form.Close() + } + ) + $timer.Interval = $timeout + $timer.Start() +} +$dlg_res = $main_form.ShowDialog() + +[Environment]::Exit($global:Result) diff --git a/lib/godot-cpp/misc/scripts/black_format.sh b/lib/godot-cpp/misc/scripts/black_format.sh new file mode 100644 index 0000000..99343f1 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/black_format.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# This script runs black on all Python files in the repo. + +set -uo pipefail + +# Apply black. +echo -e "Formatting Python files..." +PY_FILES=$(git ls-files -- '*SConstruct' '*SCsub' '*.py' ':!:.git/*' ':!:thirdparty/*') +black -l 120 $PY_FILES + +diff=$(git diff --color) + +# If no patch has been generated all is OK, clean up, and exit. +if [ -z "$diff" ] ; then + printf "Files in this commit comply with the black style rules.\n" + exit 0 +fi + +# A patch has been created, notify the user, clean up, and exit. +printf "\n*** The following differences were found between the code " +printf "and the formatting rules:\n\n" +echo "$diff" +printf "\n*** Aborting, please fix your commit(s) with 'git commit --amend' or 'git rebase -i '\n" +exit 1 diff --git a/lib/godot-cpp/misc/scripts/check_ci_log.py b/lib/godot-cpp/misc/scripts/check_ci_log.py new file mode 100644 index 0000000..2c75b83 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/check_ci_log.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import sys + +if len(sys.argv) < 2: + print("ERROR: You must run program with file name as argument.") + sys.exit(50) + +fname = sys.argv[1] + +fileread = open(fname.strip(), "r") +file_contents = fileread.read() + +# If find "ERROR: AddressSanitizer:", then happens invalid read or write +# This is critical bug, so we need to fix this as fast as possible + +if file_contents.find("ERROR: AddressSanitizer:") != -1: + print("FATAL ERROR: An incorrectly used memory was found.") + sys.exit(51) + +# There is also possible, that program crashed with or without backtrace. + +if ( + file_contents.find("Program crashed with signal") != -1 + or file_contents.find("Dumping the backtrace") != -1 + or file_contents.find("Segmentation fault (core dumped)") != -1 +): + print("FATAL ERROR: Godot has been crashed.") + sys.exit(52) + +# Finding memory leaks in Godot is quite difficult, because we need to take into +# account leaks also in external libraries. They are usually provided without +# debugging symbols, so the leak report from it usually has only 2/3 lines, +# so searching for 5 element - "#4 0x" - should correctly detect the vast +# majority of memory leaks + +if file_contents.find("ERROR: LeakSanitizer:") != -1: + if file_contents.find("#4 0x") != -1: + print("ERROR: Memory leak was found") + sys.exit(53) + +# It may happen that Godot detects leaking nodes/resources and removes them, so +# this possibility should also be handled as a potential error, even if +# LeakSanitizer doesn't report anything + +if file_contents.find("ObjectDB instances leaked at exit") != -1: + print("ERROR: Memory leak was found") + sys.exit(54) + +# In test project may be put several assert functions which will control if +# project is executed with right parameters etc. which normally will not stop +# execution of project + +if file_contents.find("Assertion failed") != -1: + print("ERROR: Assertion failed in project, check execution log for more info") + sys.exit(55) + +# For now Godot leaks a lot of rendering stuff so for now we just show info +# about it and this needs to be re-enabled after fixing this memory leaks. + +if file_contents.find("were leaked") != -1 or file_contents.find("were never freed") != -1: + print("WARNING: Memory leak was found") + +sys.exit(0) diff --git a/lib/godot-cpp/misc/scripts/check_get_file_list.py b/lib/godot-cpp/misc/scripts/check_get_file_list.py new file mode 100644 index 0000000..d536a7a --- /dev/null +++ b/lib/godot-cpp/misc/scripts/check_get_file_list.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +import os, sys + +from pathlib import Path + +sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "..")) + +from binding_generator import get_file_list, generate_bindings + +api_filepath = "gdextension/extension_api.json" +bits = "64" +precision = "single" +output_dir = "self_test" + +generate_bindings(api_filepath, use_template_get_node=False, bits=bits, precision=precision, output_dir=output_dir) +flist = get_file_list(api_filepath, output_dir, headers=True, sources=True) + +p = Path(output_dir) / "gen" +allfiles = [str(f.as_posix()) for f in p.glob("**/*.*")] +missing = list(filter((lambda f: f not in flist), allfiles)) +extras = list(filter((lambda f: f not in allfiles), flist)) +if len(missing) > 0 or len(extras) > 0: + print("Error!") + for f in missing: + print("MISSING: " + str(f)) + for f in extras: + print("EXTRA: " + str(f)) + sys.exit(1) +else: + print("OK!") diff --git a/lib/godot-cpp/misc/scripts/clang_format.sh b/lib/godot-cpp/misc/scripts/clang_format.sh new file mode 100644 index 0000000..a5c07b9 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/clang_format.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# This script runs clang-format and fixes copyright headers on all relevant files in the repo. +# This is the primary script responsible for fixing style violations. + +set -uo pipefail + +# Loops through all code files tracked by Git. +git ls-files -- '*.c' '*.h' '*.cpp' '*.hpp' '*.cc' '*.hh' '*.cxx' '*.m' '*.mm' '*.inc' | +while read -r f; do + # Run clang-format. + clang-format --Wno-error=unknown -i "$f" + + # Fix copyright headers, but not all files get them. + if [[ "$f" == *"inc" ]]; then + continue + elif [[ "$f" == *"glsl" ]]; then + continue + elif [[ "$f" == "test/"* ]]; then + continue + fi + + python misc/scripts/copyright_headers.py "$f" +done + +diff=$(git diff --color) + +# If no patch has been generated all is OK, clean up, and exit. +if [ -z "$diff" ] ; then + printf "Files in this commit comply with the clang-tidy style rules.\n" + exit 0 +fi + +# A patch has been created, notify the user, clean up, and exit. +printf "\n*** The following changes have been made to comply with the formatting rules:\n\n" +echo "$diff" +printf "\n*** Please fix your commit(s) with 'git commit --amend' or 'git rebase -i '\n" +exit 1 diff --git a/lib/godot-cpp/misc/scripts/codespell.sh b/lib/godot-cpp/misc/scripts/codespell.sh new file mode 100644 index 0000000..2822c64 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/codespell.sh @@ -0,0 +1,5 @@ +#!/bin/sh +SKIP_LIST="./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/scripts/codespell.sh" +IGNORE_LIST="ba,childs,curvelinear,expct,fave,findn,gird,inout,lod,nd,numer,ois,ro,statics,te,varn" + +codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}" diff --git a/lib/godot-cpp/misc/scripts/copyright_headers.py b/lib/godot-cpp/misc/scripts/copyright_headers.py new file mode 100644 index 0000000..a5e2f0c --- /dev/null +++ b/lib/godot-cpp/misc/scripts/copyright_headers.py @@ -0,0 +1,95 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import sys + +header = """\ +/**************************************************************************/ +/* $filename */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ +""" + +fname = sys.argv[1] + +# Handle replacing $filename with actual filename and keep alignment +fsingle = fname.strip() +if fsingle.find("/") != -1: + fsingle = fsingle[fsingle.rfind("/") + 1 :] +rep_fl = "$filename" +rep_fi = fsingle +len_fl = len(rep_fl) +len_fi = len(rep_fi) +# Pad with spaces to keep alignment +if len_fi < len_fl: + for x in range(len_fl - len_fi): + rep_fi += " " +elif len_fl < len_fi: + for x in range(len_fi - len_fl): + rep_fl += " " +if header.find(rep_fl) != -1: + text = header.replace(rep_fl, rep_fi) +else: + text = header.replace("$filename", fsingle) +text += "\n" + +# We now have the proper header, so we want to ignore the one in the original file +# and potentially empty lines and badly formatted lines, while keeping comments that +# come after the header, and then keep everything non-header unchanged. +# To do so, we skip empty lines that may be at the top in a first pass. +# In a second pass, we skip all consecutive comment lines starting with "/*", +# then we can append the rest (step 2). + +fileread = open(fname.strip(), "r") +line = fileread.readline() +header_done = False + +while line.strip() == "": # Skip empty lines at the top + line = fileread.readline() + +if line.find("/**********") == -1: # Godot header starts this way + # Maybe starting with a non-Godot comment, abort header magic + header_done = True + +while not header_done: # Handle header now + if line.find("/*") != 0: # No more starting with a comment + header_done = True + if line.strip() != "": + text += line + line = fileread.readline() + +while line != "": # Dump everything until EOF + text += line + line = fileread.readline() + +fileread.close() + +# Write +filewrite = open(fname.strip(), "w") +filewrite.write(text) +filewrite.close() diff --git a/lib/godot-cpp/misc/scripts/file_format.sh b/lib/godot-cpp/misc/scripts/file_format.sh new file mode 100644 index 0000000..6621af5 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/file_format.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +# This script ensures proper POSIX text file formatting and a few other things. +# This is supplementary to clang_format.sh and black_format.sh, but should be +# run before them. + +# We need dos2unix and recode. +if [ ! -x "$(command -v dos2unix)" -o ! -x "$(command -v recode)" ]; then + printf "Install 'dos2unix' and 'recode' to use this script.\n" +fi + +set -uo pipefail +IFS=$'\n\t' + +# Loops through all text files tracked by Git. +git grep -zIl '' | +while IFS= read -rd '' f; do + # Ensure that files are UTF-8 formatted. + recode UTF-8 "$f" 2> /dev/null + # Ensure that files have LF line endings and do not contain a BOM. + dos2unix "$f" 2> /dev/null + # Remove trailing space characters and ensures that files end + # with newline characters. -l option handles newlines conveniently. + perl -i -ple 's/\s*$//g' "$f" +done + +diff=$(git diff --color) + +# If no patch has been generated all is OK, clean up, and exit. +if [ -z "$diff" ] ; then + printf "Files in this commit comply with the formatting rules.\n" + rm -f patch.patch + exit 0 +fi + +# A patch has been created, notify the user, clean up, and exit. +printf "\n*** The following differences were found between the code " +printf "and the formatting rules:\n\n" +echo "$diff" +printf "\n*** Aborting, please fix your commit(s) with 'git commit --amend' or 'git rebase -i '\n" +exit 1 diff --git a/lib/godot-cpp/misc/scripts/header_guards.sh b/lib/godot-cpp/misc/scripts/header_guards.sh new file mode 100644 index 0000000..7cea339 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/header_guards.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +if [ ! -f "SConstruct" ]; then + echo "Warning: This script is intended to be run from the root of the Godot repository." + echo "Some of the paths checks may not work as intended from a different folder." +fi + +files_invalid_guard="" + +for file in $(find . -name "*.hpp" -print); do + # Skip generated files. + if [[ "$file" == "./gen/"* || "$file" == "./include/gen/"* ]]; then continue; fi + # Skip the test project. + if [[ "$file" == "./test/"* ]]; then continue; fi + + bname=$(basename $file .hpp) + + # NOTE: The "GODOT_CPP_" prefix is already used by the generated + # bindings, so we can't use that. We'll use "GODOT_" instead. + prefix="GODOT_" + + # ^^ is bash builtin for UPPERCASE. + guard="${prefix}${bname^^}_HPP" + + # Replaces guards to use computed name. + # We also add some \n to make sure there's a proper separation. + sed -i $file -e "0,/ifndef/s/#ifndef.*/\n#ifndef $guard/" + sed -i $file -e "0,/define/s/#define.*/#define $guard\n/" + sed -i $file -e "$ s/#endif.*/\n#endif \/\/ $guard/" + # Removes redundant \n added before, if they weren't needed. + sed -i $file -e "/^$/N;/^\n$/D" + + # Check that first ifndef (should be header guard) is at the expected position. + # If not it can mean we have some code before the guard that should be after. + # "31" is the expected line with the copyright header. + first_ifndef=$(grep -n -m 1 "ifndef" $file | sed 's/\([0-9]*\).*/\1/') + if [[ "$first_ifndef" != "31" ]]; then + files_invalid_guard+="$file\n" + fi +done + +if [[ ! -z "$files_invalid_guard" ]]; then + echo -e "The following files were found to have potentially invalid header guard:\n" + echo -e "$files_invalid_guard" +fi + +diff=$(git diff --color) + +# If no diff has been generated all is OK, clean up, and exit. +if [ -z "$diff" ] ; then + printf "Files in this commit comply with the header guards formatting rules.\n" + exit 0 +fi + +# A diff has been created, notify the user, clean up, and exit. +printf "\n*** The following differences were found between the code " +printf "and the header guards formatting rules:\n\n" +echo "$diff" +printf "\n*** Aborting, please fix your commit(s) with 'git commit --amend' or 'git rebase -i '\n" +exit 1 diff --git a/lib/godot-cpp/misc/scripts/make_tarball.sh b/lib/godot-cpp/misc/scripts/make_tarball.sh new file mode 100644 index 0000000..9e02b80 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/make_tarball.sh @@ -0,0 +1,66 @@ +#!/bin/sh + +if [ ! -e "version.py" ]; then + echo "This script should be ran from the root folder of the Godot repository." + exit 1 +fi + +while getopts "h?sv:g:" opt; do + case "$opt" in + h|\?) + echo "Usage: $0 [OPTIONS...]" + echo + echo " -s script friendly file name (godot.tar.gz)" + echo " -v godot version for file name (e.g. 4.0-stable)" + echo " -g git treeish to archive (e.g. master)" + echo + exit 1 + ;; + s) + script_friendly_name=1 + ;; + v) + godot_version=$OPTARG + ;; + g) + git_treeish=$OPTARG + ;; + esac +done + +if [ ! -z "$git_treeish" ]; then + HEAD=$(git rev-parse $git_treeish) +else + HEAD=$(git rev-parse HEAD) +fi + +if [ ! -z "$script_friendly_name" ]; then + NAME=godot +else + if [ ! -z "$godot_version" ]; then + NAME=godot-$godot_version + else + NAME=godot-$HEAD + fi +fi + +CURDIR=$(pwd) +TMPDIR=$(mktemp -d -t godot-XXXXXX) + +echo "Generating tarball for revision $HEAD with folder name '$NAME'." +echo +echo "The tarball will be written to the parent folder:" +echo " $(dirname $CURDIR)/$NAME.tar.gz" + +git archive $HEAD --prefix=$NAME/ -o $TMPDIR/$NAME.tar + +# Adding custom .git/HEAD to tarball so that we can generate VERSION_HASH. +cd $TMPDIR +mkdir -p $NAME/.git +echo $HEAD > $NAME/.git/HEAD +tar -uf $NAME.tar $NAME + +cd $CURDIR +gzip -c $TMPDIR/$NAME.tar > ../$NAME.tar.gz + +rm -rf $TMPDIR diff --git a/lib/godot-cpp/misc/scripts/mypy.ini b/lib/godot-cpp/misc/scripts/mypy.ini new file mode 100644 index 0000000..c1ea695 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/mypy.ini @@ -0,0 +1,11 @@ +[mypy] +ignore_missing_imports = true +disallow_any_generics = True +pretty = True +show_column_numbers = True +warn_redundant_casts = True +warn_return_any = True +warn_unreachable = True + +namespace_packages = True +explicit_package_bases = True diff --git a/lib/godot-cpp/misc/scripts/mypy_check.sh b/lib/godot-cpp/misc/scripts/mypy_check.sh new file mode 100644 index 0000000..2a06486 --- /dev/null +++ b/lib/godot-cpp/misc/scripts/mypy_check.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -uo pipefail + +echo -e "Python: mypy static analysis..." +mypy --config-file=./misc/scripts/mypy.ini . diff --git a/lib/godot-cpp/src/classes/low_level.cpp b/lib/godot-cpp/src/classes/low_level.cpp new file mode 100644 index 0000000..681b2b4 --- /dev/null +++ b/lib/godot-cpp/src/classes/low_level.cpp @@ -0,0 +1,58 @@ +/**************************************************************************/ +/* low_level.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include +#include +#include + +#include + +namespace godot { +Error XMLParser::_open_buffer(const uint8_t *p_buffer, size_t p_size) { + return (Error)internal::gde_interface->xml_parser_open_buffer(_owner, p_buffer, p_size); +} + +uint64_t FileAccess::get_buffer(uint8_t *p_dst, uint64_t p_length) const { + return internal::gde_interface->file_access_get_buffer(_owner, p_dst, p_length); +} + +void FileAccess::store_buffer(const uint8_t *p_src, uint64_t p_length) { + internal::gde_interface->file_access_store_buffer(_owner, p_src, p_length); +} + +WorkerThreadPool::TaskID WorkerThreadPool::add_native_task(void (*p_func)(void *), void *p_userdata, bool p_high_priority, const String &p_description) { + return (TaskID)internal::gde_interface->worker_thread_pool_add_native_task(_owner, p_func, p_userdata, p_high_priority, (GDExtensionConstStringPtr)&p_description); +} + +WorkerThreadPool::GroupID WorkerThreadPool::add_native_group_task(void (*p_func)(void *, uint32_t), void *p_userdata, int p_elements, int p_tasks, bool p_high_priority, const String &p_description) { + return (GroupID)internal::gde_interface->worker_thread_pool_add_native_group_task(_owner, p_func, p_userdata, p_elements, p_tasks, p_high_priority, (GDExtensionConstStringPtr)&p_description); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/classes/wrapped.cpp b/lib/godot-cpp/src/classes/wrapped.cpp new file mode 100644 index 0000000..da99613 --- /dev/null +++ b/lib/godot-cpp/src/classes/wrapped.cpp @@ -0,0 +1,63 @@ +/**************************************************************************/ +/* wrapped.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include + +#include + +namespace godot { + +const StringName *Wrapped::_get_extension_class_name() const { + return nullptr; +} + +void Wrapped::_postinitialize() { + const StringName *extension_class = _get_extension_class_name(); + if (extension_class) { + godot::internal::gde_interface->object_set_instance(_owner, reinterpret_cast(extension_class), this); + } + godot::internal::gde_interface->object_set_instance_binding(_owner, godot::internal::token, this, _get_bindings_callbacks()); +} + +Wrapped::Wrapped(const StringName p_godot_class) { + _owner = godot::internal::gde_interface->classdb_construct_object(reinterpret_cast(p_godot_class._native_ptr())); +} + +Wrapped::Wrapped(GodotObject *p_godot_object) { + _owner = p_godot_object; +} + +void postinitialize_handler(Wrapped *p_wrapped) { + p_wrapped->_postinitialize(); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/core/class_db.cpp b/lib/godot-cpp/src/core/class_db.cpp new file mode 100644 index 0000000..bdce68c --- /dev/null +++ b/lib/godot-cpp/src/core/class_db.cpp @@ -0,0 +1,358 @@ +/**************************************************************************/ +/* class_db.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +#include + +#include + +namespace godot { + +std::unordered_map ClassDB::classes; +GDExtensionInitializationLevel ClassDB::current_level = GDEXTENSION_INITIALIZATION_CORE; + +MethodDefinition D_METHOD(StringName p_name) { + return MethodDefinition(p_name); +} + +MethodDefinition D_METHOD(StringName p_name, StringName p_arg1) { + MethodDefinition method(p_name); + method.args.push_front(p_arg1); + return method; +} + +void ClassDB::add_property_group(const StringName &p_class, const String &p_name, const String &p_prefix) { + ERR_FAIL_COND_MSG(classes.find(p_class) == classes.end(), String("Trying to add property '{0}{1}' to non-existing class '{2}'.").format(Array::make(p_prefix, p_name, p_class))); + + internal::gde_interface->classdb_register_extension_class_property_group(internal::library, p_class._native_ptr(), p_name._native_ptr(), p_prefix._native_ptr()); +} + +void ClassDB::add_property_subgroup(const StringName &p_class, const String &p_name, const String &p_prefix) { + ERR_FAIL_COND_MSG(classes.find(p_class) == classes.end(), String("Trying to add property '{0}{1}' to non-existing class '{2}'.").format(Array::make(p_prefix, p_name, p_class))); + + internal::gde_interface->classdb_register_extension_class_property_subgroup(internal::library, p_class._native_ptr(), p_name._native_ptr(), p_prefix._native_ptr()); +} + +void ClassDB::add_property(const StringName &p_class, const PropertyInfo &p_pinfo, const StringName &p_setter, const StringName &p_getter, int p_index) { + ERR_FAIL_COND_MSG(classes.find(p_class) == classes.end(), String("Trying to add property '{0}' to non-existing class '{1}'.").format(Array::make(p_pinfo.name, p_class))); + + ClassInfo &info = classes[p_class]; + + ERR_FAIL_COND_MSG(info.property_names.find(p_pinfo.name) != info.property_names.end(), String("Property '{0}' already exists in class '{1}'.").format(Array::make(p_pinfo.name, p_class))); + + MethodBind *setter = nullptr; + if (p_setter != String("")) { + setter = get_method(p_class, p_setter); + + ERR_FAIL_COND_MSG(!setter, String("Setter method '{0}::{1}()' not found for property '{2}::{3}'.").format(Array::make(p_class, p_setter, p_class, p_pinfo.name))); + + size_t exp_args = 1 + (p_index >= 0 ? 1 : 0); + ERR_FAIL_COND_MSG((int)exp_args != setter->get_argument_count(), String("Setter method '{0}::{1}()' must take a single argument.").format(Array::make(p_class, p_setter))); + } + + ERR_FAIL_COND_MSG(p_getter == String(""), String("Getter method must be specified for '{0}::{1}'.").format(Array::make(p_class, p_pinfo.name))); + + MethodBind *getter = get_method(p_class, p_getter); + ERR_FAIL_COND_MSG(!getter, String("Getter method '{0}::{1}()' not found for property '{2}::{3}'.").format(Array::make(p_class, p_getter, p_class, p_pinfo.name))); + { + size_t exp_args = 0 + (p_index >= 0 ? 1 : 0); + ERR_FAIL_COND_MSG((int)exp_args != getter->get_argument_count(), String("Getter method '{0}::{1}()' must not take any argument.").format(Array::make(p_class, p_getter))); + } + + // register property with plugin + info.property_names.insert(p_pinfo.name); + + // register with Godot + GDExtensionPropertyInfo prop_info = { + static_cast(p_pinfo.type), // GDExtensionVariantType type; + p_pinfo.name._native_ptr(), // GDExtensionStringNamePtr name; + p_pinfo.class_name._native_ptr(), // GDExtensionStringNamePtr class_name; + p_pinfo.hint, // NONE //uint32_t hint; + p_pinfo.hint_string._native_ptr(), // GDExtensionStringPtr hint_string; + p_pinfo.usage, // DEFAULT //uint32_t usage; + }; + + PropertySetGet setget; + setget.setter = p_setter; + setget.getter = p_getter; + setget._setptr = setter; + setget._getptr = getter; + setget.index = p_index; + setget.type = p_pinfo.type; + + internal::gde_interface->classdb_register_extension_class_property(internal::library, info.name._native_ptr(), &prop_info, setget.setter._native_ptr(), setget.getter._native_ptr()); +} + +MethodBind *ClassDB::get_method(const StringName &p_class, const StringName &p_method) { + ERR_FAIL_COND_V_MSG(classes.find(p_class) == classes.end(), nullptr, String("Class '{0}' not found.").format(Array::make(p_class))); + + ClassInfo *type = &classes[p_class]; + while (type) { + std::unordered_map::iterator method = type->method_map.find(p_method); + if (method != type->method_map.end()) { + return method->second; + } + type = type->parent_ptr; + continue; + } + + return nullptr; +} + +MethodBind *ClassDB::bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const MethodDefinition &method_name, const void **p_defs, int p_defcount) { + StringName instance_type = p_bind->get_instance_class(); + + std::unordered_map::iterator type_it = classes.find(instance_type); + if (type_it == classes.end()) { + memdelete(p_bind); + ERR_FAIL_V_MSG(nullptr, String("Class '{0}' doesn't exist.").format(Array::make(instance_type))); + } + + ClassInfo &type = type_it->second; + + if (type.method_map.find(method_name.name) != type.method_map.end()) { + memdelete(p_bind); + ERR_FAIL_V_MSG(nullptr, String("Binding duplicate method: {0}::{1}().").format(Array::make(instance_type, method_name.name))); + } + + if (type.virtual_methods.find(method_name.name) != type.virtual_methods.end()) { + memdelete(p_bind); + ERR_FAIL_V_MSG(nullptr, String("Method '{0}::{1}()' already bound as virtual.").format(Array::make(instance_type, method_name.name))); + } + + p_bind->set_name(method_name.name); + + if ((int)method_name.args.size() > p_bind->get_argument_count()) { + memdelete(p_bind); + ERR_FAIL_V_MSG(nullptr, String("Method '{0}::{1}()' definition has more arguments than the actual method.").format(Array::make(instance_type, method_name.name))); + } + + p_bind->set_hint_flags(p_flags); + + std::vector args; + args.resize(method_name.args.size()); + size_t arg_index = 0; + for (StringName arg : method_name.args) { + args[arg_index++] = arg; + } + + p_bind->set_argument_names(args); + + std::vector defvals; + + defvals.resize(p_defcount); + for (int i = 0; i < p_defcount; i++) { + defvals[i] = *static_cast(p_defs[i]); + } + + p_bind->set_default_arguments(defvals); + p_bind->set_hint_flags(p_flags); + + // register our method bind within our plugin + type.method_map[method_name.name] = p_bind; + + // and register with godot + bind_method_godot(type.name, p_bind); + + return p_bind; +} + +void ClassDB::bind_method_godot(const StringName &p_class_name, MethodBind *p_method) { + std::vector def_args; + const std::vector &def_args_val = p_method->get_default_arguments(); + def_args.resize(def_args_val.size()); + for (size_t i = 0; i < def_args_val.size(); i++) { + def_args[i] = (GDExtensionVariantPtr)&def_args_val[i]; + } + + std::vector return_value_and_arguments_info = p_method->get_arguments_info_list(); + std::vector return_value_and_arguments_metadata = p_method->get_arguments_metadata_list(); + + std::vector return_value_and_arguments_gdextension_info; + return_value_and_arguments_gdextension_info.reserve(return_value_and_arguments_info.size()); + for (std::vector::iterator it = return_value_and_arguments_info.begin(); it != return_value_and_arguments_info.end(); it++) { + return_value_and_arguments_gdextension_info.push_back( + GDExtensionPropertyInfo{ + static_cast(it->type), // GDExtensionVariantType type; + it->name._native_ptr(), // GDExtensionStringNamePtr name; + it->class_name._native_ptr(), // GDExtensionStringNamePtr class_name; + it->hint, // uint32_t hint; + it->hint_string._native_ptr(), // GDExtensionStringPtr hint_string; + it->usage, // uint32_t usage; + }); + } + + GDExtensionPropertyInfo *return_value_info = return_value_and_arguments_gdextension_info.data(); + GDExtensionClassMethodArgumentMetadata *return_value_metadata = return_value_and_arguments_metadata.data(); + GDExtensionPropertyInfo *arguments_info = return_value_and_arguments_gdextension_info.data() + 1; + GDExtensionClassMethodArgumentMetadata *arguments_metadata = return_value_and_arguments_metadata.data() + 1; + + StringName name = p_method->get_name(); + GDExtensionClassMethodInfo method_info = { + name._native_ptr(), // GDExtensionStringNamePtr; + p_method, // void *method_userdata; + MethodBind::bind_call, // GDExtensionClassMethodCall call_func; + MethodBind::bind_ptrcall, // GDExtensionClassMethodPtrCall ptrcall_func; + p_method->get_hint_flags(), // uint32_t method_flags; /* GDExtensionClassMethodFlags */ + (GDExtensionBool)p_method->has_return(), // GDExtensionBool has_return_value; + return_value_info, // GDExtensionPropertyInfo * + *return_value_metadata, // GDExtensionClassMethodArgumentMetadata * + (uint32_t)p_method->get_argument_count(), // uint32_t argument_count; + arguments_info, // GDExtensionPropertyInfo * + arguments_metadata, // GDExtensionClassMethodArgumentMetadata * + (uint32_t)p_method->get_default_argument_count(), // uint32_t default_argument_count; + def_args.data(), // GDExtensionVariantPtr *default_arguments; + }; + internal::gde_interface->classdb_register_extension_class_method(internal::library, p_class_name._native_ptr(), &method_info); +} + +void ClassDB::add_signal(const StringName &p_class, const MethodInfo &p_signal) { + std::unordered_map::iterator type_it = classes.find(p_class); + + ERR_FAIL_COND_MSG(type_it == classes.end(), String("Class '{0}' doesn't exist.").format(Array::make(p_class))); + + ClassInfo &cl = type_it->second; + + // Check if this signal is already register + ClassInfo *check = &cl; + while (check) { + ERR_FAIL_COND_MSG(check->signal_names.find(p_signal.name) != check->signal_names.end(), String("Class '{0}' already has signal '{1}'.").format(Array::make(p_class, p_signal.name))); + check = check->parent_ptr; + } + + // register our signal in our plugin + cl.signal_names.insert(p_signal.name); + + // register our signal in godot + std::vector parameters; + parameters.reserve(p_signal.arguments.size()); + + for (const PropertyInfo &par : p_signal.arguments) { + parameters.push_back(GDExtensionPropertyInfo{ + static_cast(par.type), // GDExtensionVariantType type; + par.name._native_ptr(), // GDExtensionStringNamePtr name; + par.class_name._native_ptr(), // GDExtensionStringNamePtr class_name; + par.hint, // NONE //uint32_t hint; + par.hint_string._native_ptr(), // GDExtensionStringPtr hint_string; + par.usage, // DEFAULT //uint32_t usage; + }); + } + + internal::gde_interface->classdb_register_extension_class_signal(internal::library, cl.name._native_ptr(), p_signal.name._native_ptr(), parameters.data(), parameters.size()); +} + +void ClassDB::bind_integer_constant(const StringName &p_class_name, const StringName &p_enum_name, const StringName &p_constant_name, GDExtensionInt p_constant_value, bool p_is_bitfield) { + std::unordered_map::iterator type_it = classes.find(p_class_name); + + ERR_FAIL_COND_MSG(type_it == classes.end(), String("Class '{0}' doesn't exist.").format(Array::make(p_class_name))); + + ClassInfo &type = type_it->second; + + // check if it already exists + ERR_FAIL_COND_MSG(type.constant_names.find(p_constant_name) != type.constant_names.end(), String("Constant '{0}::{1}' already registered.").format(Array::make(p_class_name, p_constant_name))); + + // register it with our plugin (purely to check for duplicates) + type.constant_names.insert(p_constant_name); + + // Register it with Godot + internal::gde_interface->classdb_register_extension_class_integer_constant(internal::library, p_class_name._native_ptr(), p_enum_name._native_ptr(), p_constant_name._native_ptr(), p_constant_value, p_is_bitfield); +} +GDExtensionClassCallVirtual ClassDB::get_virtual_func(void *p_userdata, GDExtensionConstStringNamePtr p_name) { + // This is called by Godot the first time it calls a virtual function, and it caches the result, per object instance. + // Because of this, it can happen from different threads at once. + // It should be ok not using any mutex as long as we only READ data. + const StringName *class_name = reinterpret_cast(p_userdata); + const StringName *name = reinterpret_cast(p_name); + + std::unordered_map::iterator type_it = classes.find(*class_name); + ERR_FAIL_COND_V_MSG(type_it == classes.end(), nullptr, String("Class '{0}' doesn't exist.").format(Array::make(*class_name))); + + const ClassInfo *type = &type_it->second; + + // Find method in current class, or any of its parent classes (Godot classes not included) + while (type != nullptr) { + std::unordered_map::const_iterator method_it = type->virtual_methods.find(*name); + + if (method_it != type->virtual_methods.end()) { + return method_it->second; + } + + type = type->parent_ptr; + } + + return nullptr; +} + +void ClassDB::bind_virtual_method(const StringName &p_class, const StringName &p_method, GDExtensionClassCallVirtual p_call) { + std::unordered_map::iterator type_it = classes.find(p_class); + ERR_FAIL_COND_MSG(type_it == classes.end(), String("Class '{0}' doesn't exist.").format(Array::make(p_class))); + + ClassInfo &type = type_it->second; + + ERR_FAIL_COND_MSG(type.method_map.find(p_method) != type.method_map.end(), String("Method '{0}::{1}()' already registered as non-virtual.").format(Array::make(p_class, p_method))); + ERR_FAIL_COND_MSG(type.virtual_methods.find(p_method) != type.virtual_methods.end(), String("Virtual '{0}::{1}()' method already registered.").format(Array::make(p_class, p_method))); + + type.virtual_methods[p_method] = p_call; +} + +void ClassDB::initialize_class(const ClassInfo &p_cl) { +} + +void ClassDB::initialize(GDExtensionInitializationLevel p_level) { + for (const std::pair pair : classes) { + const ClassInfo &cl = pair.second; + if (cl.level != p_level) { + continue; + } + + // Nothing to do here for now... + } +} + +void ClassDB::deinitialize(GDExtensionInitializationLevel p_level) { + for (const std::pair pair : classes) { + const ClassInfo &cl = pair.second; + if (cl.level != p_level) { + continue; + } + + internal::gde_interface->classdb_unregister_extension_class(internal::library, cl.name._native_ptr()); + + for (auto method : cl.method_map) { + memdelete(method.second); + } + } +} + +} // namespace godot diff --git a/lib/godot-cpp/src/core/error_macros.cpp b/lib/godot-cpp/src/core/error_macros.cpp new file mode 100644 index 0000000..12a9ece --- /dev/null +++ b/lib/godot-cpp/src/core/error_macros.cpp @@ -0,0 +1,86 @@ +/**************************************************************************/ +/* error_macros.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +#include + +namespace godot { + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, bool p_editor_notify, bool p_is_warning) { + if (p_is_warning) { + internal::gde_interface->print_warning(p_error, p_function, p_file, p_line, p_editor_notify); + } else { + internal::gde_interface->print_error(p_error, p_function, p_file, p_line, p_editor_notify); + } +} + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, bool p_editor_notify, bool p_is_warning) { + _err_print_error(p_function, p_file, p_line, p_error.utf8().get_data(), p_editor_notify, p_is_warning); +} + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const char *p_message, bool p_editor_notify, bool p_is_warning) { + if (p_is_warning) { + internal::gde_interface->print_warning_with_message(p_error, p_message, p_function, p_file, p_line, p_editor_notify); + } else { + internal::gde_interface->print_error_with_message(p_error, p_message, p_function, p_file, p_line, p_editor_notify); + } +} + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const char *p_message, bool p_editor_notify, bool p_is_warning) { + _err_print_error(p_function, p_file, p_line, p_error.utf8().get_data(), p_message, p_editor_notify, p_is_warning); +} + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const String &p_message, bool p_editor_notify, bool p_is_warning) { + _err_print_error(p_function, p_file, p_line, p_error, p_message.utf8().get_data(), p_editor_notify, p_is_warning); +} + +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const String &p_message, bool p_editor_notify, bool p_is_warning) { + _err_print_error(p_function, p_file, p_line, p_error.utf8().get_data(), p_message.utf8().get_data(), p_editor_notify, p_is_warning); +} + +void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const char *p_message, bool p_editor_notify, bool p_fatal) { + String fstr(p_fatal ? "FATAL: " : ""); + String err(fstr + "Index " + p_index_str + " = " + itos(p_index) + " is out of bounds (" + p_size_str + " = " + itos(p_size) + ")."); + _err_print_error(p_function, p_file, p_line, err.utf8().get_data(), p_message, p_editor_notify, false); +} + +void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const String &p_message, bool p_editor_notify, bool p_fatal) { + _err_print_index_error(p_function, p_file, p_line, p_index, p_size, p_index_str, p_size_str, p_message.utf8().get_data(), p_editor_notify, p_fatal); +} + +void _err_flush_stdout() { + fflush(stdout); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/core/memory.cpp b/lib/godot-cpp/src/core/memory.cpp new file mode 100644 index 0000000..8feda57 --- /dev/null +++ b/lib/godot-cpp/src/core/memory.cpp @@ -0,0 +1,132 @@ +/**************************************************************************/ +/* memory.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include + +namespace godot { + +void *Memory::alloc_static(size_t p_bytes, bool p_pad_align) { +#ifdef DEBUG_ENABLED + bool prepad = false; // Alredy pre paded in the engine. +#else + bool prepad = p_pad_align; +#endif + + void *mem = internal::gde_interface->mem_alloc(p_bytes + (prepad ? PAD_ALIGN : 0)); + ERR_FAIL_COND_V(!mem, nullptr); + + if (prepad) { + uint8_t *s8 = (uint8_t *)mem; + return s8 + PAD_ALIGN; + } else { + return mem; + } +} + +void *Memory::realloc_static(void *p_memory, size_t p_bytes, bool p_pad_align) { + if (p_memory == nullptr) { + return alloc_static(p_bytes, p_pad_align); + } else if (p_bytes == 0) { + free_static(p_memory, p_pad_align); + return nullptr; + } + + uint8_t *mem = (uint8_t *)p_memory; + +#ifdef DEBUG_ENABLED + bool prepad = false; // Alredy pre paded in the engine. +#else + bool prepad = p_pad_align; +#endif + + if (prepad) { + mem -= PAD_ALIGN; + mem = (uint8_t *)internal::gde_interface->mem_realloc(mem, p_bytes + PAD_ALIGN); + ERR_FAIL_COND_V(!mem, nullptr); + return mem + PAD_ALIGN; + } else { + return (uint8_t *)internal::gde_interface->mem_realloc(mem, p_bytes); + } +} + +void Memory::free_static(void *p_ptr, bool p_pad_align) { + uint8_t *mem = (uint8_t *)p_ptr; + +#ifdef DEBUG_ENABLED + bool prepad = false; // Alredy pre paded in the engine. +#else + bool prepad = p_pad_align; +#endif + + if (prepad) { + mem -= PAD_ALIGN; + } + internal::gde_interface->mem_free(mem); +} + +_GlobalNil::_GlobalNil() { + left = this; + right = this; + parent = this; +} + +_GlobalNil _GlobalNilClass::_nil; + +} // namespace godot + +void *operator new(size_t p_size, const char *p_description) { + return godot::Memory::alloc_static(p_size); +} + +void *operator new(size_t p_size, void *(*p_allocfunc)(size_t p_size)) { + return p_allocfunc(p_size); +} + +using namespace godot; + +#ifdef _MSC_VER +void operator delete(void *p_mem, const char *p_description) { + ERR_PRINT("Call to placement delete should not happen."); + CRASH_NOW(); +} + +void operator delete(void *p_mem, void *(*p_allocfunc)(size_t p_size)) { + ERR_PRINT("Call to placement delete should not happen."); + CRASH_NOW(); +} + +void operator delete(void *p_mem, void *p_pointer, size_t check, const char *p_description) { + ERR_PRINT("Call to placement delete should not happen."); + CRASH_NOW(); +} + +#endif diff --git a/lib/godot-cpp/src/core/method_bind.cpp b/lib/godot-cpp/src/core/method_bind.cpp new file mode 100644 index 0000000..2b28e18 --- /dev/null +++ b/lib/godot-cpp/src/core/method_bind.cpp @@ -0,0 +1,113 @@ +/**************************************************************************/ +/* method_bind.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +namespace godot { + +StringName MethodBind::get_name() const { + return name; +} + +void MethodBind::set_name(const StringName &p_name) { + name = p_name; +} + +void MethodBind::set_argument_count(int p_count) { + argument_count = p_count; +} + +void MethodBind::set_const(bool p_const) { + _is_const = p_const; +} + +void MethodBind::set_return(bool p_return) { + _has_return = p_return; +} + +void MethodBind::set_static(bool p_static) { + _static = p_static; +} + +void MethodBind::set_vararg(bool p_vararg) { + _vararg = p_vararg; +} + +void MethodBind::set_argument_names(const std::vector &p_names) { + argument_names = p_names; +} + +std::vector MethodBind::get_argument_names() const { + return argument_names; +} + +void MethodBind::generate_argument_types(int p_count) { + set_argument_count(p_count); + + if (argument_types != nullptr) { + memdelete_arr(argument_types); + } + + argument_types = memnew_arr(GDExtensionVariantType, p_count + 1); + + // -1 means return type. + for (int i = -1; i < p_count; i++) { + argument_types[i + 1] = gen_argument_type(i); + } +} + +PropertyInfo MethodBind::get_argument_info(int p_argument) const { + PropertyInfo info = gen_argument_type_info(p_argument); + if (p_argument >= 0) { + info.name = p_argument < (int)argument_names.size() ? argument_names[p_argument] : ""; + } + return info; +} + +void MethodBind::bind_call(void *p_method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstVariantPtr *p_args, GDExtensionInt p_argument_count, GDExtensionVariantPtr r_return, GDExtensionCallError *r_error) { + const MethodBind *bind = reinterpret_cast(p_method_userdata); + Variant ret = bind->call(p_instance, p_args, p_argument_count, *r_error); + // This assumes the return value is an empty Variant, so it doesn't need to call the destructor first. + // Since only GDExtensionMethodBind calls this from the Godot side, it should always be the case. + internal::gde_interface->variant_new_copy(r_return, ret._native_ptr()); +} + +void MethodBind::bind_ptrcall(void *p_method_userdata, GDExtensionClassInstancePtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr r_return) { + const MethodBind *bind = reinterpret_cast(p_method_userdata); + bind->ptrcall(p_instance, p_args, r_return); +} + +MethodBind::~MethodBind() { + if (argument_types) { + memdelete_arr(argument_types); + } +} + +} // namespace godot diff --git a/lib/godot-cpp/src/core/object.cpp b/lib/godot-cpp/src/core/object.cpp new file mode 100644 index 0000000..a29fd39 --- /dev/null +++ b/lib/godot-cpp/src/core/object.cpp @@ -0,0 +1,54 @@ +/**************************************************************************/ +/* object.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +namespace godot { + +MethodInfo::MethodInfo() : + flags(GDEXTENSION_METHOD_FLAG_NORMAL) {} + +MethodInfo::MethodInfo(StringName p_name) : + name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) {} + +MethodInfo::MethodInfo(Variant::Type ret) : + flags(GDEXTENSION_METHOD_FLAG_NORMAL) { + return_val.type = ret; +} + +MethodInfo::MethodInfo(Variant::Type ret, StringName p_name) : + name(p_name), flags(GDEXTENSION_METHOD_FLAG_NORMAL) { + return_val.type = ret; +} + +MethodInfo::MethodInfo(const PropertyInfo &p_ret, StringName p_name) : + name(p_name), return_val(p_ret), flags(GDEXTENSION_METHOD_FLAG_NORMAL) {} + +} // namespace godot diff --git a/lib/godot-cpp/src/godot.cpp b/lib/godot-cpp/src/godot.cpp new file mode 100644 index 0000000..9dd93dd --- /dev/null +++ b/lib/godot-cpp/src/godot.cpp @@ -0,0 +1,117 @@ +/**************************************************************************/ +/* godot.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include +#include +#include + +#include + +namespace godot { + +namespace internal { + +const GDExtensionInterface *gde_interface = nullptr; +GDExtensionClassLibraryPtr library = nullptr; +void *token = nullptr; + +} // namespace internal + +GDExtensionBinding::Callback GDExtensionBinding::init_callback = nullptr; +GDExtensionBinding::Callback GDExtensionBinding::terminate_callback = nullptr; +GDExtensionInitializationLevel GDExtensionBinding::minimum_initialization_level = GDEXTENSION_INITIALIZATION_CORE; + +GDExtensionBool GDExtensionBinding::init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) { + internal::gde_interface = p_interface; + internal::library = p_library; + internal::token = p_library; + + r_initialization->initialize = initialize_level; + r_initialization->deinitialize = deinitialize_level; + r_initialization->minimum_initialization_level = minimum_initialization_level; + + ERR_FAIL_COND_V_MSG(init_callback == nullptr, false, "Initialization callback must be defined."); + + Variant::init_bindings(); + + return true; +} + +void GDExtensionBinding::initialize_level(void *userdata, GDExtensionInitializationLevel p_level) { + ClassDB::current_level = p_level; + + if (init_callback) { + init_callback(static_cast(p_level)); + } + + ClassDB::initialize(p_level); +} + +void GDExtensionBinding::deinitialize_level(void *userdata, GDExtensionInitializationLevel p_level) { + ClassDB::current_level = p_level; + + if (terminate_callback) { + terminate_callback(static_cast(p_level)); + } + + ClassDB::deinitialize(p_level); +} + +void GDExtensionBinding::InitObject::register_initializer(Callback p_init) const { + GDExtensionBinding::init_callback = p_init; +} + +void GDExtensionBinding::InitObject::register_terminator(Callback p_terminate) const { + GDExtensionBinding::terminate_callback = p_terminate; +} + +void GDExtensionBinding::InitObject::set_minimum_library_initialization_level(ModuleInitializationLevel p_level) const { + GDExtensionBinding::minimum_initialization_level = static_cast(p_level); +} + +GDExtensionBool GDExtensionBinding::InitObject::init() const { + return GDExtensionBinding::init(gde_interface, library, initialization); +} + +} // namespace godot + +extern "C" { + +void GDE_EXPORT initialize_level(void *userdata, GDExtensionInitializationLevel p_level) { + godot::GDExtensionBinding::initialize_level(userdata, p_level); +} + +void GDE_EXPORT deinitialize_level(void *userdata, GDExtensionInitializationLevel p_level) { + godot::GDExtensionBinding::deinitialize_level(userdata, p_level); +} +} diff --git a/lib/godot-cpp/src/variant/aabb.cpp b/lib/godot-cpp/src/variant/aabb.cpp new file mode 100644 index 0000000..92e751b --- /dev/null +++ b/lib/godot-cpp/src/variant/aabb.cpp @@ -0,0 +1,421 @@ +/**************************************************************************/ +/* aabb.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +real_t AABB::get_volume() const { + return size.x * size.y * size.z; +} + +bool AABB::operator==(const AABB &p_rval) const { + return ((position == p_rval.position) && (size == p_rval.size)); +} + +bool AABB::operator!=(const AABB &p_rval) const { + return ((position != p_rval.position) || (size != p_rval.size)); +} + +void AABB::merge_with(const AABB &p_aabb) { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + Vector3 beg_1, beg_2; + Vector3 end_1, end_2; + Vector3 min, max; + + beg_1 = position; + beg_2 = p_aabb.position; + end_1 = size + beg_1; + end_2 = p_aabb.size + beg_2; + + min.x = (beg_1.x < beg_2.x) ? beg_1.x : beg_2.x; + min.y = (beg_1.y < beg_2.y) ? beg_1.y : beg_2.y; + min.z = (beg_1.z < beg_2.z) ? beg_1.z : beg_2.z; + + max.x = (end_1.x > end_2.x) ? end_1.x : end_2.x; + max.y = (end_1.y > end_2.y) ? end_1.y : end_2.y; + max.z = (end_1.z > end_2.z) ? end_1.z : end_2.z; + + position = min; + size = max - min; +} + +bool AABB::is_equal_approx(const AABB &p_aabb) const { + return position.is_equal_approx(p_aabb.position) && size.is_equal_approx(p_aabb.size); +} + +AABB AABB::intersection(const AABB &p_aabb) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0 || p_aabb.size.x < 0 || p_aabb.size.y < 0 || p_aabb.size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + Vector3 src_min = position; + Vector3 src_max = position + size; + Vector3 dst_min = p_aabb.position; + Vector3 dst_max = p_aabb.position + p_aabb.size; + + Vector3 min, max; + + if (src_min.x > dst_max.x || src_max.x < dst_min.x) { + return AABB(); + } else { + min.x = (src_min.x > dst_min.x) ? src_min.x : dst_min.x; + max.x = (src_max.x < dst_max.x) ? src_max.x : dst_max.x; + } + + if (src_min.y > dst_max.y || src_max.y < dst_min.y) { + return AABB(); + } else { + min.y = (src_min.y > dst_min.y) ? src_min.y : dst_min.y; + max.y = (src_max.y < dst_max.y) ? src_max.y : dst_max.y; + } + + if (src_min.z > dst_max.z || src_max.z < dst_min.z) { + return AABB(); + } else { + min.z = (src_min.z > dst_min.z) ? src_min.z : dst_min.z; + max.z = (src_max.z < dst_max.z) ? src_max.z : dst_max.z; + } + + return AABB(min, max - min); +} + +bool AABB::intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *r_clip, Vector3 *r_normal) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + Vector3 c1, c2; + Vector3 end = position + size; + real_t near = -1e20; + real_t far = 1e20; + int axis = 0; + + for (int i = 0; i < 3; i++) { + if (p_dir[i] == 0) { + if ((p_from[i] < position[i]) || (p_from[i] > end[i])) { + return false; + } + } else { // ray not parallel to planes in this direction + c1[i] = (position[i] - p_from[i]) / p_dir[i]; + c2[i] = (end[i] - p_from[i]) / p_dir[i]; + + if (c1[i] > c2[i]) { + SWAP(c1, c2); + } + if (c1[i] > near) { + near = c1[i]; + axis = i; + } + if (c2[i] < far) { + far = c2[i]; + } + if ((near > far) || (far < 0)) { + return false; + } + } + } + + if (r_clip) { + *r_clip = c1; + } + if (r_normal) { + *r_normal = Vector3(); + (*r_normal)[axis] = p_dir[axis] ? -1 : 1; + } + + return true; +} + +bool AABB::intersects_segment(const Vector3 &p_from, const Vector3 &p_to, Vector3 *r_clip, Vector3 *r_normal) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) { + ERR_PRINT("AABB size is negative, this is not supported. Use AABB.abs() to get an AABB with a positive size."); + } +#endif + real_t min = 0, max = 1; + int axis = 0; + real_t sign = 0; + + for (int i = 0; i < 3; i++) { + real_t seg_from = p_from[i]; + real_t seg_to = p_to[i]; + real_t box_begin = position[i]; + real_t box_end = box_begin + size[i]; + real_t cmin, cmax; + real_t csign; + + if (seg_from < seg_to) { + if (seg_from > box_end || seg_to < box_begin) { + return false; + } + real_t length = seg_to - seg_from; + cmin = (seg_from < box_begin) ? ((box_begin - seg_from) / length) : 0; + cmax = (seg_to > box_end) ? ((box_end - seg_from) / length) : 1; + csign = -1.0; + + } else { + if (seg_to > box_end || seg_from < box_begin) { + return false; + } + real_t length = seg_to - seg_from; + cmin = (seg_from > box_end) ? (box_end - seg_from) / length : 0; + cmax = (seg_to < box_begin) ? (box_begin - seg_from) / length : 1; + csign = 1.0; + } + + if (cmin > min) { + min = cmin; + axis = i; + sign = csign; + } + if (cmax < max) { + max = cmax; + } + if (max < min) { + return false; + } + } + + Vector3 rel = p_to - p_from; + + if (r_normal) { + Vector3 normal; + normal[axis] = sign; + *r_normal = normal; + } + + if (r_clip) { + *r_clip = p_from + rel * min; + } + + return true; +} + +bool AABB::intersects_plane(const Plane &p_plane) const { + Vector3 points[8] = { + Vector3(position.x, position.y, position.z), + Vector3(position.x, position.y, position.z + size.z), + Vector3(position.x, position.y + size.y, position.z), + Vector3(position.x, position.y + size.y, position.z + size.z), + Vector3(position.x + size.x, position.y, position.z), + Vector3(position.x + size.x, position.y, position.z + size.z), + Vector3(position.x + size.x, position.y + size.y, position.z), + Vector3(position.x + size.x, position.y + size.y, position.z + size.z), + }; + + bool over = false; + bool under = false; + + for (int i = 0; i < 8; i++) { + if (p_plane.distance_to(points[i]) > 0) { + over = true; + } else { + under = true; + } + } + + return under && over; +} + +Vector3 AABB::get_longest_axis() const { + Vector3 axis(1, 0, 0); + real_t max_size = size.x; + + if (size.y > max_size) { + axis = Vector3(0, 1, 0); + max_size = size.y; + } + + if (size.z > max_size) { + axis = Vector3(0, 0, 1); + } + + return axis; +} + +int AABB::get_longest_axis_index() const { + int axis = 0; + real_t max_size = size.x; + + if (size.y > max_size) { + axis = 1; + max_size = size.y; + } + + if (size.z > max_size) { + axis = 2; + } + + return axis; +} + +Vector3 AABB::get_shortest_axis() const { + Vector3 axis(1, 0, 0); + real_t min_size = size.x; + + if (size.y < min_size) { + axis = Vector3(0, 1, 0); + min_size = size.y; + } + + if (size.z < min_size) { + axis = Vector3(0, 0, 1); + } + + return axis; +} + +int AABB::get_shortest_axis_index() const { + int axis = 0; + real_t min_size = size.x; + + if (size.y < min_size) { + axis = 1; + min_size = size.y; + } + + if (size.z < min_size) { + axis = 2; + } + + return axis; +} + +AABB AABB::merge(const AABB &p_with) const { + AABB aabb = *this; + aabb.merge_with(p_with); + return aabb; +} + +AABB AABB::expand(const Vector3 &p_vector) const { + AABB aabb = *this; + aabb.expand_to(p_vector); + return aabb; +} + +AABB AABB::grow(real_t p_by) const { + AABB aabb = *this; + aabb.grow_by(p_by); + return aabb; +} + +void AABB::get_edge(int p_edge, Vector3 &r_from, Vector3 &r_to) const { + ERR_FAIL_INDEX(p_edge, 12); + switch (p_edge) { + case 0: { + r_from = Vector3(position.x + size.x, position.y, position.z); + r_to = Vector3(position.x, position.y, position.z); + } break; + case 1: { + r_from = Vector3(position.x + size.x, position.y, position.z + size.z); + r_to = Vector3(position.x + size.x, position.y, position.z); + } break; + case 2: { + r_from = Vector3(position.x, position.y, position.z + size.z); + r_to = Vector3(position.x + size.x, position.y, position.z + size.z); + + } break; + case 3: { + r_from = Vector3(position.x, position.y, position.z); + r_to = Vector3(position.x, position.y, position.z + size.z); + + } break; + case 4: { + r_from = Vector3(position.x, position.y + size.y, position.z); + r_to = Vector3(position.x + size.x, position.y + size.y, position.z); + } break; + case 5: { + r_from = Vector3(position.x + size.x, position.y + size.y, position.z); + r_to = Vector3(position.x + size.x, position.y + size.y, position.z + size.z); + } break; + case 6: { + r_from = Vector3(position.x + size.x, position.y + size.y, position.z + size.z); + r_to = Vector3(position.x, position.y + size.y, position.z + size.z); + + } break; + case 7: { + r_from = Vector3(position.x, position.y + size.y, position.z + size.z); + r_to = Vector3(position.x, position.y + size.y, position.z); + + } break; + case 8: { + r_from = Vector3(position.x, position.y, position.z + size.z); + r_to = Vector3(position.x, position.y + size.y, position.z + size.z); + + } break; + case 9: { + r_from = Vector3(position.x, position.y, position.z); + r_to = Vector3(position.x, position.y + size.y, position.z); + + } break; + case 10: { + r_from = Vector3(position.x + size.x, position.y, position.z); + r_to = Vector3(position.x + size.x, position.y + size.y, position.z); + + } break; + case 11: { + r_from = Vector3(position.x + size.x, position.y, position.z + size.z); + r_to = Vector3(position.x + size.x, position.y + size.y, position.z + size.z); + + } break; + } +} + +Variant AABB::intersects_segment_bind(const Vector3 &p_from, const Vector3 &p_to) const { + Vector3 inters; + if (intersects_segment(p_from, p_to, &inters)) { + return inters; + } + return Variant(); +} + +Variant AABB::intersects_ray_bind(const Vector3 &p_from, const Vector3 &p_dir) const { + Vector3 inters; + if (intersects_ray(p_from, p_dir, &inters)) { + return inters; + } + return Variant(); +} + +AABB::operator String() const { + return "[P: " + position.operator String() + ", S: " + size + "]"; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/basis.cpp b/lib/godot-cpp/src/variant/basis.cpp new file mode 100644 index 0000000..8f78d9f --- /dev/null +++ b/lib/godot-cpp/src/variant/basis.cpp @@ -0,0 +1,1054 @@ +/**************************************************************************/ +/* basis.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include +#include +#include + +#define cofac(row1, col1, row2, col2) \ + (rows[row1][col1] * rows[row2][col2] - rows[row1][col2] * rows[row2][col1]) + +namespace godot { + +void Basis::from_z(const Vector3 &p_z) { + if (Math::abs(p_z.z) > (real_t)Math_SQRT12) { + // choose p in y-z plane + real_t a = p_z[1] * p_z[1] + p_z[2] * p_z[2]; + real_t k = 1.0f / Math::sqrt(a); + rows[0] = Vector3(0, -p_z[2] * k, p_z[1] * k); + rows[1] = Vector3(a * k, -p_z[0] * rows[0][2], p_z[0] * rows[0][1]); + } else { + // choose p in x-y plane + real_t a = p_z.x * p_z.x + p_z.y * p_z.y; + real_t k = 1.0f / Math::sqrt(a); + rows[0] = Vector3(-p_z.y * k, p_z.x * k, 0); + rows[1] = Vector3(-p_z.z * rows[0].y, p_z.z * rows[0].x, a * k); + } + rows[2] = p_z; +} + +void Basis::invert() { + real_t co[3] = { + cofac(1, 1, 2, 2), cofac(1, 2, 2, 0), cofac(1, 0, 2, 1) + }; + real_t det = rows[0][0] * co[0] + + rows[0][1] * co[1] + + rows[0][2] * co[2]; +#ifdef MATH_CHECKS + ERR_FAIL_COND(det == 0); +#endif + real_t s = 1.0f / det; + + set(co[0] * s, cofac(0, 2, 2, 1) * s, cofac(0, 1, 1, 2) * s, + co[1] * s, cofac(0, 0, 2, 2) * s, cofac(0, 2, 1, 0) * s, + co[2] * s, cofac(0, 1, 2, 0) * s, cofac(0, 0, 1, 1) * s); +} + +void Basis::orthonormalize() { + // Gram-Schmidt Process + + Vector3 x = get_column(0); + Vector3 y = get_column(1); + Vector3 z = get_column(2); + + x.normalize(); + y = (y - x * (x.dot(y))); + y.normalize(); + z = (z - x * (x.dot(z)) - y * (y.dot(z))); + z.normalize(); + + set_column(0, x); + set_column(1, y); + set_column(2, z); +} + +Basis Basis::orthonormalized() const { + Basis c = *this; + c.orthonormalize(); + return c; +} + +void Basis::orthogonalize() { + Vector3 scl = get_scale(); + orthonormalize(); + scale_local(scl); +} + +Basis Basis::orthogonalized() const { + Basis c = *this; + c.orthogonalize(); + return c; +} + +bool Basis::is_orthogonal() const { + Basis identity; + Basis m = (*this) * transposed(); + + return m.is_equal_approx(identity); +} + +bool Basis::is_diagonal() const { + return ( + Math::is_zero_approx(rows[0][1]) && Math::is_zero_approx(rows[0][2]) && + Math::is_zero_approx(rows[1][0]) && Math::is_zero_approx(rows[1][2]) && + Math::is_zero_approx(rows[2][0]) && Math::is_zero_approx(rows[2][1])); +} + +bool Basis::is_rotation() const { + return Math::is_equal_approx(determinant(), 1, (real_t)UNIT_EPSILON) && is_orthogonal(); +} + +#ifdef MATH_CHECKS +// This method is only used once, in diagonalize. If it's desired elsewhere, feel free to remove the #ifdef. +bool Basis::is_symmetric() const { + if (!Math::is_equal_approx(rows[0][1], rows[1][0])) { + return false; + } + if (!Math::is_equal_approx(rows[0][2], rows[2][0])) { + return false; + } + if (!Math::is_equal_approx(rows[1][2], rows[2][1])) { + return false; + } + + return true; +} +#endif + +Basis Basis::diagonalize() { +// NOTE: only implemented for symmetric matrices +// with the Jacobi iterative method +#ifdef MATH_CHECKS + ERR_FAIL_COND_V(!is_symmetric(), Basis()); +#endif + const int ite_max = 1024; + + real_t off_matrix_norm_2 = rows[0][1] * rows[0][1] + rows[0][2] * rows[0][2] + rows[1][2] * rows[1][2]; + + int ite = 0; + Basis acc_rot; + while (off_matrix_norm_2 > (real_t)CMP_EPSILON2 && ite++ < ite_max) { + real_t el01_2 = rows[0][1] * rows[0][1]; + real_t el02_2 = rows[0][2] * rows[0][2]; + real_t el12_2 = rows[1][2] * rows[1][2]; + // Find the pivot element + int i, j; + if (el01_2 > el02_2) { + if (el12_2 > el01_2) { + i = 1; + j = 2; + } else { + i = 0; + j = 1; + } + } else { + if (el12_2 > el02_2) { + i = 1; + j = 2; + } else { + i = 0; + j = 2; + } + } + + // Compute the rotation angle + real_t angle; + if (Math::is_equal_approx(rows[j][j], rows[i][i])) { + angle = Math_PI / 4; + } else { + angle = 0.5f * Math::atan(2 * rows[i][j] / (rows[j][j] - rows[i][i])); + } + + // Compute the rotation matrix + Basis rot; + rot.rows[i][i] = rot.rows[j][j] = Math::cos(angle); + rot.rows[i][j] = -(rot.rows[j][i] = Math::sin(angle)); + + // Update the off matrix norm + off_matrix_norm_2 -= rows[i][j] * rows[i][j]; + + // Apply the rotation + *this = rot * *this * rot.transposed(); + acc_rot = rot * acc_rot; + } + + return acc_rot; +} + +Basis Basis::inverse() const { + Basis inv = *this; + inv.invert(); + return inv; +} + +void Basis::transpose() { + SWAP(rows[0][1], rows[1][0]); + SWAP(rows[0][2], rows[2][0]); + SWAP(rows[1][2], rows[2][1]); +} + +Basis Basis::transposed() const { + Basis tr = *this; + tr.transpose(); + return tr; +} + +Basis Basis::from_scale(const Vector3 &p_scale) { + return Basis(p_scale.x, 0, 0, 0, p_scale.y, 0, 0, 0, p_scale.z); +} + +// Multiplies the matrix from left by the scaling matrix: M -> S.M +// See the comment for Basis::rotated for further explanation. +void Basis::scale(const Vector3 &p_scale) { + rows[0][0] *= p_scale.x; + rows[0][1] *= p_scale.x; + rows[0][2] *= p_scale.x; + rows[1][0] *= p_scale.y; + rows[1][1] *= p_scale.y; + rows[1][2] *= p_scale.y; + rows[2][0] *= p_scale.z; + rows[2][1] *= p_scale.z; + rows[2][2] *= p_scale.z; +} + +Basis Basis::scaled(const Vector3 &p_scale) const { + Basis m = *this; + m.scale(p_scale); + return m; +} + +void Basis::scale_local(const Vector3 &p_scale) { + // performs a scaling in object-local coordinate system: + // M -> (M.S.Minv).M = M.S. + *this = scaled_local(p_scale); +} + +void Basis::scale_orthogonal(const Vector3 &p_scale) { + *this = scaled_orthogonal(p_scale); +} + +Basis Basis::scaled_orthogonal(const Vector3 &p_scale) const { + Basis m = *this; + Vector3 s = Vector3(-1, -1, -1) + p_scale; + Vector3 dots; + Basis b; + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + dots[j] += s[i] * Math::abs(m.get_column(i).normalized().dot(b.get_column(j))); + } + } + m.scale_local(Vector3(1, 1, 1) + dots); + return m; +} + +float Basis::get_uniform_scale() const { + return (rows[0].length() + rows[1].length() + rows[2].length()) / 3.0f; +} + +void Basis::make_scale_uniform() { + float l = (rows[0].length() + rows[1].length() + rows[2].length()) / 3.0f; + for (int i = 0; i < 3; i++) { + rows[i].normalize(); + rows[i] *= l; + } +} + +Basis Basis::scaled_local(const Vector3 &p_scale) const { + return (*this) * Basis::from_scale(p_scale); +} + +Vector3 Basis::get_scale_abs() const { + return Vector3( + Vector3(rows[0][0], rows[1][0], rows[2][0]).length(), + Vector3(rows[0][1], rows[1][1], rows[2][1]).length(), + Vector3(rows[0][2], rows[1][2], rows[2][2]).length()); +} + +Vector3 Basis::get_scale_local() const { + real_t det_sign = SIGN(determinant()); + return det_sign * Vector3(rows[0].length(), rows[1].length(), rows[2].length()); +} + +// get_scale works with get_rotation, use get_scale_abs if you need to enforce positive signature. +Vector3 Basis::get_scale() const { + // FIXME: We are assuming M = R.S (R is rotation and S is scaling), and use polar decomposition to extract R and S. + // A polar decomposition is M = O.P, where O is an orthogonal matrix (meaning rotation and reflection) and + // P is a positive semi-definite matrix (meaning it contains absolute values of scaling along its diagonal). + // + // Despite being different from what we want to achieve, we can nevertheless make use of polar decomposition + // here as follows. We can split O into a rotation and a reflection as O = R.Q, and obtain M = R.S where + // we defined S = Q.P. Now, R is a proper rotation matrix and S is a (signed) scaling matrix, + // which can involve negative scalings. However, there is a catch: unlike the polar decomposition of M = O.P, + // the decomposition of O into a rotation and reflection matrix as O = R.Q is not unique. + // Therefore, we are going to do this decomposition by sticking to a particular convention. + // This may lead to confusion for some users though. + // + // The convention we use here is to absorb the sign flip into the scaling matrix. + // The same convention is also used in other similar functions such as get_rotation_axis_angle, get_rotation, ... + // + // A proper way to get rid of this issue would be to store the scaling values (or at least their signs) + // as a part of Basis. However, if we go that path, we need to disable direct (write) access to the + // matrix elements. + // + // The rotation part of this decomposition is returned by get_rotation* functions. + real_t det_sign = SIGN(determinant()); + return det_sign * get_scale_abs(); +} + +// Decomposes a Basis into a rotation-reflection matrix (an element of the group O(3)) and a positive scaling matrix as B = O.S. +// Returns the rotation-reflection matrix via reference argument, and scaling information is returned as a Vector3. +// This (internal) function is too specific and named too ugly to expose to users, and probably there's no need to do so. +Vector3 Basis::rotref_posscale_decomposition(Basis &rotref) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V(determinant() == 0, Vector3()); + + Basis m = transposed() * (*this); + ERR_FAIL_COND_V(!m.is_diagonal(), Vector3()); +#endif + Vector3 scale = get_scale(); + Basis inv_scale = Basis().scaled(scale.inverse()); // this will also absorb the sign of scale + rotref = (*this) * inv_scale; + +#ifdef MATH_CHECKS + ERR_FAIL_COND_V(!rotref.is_orthogonal(), Vector3()); +#endif + return scale.abs(); +} + +// Multiplies the matrix from left by the rotation matrix: M -> R.M +// Note that this does *not* rotate the matrix itself. +// +// The main use of Basis is as Transform.basis, which is used by the transformation matrix +// of 3D object. Rotate here refers to rotation of the object (which is R * (*this)), +// not the matrix itself (which is R * (*this) * R.transposed()). +Basis Basis::rotated(const Vector3 &p_axis, real_t p_angle) const { + return Basis(p_axis, p_angle) * (*this); +} + +void Basis::rotate(const Vector3 &p_axis, real_t p_angle) { + *this = rotated(p_axis, p_angle); +} + +void Basis::rotate_local(const Vector3 &p_axis, real_t p_angle) { + // performs a rotation in object-local coordinate system: + // M -> (M.R.Minv).M = M.R. + *this = rotated_local(p_axis, p_angle); +} + +Basis Basis::rotated_local(const Vector3 &p_axis, real_t p_angle) const { + return (*this) * Basis(p_axis, p_angle); +} + +Basis Basis::rotated(const Vector3 &p_euler, EulerOrder p_order) const { + return Basis::from_euler(p_euler, p_order) * (*this); +} + +void Basis::rotate(const Vector3 &p_euler, EulerOrder p_order) { + *this = rotated(p_euler, p_order); +} + +Basis Basis::rotated(const Quaternion &p_quaternion) const { + return Basis(p_quaternion) * (*this); +} + +void Basis::rotate(const Quaternion &p_quaternion) { + *this = rotated(p_quaternion); +} + +Vector3 Basis::get_euler_normalized(EulerOrder p_order) const { + // Assumes that the matrix can be decomposed into a proper rotation and scaling matrix as M = R.S, + // and returns the Euler angles corresponding to the rotation part, complementing get_scale(). + // See the comment in get_scale() for further information. + Basis m = orthonormalized(); + real_t det = m.determinant(); + if (det < 0) { + // Ensure that the determinant is 1, such that result is a proper rotation matrix which can be represented by Euler angles. + m.scale(Vector3(-1, -1, -1)); + } + + return m.get_euler(p_order); +} + +Quaternion Basis::get_rotation_quaternion() const { + // Assumes that the matrix can be decomposed into a proper rotation and scaling matrix as M = R.S, + // and returns the Euler angles corresponding to the rotation part, complementing get_scale(). + // See the comment in get_scale() for further information. + Basis m = orthonormalized(); + real_t det = m.determinant(); + if (det < 0) { + // Ensure that the determinant is 1, such that result is a proper rotation matrix which can be represented by Euler angles. + m.scale(Vector3(-1, -1, -1)); + } + + return m.get_quaternion(); +} + +void Basis::rotate_to_align(Vector3 p_start_direction, Vector3 p_end_direction) { + // Takes two vectors and rotates the basis from the first vector to the second vector. + // Adopted from: https://gist.github.com/kevinmoran/b45980723e53edeb8a5a43c49f134724 + const Vector3 axis = p_start_direction.cross(p_end_direction).normalized(); + if (axis.length_squared() != 0) { + real_t dot = p_start_direction.dot(p_end_direction); + dot = CLAMP(dot, -1.0f, 1.0f); + const real_t angle_rads = Math::acos(dot); + set_axis_angle(axis, angle_rads); + } +} + +void Basis::get_rotation_axis_angle(Vector3 &p_axis, real_t &p_angle) const { + // Assumes that the matrix can be decomposed into a proper rotation and scaling matrix as M = R.S, + // and returns the Euler angles corresponding to the rotation part, complementing get_scale(). + // See the comment in get_scale() for further information. + Basis m = orthonormalized(); + real_t det = m.determinant(); + if (det < 0) { + // Ensure that the determinant is 1, such that result is a proper rotation matrix which can be represented by Euler angles. + m.scale(Vector3(-1, -1, -1)); + } + + m.get_axis_angle(p_axis, p_angle); +} + +void Basis::get_rotation_axis_angle_local(Vector3 &p_axis, real_t &p_angle) const { + // Assumes that the matrix can be decomposed into a proper rotation and scaling matrix as M = R.S, + // and returns the Euler angles corresponding to the rotation part, complementing get_scale(). + // See the comment in get_scale() for further information. + Basis m = transposed(); + m.orthonormalize(); + real_t det = m.determinant(); + if (det < 0) { + // Ensure that the determinant is 1, such that result is a proper rotation matrix which can be represented by Euler angles. + m.scale(Vector3(-1, -1, -1)); + } + + m.get_axis_angle(p_axis, p_angle); + p_angle = -p_angle; +} + +Vector3 Basis::get_euler(EulerOrder p_order) const { + switch (p_order) { + case EULER_ORDER_XYZ: { + // Euler angles in XYZ convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cy*cz -cy*sz sy + // cz*sx*sy+cx*sz cx*cz-sx*sy*sz -cy*sx + // -cx*cz*sy+sx*sz cz*sx+cx*sy*sz cx*cy + + Vector3 euler; + real_t sy = rows[0][2]; + if (sy < (1.0f - (real_t)CMP_EPSILON)) { + if (sy > -(1.0f - (real_t)CMP_EPSILON)) { + // is this a pure Y rotation? + if (rows[1][0] == 0 && rows[0][1] == 0 && rows[1][2] == 0 && rows[2][1] == 0 && rows[1][1] == 1) { + // return the simplest form (human friendlier in editor and scripts) + euler.x = 0; + euler.y = atan2(rows[0][2], rows[0][0]); + euler.z = 0; + } else { + euler.x = Math::atan2(-rows[1][2], rows[2][2]); + euler.y = Math::asin(sy); + euler.z = Math::atan2(-rows[0][1], rows[0][0]); + } + } else { + euler.x = Math::atan2(rows[2][1], rows[1][1]); + euler.y = -Math_PI / 2.0f; + euler.z = 0.0f; + } + } else { + euler.x = Math::atan2(rows[2][1], rows[1][1]); + euler.y = Math_PI / 2.0f; + euler.z = 0.0f; + } + return euler; + } + case EULER_ORDER_XZY: { + // Euler angles in XZY convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cz*cy -sz cz*sy + // sx*sy+cx*cy*sz cx*cz cx*sz*sy-cy*sx + // cy*sx*sz cz*sx cx*cy+sx*sz*sy + + Vector3 euler; + real_t sz = rows[0][1]; + if (sz < (1.0f - (real_t)CMP_EPSILON)) { + if (sz > -(1.0f - (real_t)CMP_EPSILON)) { + euler.x = Math::atan2(rows[2][1], rows[1][1]); + euler.y = Math::atan2(rows[0][2], rows[0][0]); + euler.z = Math::asin(-sz); + } else { + // It's -1 + euler.x = -Math::atan2(rows[1][2], rows[2][2]); + euler.y = 0.0f; + euler.z = Math_PI / 2.0f; + } + } else { + // It's 1 + euler.x = -Math::atan2(rows[1][2], rows[2][2]); + euler.y = 0.0f; + euler.z = -Math_PI / 2.0f; + } + return euler; + } + case EULER_ORDER_YXZ: { + // Euler angles in YXZ convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cy*cz+sy*sx*sz cz*sy*sx-cy*sz cx*sy + // cx*sz cx*cz -sx + // cy*sx*sz-cz*sy cy*cz*sx+sy*sz cy*cx + + Vector3 euler; + + real_t m12 = rows[1][2]; + + if (m12 < (1 - (real_t)CMP_EPSILON)) { + if (m12 > -(1 - (real_t)CMP_EPSILON)) { + // is this a pure X rotation? + if (rows[1][0] == 0 && rows[0][1] == 0 && rows[0][2] == 0 && rows[2][0] == 0 && rows[0][0] == 1) { + // return the simplest form (human friendlier in editor and scripts) + euler.x = atan2(-m12, rows[1][1]); + euler.y = 0; + euler.z = 0; + } else { + euler.x = asin(-m12); + euler.y = atan2(rows[0][2], rows[2][2]); + euler.z = atan2(rows[1][0], rows[1][1]); + } + } else { // m12 == -1 + euler.x = Math_PI * 0.5f; + euler.y = atan2(rows[0][1], rows[0][0]); + euler.z = 0; + } + } else { // m12 == 1 + euler.x = -Math_PI * 0.5f; + euler.y = -atan2(rows[0][1], rows[0][0]); + euler.z = 0; + } + + return euler; + } + case EULER_ORDER_YZX: { + // Euler angles in YZX convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cy*cz sy*sx-cy*cx*sz cx*sy+cy*sz*sx + // sz cz*cx -cz*sx + // -cz*sy cy*sx+cx*sy*sz cy*cx-sy*sz*sx + + Vector3 euler; + real_t sz = rows[1][0]; + if (sz < (1.0f - (real_t)CMP_EPSILON)) { + if (sz > -(1.0f - (real_t)CMP_EPSILON)) { + euler.x = Math::atan2(-rows[1][2], rows[1][1]); + euler.y = Math::atan2(-rows[2][0], rows[0][0]); + euler.z = Math::asin(sz); + } else { + // It's -1 + euler.x = Math::atan2(rows[2][1], rows[2][2]); + euler.y = 0.0f; + euler.z = -Math_PI / 2.0f; + } + } else { + // It's 1 + euler.x = Math::atan2(rows[2][1], rows[2][2]); + euler.y = 0.0f; + euler.z = Math_PI / 2.0f; + } + return euler; + } + case EULER_ORDER_ZXY: { + // Euler angles in ZXY convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cz*cy-sz*sx*sy -cx*sz cz*sy+cy*sz*sx + // cy*sz+cz*sx*sy cz*cx sz*sy-cz*cy*sx + // -cx*sy sx cx*cy + Vector3 euler; + real_t sx = rows[2][1]; + if (sx < (1.0f - (real_t)CMP_EPSILON)) { + if (sx > -(1.0f - (real_t)CMP_EPSILON)) { + euler.x = Math::asin(sx); + euler.y = Math::atan2(-rows[2][0], rows[2][2]); + euler.z = Math::atan2(-rows[0][1], rows[1][1]); + } else { + // It's -1 + euler.x = -Math_PI / 2.0f; + euler.y = Math::atan2(rows[0][2], rows[0][0]); + euler.z = 0; + } + } else { + // It's 1 + euler.x = Math_PI / 2.0f; + euler.y = Math::atan2(rows[0][2], rows[0][0]); + euler.z = 0; + } + return euler; + } + case EULER_ORDER_ZYX: { + // Euler angles in ZYX convention. + // See https://en.wikipedia.org/wiki/Euler_angles#Rotation_matrix + // + // rot = cz*cy cz*sy*sx-cx*sz sz*sx+cz*cx*cy + // cy*sz cz*cx+sz*sy*sx cx*sz*sy-cz*sx + // -sy cy*sx cy*cx + Vector3 euler; + real_t sy = rows[2][0]; + if (sy < (1.0f - (real_t)CMP_EPSILON)) { + if (sy > -(1.0f - (real_t)CMP_EPSILON)) { + euler.x = Math::atan2(rows[2][1], rows[2][2]); + euler.y = Math::asin(-sy); + euler.z = Math::atan2(rows[1][0], rows[0][0]); + } else { + // It's -1 + euler.x = 0; + euler.y = Math_PI / 2.0f; + euler.z = -Math::atan2(rows[0][1], rows[1][1]); + } + } else { + // It's 1 + euler.x = 0; + euler.y = -Math_PI / 2.0f; + euler.z = -Math::atan2(rows[0][1], rows[1][1]); + } + return euler; + } + default: { + ERR_FAIL_V_MSG(Vector3(), "Invalid parameter for get_euler(order)"); + } + } + return Vector3(); +} + +void Basis::set_euler(const Vector3 &p_euler, EulerOrder p_order) { + real_t c, s; + + c = Math::cos(p_euler.x); + s = Math::sin(p_euler.x); + Basis xmat(1, 0, 0, 0, c, -s, 0, s, c); + + c = Math::cos(p_euler.y); + s = Math::sin(p_euler.y); + Basis ymat(c, 0, s, 0, 1, 0, -s, 0, c); + + c = Math::cos(p_euler.z); + s = Math::sin(p_euler.z); + Basis zmat(c, -s, 0, s, c, 0, 0, 0, 1); + + switch (p_order) { + case EULER_ORDER_XYZ: { + *this = xmat * (ymat * zmat); + } break; + case EULER_ORDER_XZY: { + *this = xmat * zmat * ymat; + } break; + case EULER_ORDER_YXZ: { + *this = ymat * xmat * zmat; + } break; + case EULER_ORDER_YZX: { + *this = ymat * zmat * xmat; + } break; + case EULER_ORDER_ZXY: { + *this = zmat * xmat * ymat; + } break; + case EULER_ORDER_ZYX: { + *this = zmat * ymat * xmat; + } break; + default: { + ERR_FAIL_MSG("Invalid order parameter for set_euler(vec3,order)"); + } + } +} + +bool Basis::is_equal_approx(const Basis &p_basis) const { + return rows[0].is_equal_approx(p_basis.rows[0]) && rows[1].is_equal_approx(p_basis.rows[1]) && rows[2].is_equal_approx(p_basis.rows[2]); +} + +bool Basis::operator==(const Basis &p_matrix) const { + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + if (rows[i][j] != p_matrix.rows[i][j]) { + return false; + } + } + } + + return true; +} + +bool Basis::operator!=(const Basis &p_matrix) const { + return (!(*this == p_matrix)); +} + +Basis::operator String() const { + return "[X: " + get_column(0).operator String() + + ", Y: " + get_column(1).operator String() + + ", Z: " + get_column(2).operator String() + "]"; +} + +Quaternion Basis::get_quaternion() const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_rotation(), Quaternion(), "Basis must be normalized in order to be casted to a Quaternion. Use get_rotation_quaternion() or call orthonormalized() if the Basis contains linearly independent vectors."); +#endif + /* Allow getting a quaternion from an unnormalized transform */ + Basis m = *this; + real_t trace = m.rows[0][0] + m.rows[1][1] + m.rows[2][2]; + real_t temp[4]; + + if (trace > 0.0f) { + real_t s = Math::sqrt(trace + 1.0f); + temp[3] = (s * 0.5f); + s = 0.5f / s; + + temp[0] = ((m.rows[2][1] - m.rows[1][2]) * s); + temp[1] = ((m.rows[0][2] - m.rows[2][0]) * s); + temp[2] = ((m.rows[1][0] - m.rows[0][1]) * s); + } else { + int i = m.rows[0][0] < m.rows[1][1] + ? (m.rows[1][1] < m.rows[2][2] ? 2 : 1) + : (m.rows[0][0] < m.rows[2][2] ? 2 : 0); + int j = (i + 1) % 3; + int k = (i + 2) % 3; + + real_t s = Math::sqrt(m.rows[i][i] - m.rows[j][j] - m.rows[k][k] + 1.0f); + temp[i] = s * 0.5f; + s = 0.5f / s; + + temp[3] = (m.rows[k][j] - m.rows[j][k]) * s; + temp[j] = (m.rows[j][i] + m.rows[i][j]) * s; + temp[k] = (m.rows[k][i] + m.rows[i][k]) * s; + } + + return Quaternion(temp[0], temp[1], temp[2], temp[3]); +} + +void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const { + /* checking this is a bad idea, because obtaining from scaled transform is a valid use case +#ifdef MATH_CHECKS + ERR_FAIL_COND(!is_rotation()); +#endif + */ + + // https://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm + real_t x, y, z; // Variables for result. + if (Math::is_zero_approx(rows[0][1] - rows[1][0]) && Math::is_zero_approx(rows[0][2] - rows[2][0]) && Math::is_zero_approx(rows[1][2] - rows[2][1])) { + // Singularity found. + // First check for identity matrix which must have +1 for all terms in leading diagonal and zero in other terms. + if (is_diagonal() && (Math::abs(rows[0][0] + rows[1][1] + rows[2][2] - 3) < 3 * CMP_EPSILON)) { + // This singularity is identity matrix so angle = 0. + r_axis = Vector3(0, 1, 0); + r_angle = 0; + return; + } + // Otherwise this singularity is angle = 180. + real_t xx = (rows[0][0] + 1) / 2; + real_t yy = (rows[1][1] + 1) / 2; + real_t zz = (rows[2][2] + 1) / 2; + real_t xy = (rows[0][1] + rows[1][0]) / 4; + real_t xz = (rows[0][2] + rows[2][0]) / 4; + real_t yz = (rows[1][2] + rows[2][1]) / 4; + + if ((xx > yy) && (xx > zz)) { // rows[0][0] is the largest diagonal term. + if (xx < CMP_EPSILON) { + x = 0; + y = Math_SQRT12; + z = Math_SQRT12; + } else { + x = Math::sqrt(xx); + y = xy / x; + z = xz / x; + } + } else if (yy > zz) { // rows[1][1] is the largest diagonal term. + if (yy < CMP_EPSILON) { + x = Math_SQRT12; + y = 0; + z = Math_SQRT12; + } else { + y = Math::sqrt(yy); + x = xy / y; + z = yz / y; + } + } else { // rows[2][2] is the largest diagonal term so base result on this. + if (zz < CMP_EPSILON) { + x = Math_SQRT12; + y = Math_SQRT12; + z = 0; + } else { + z = Math::sqrt(zz); + x = xz / z; + y = yz / z; + } + } + r_axis = Vector3(x, y, z); + r_angle = Math_PI; + return; + } + // As we have reached here there are no singularities so we can handle normally. + double s = Math::sqrt((rows[2][1] - rows[1][2]) * (rows[2][1] - rows[1][2]) + (rows[0][2] - rows[2][0]) * (rows[0][2] - rows[2][0]) + (rows[1][0] - rows[0][1]) * (rows[1][0] - rows[0][1])); // Used to normalise. + + if (Math::abs(s) < CMP_EPSILON) { + // Prevent divide by zero, should not happen if matrix is orthogonal and should be caught by singularity test above. + s = 1; + } + + x = (rows[2][1] - rows[1][2]) / s; + y = (rows[0][2] - rows[2][0]) / s; + z = (rows[1][0] - rows[0][1]) / s; + + r_axis = Vector3(x, y, z); + // CLAMP to avoid NaN if the value passed to acos is not in [0,1]. + r_angle = Math::acos(CLAMP((rows[0][0] + rows[1][1] + rows[2][2] - 1) / 2, (real_t)0.0, (real_t)1.0)); +} + +void Basis::set_quaternion(const Quaternion &p_quaternion) { + real_t d = p_quaternion.length_squared(); + real_t s = 2.0f / d; + real_t xs = p_quaternion.x * s, ys = p_quaternion.y * s, zs = p_quaternion.z * s; + real_t wx = p_quaternion.w * xs, wy = p_quaternion.w * ys, wz = p_quaternion.w * zs; + real_t xx = p_quaternion.x * xs, xy = p_quaternion.x * ys, xz = p_quaternion.x * zs; + real_t yy = p_quaternion.y * ys, yz = p_quaternion.y * zs, zz = p_quaternion.z * zs; + set(1.0f - (yy + zz), xy - wz, xz + wy, + xy + wz, 1.0f - (xx + zz), yz - wx, + xz - wy, yz + wx, 1.0f - (xx + yy)); +} + +void Basis::set_axis_angle(const Vector3 &p_axis, real_t p_angle) { +// Rotation matrix from axis and angle, see https://en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_angle +#ifdef MATH_CHECKS + ERR_FAIL_COND_MSG(!p_axis.is_normalized(), "The axis Vector3 must be normalized."); +#endif + Vector3 axis_sq(p_axis.x * p_axis.x, p_axis.y * p_axis.y, p_axis.z * p_axis.z); + real_t cosine = Math::cos(p_angle); + rows[0][0] = axis_sq.x + cosine * (1.0f - axis_sq.x); + rows[1][1] = axis_sq.y + cosine * (1.0f - axis_sq.y); + rows[2][2] = axis_sq.z + cosine * (1.0f - axis_sq.z); + + real_t sine = Math::sin(p_angle); + real_t t = 1 - cosine; + + real_t xyzt = p_axis.x * p_axis.y * t; + real_t zyxs = p_axis.z * sine; + rows[0][1] = xyzt - zyxs; + rows[1][0] = xyzt + zyxs; + + xyzt = p_axis.x * p_axis.z * t; + zyxs = p_axis.y * sine; + rows[0][2] = xyzt + zyxs; + rows[2][0] = xyzt - zyxs; + + xyzt = p_axis.y * p_axis.z * t; + zyxs = p_axis.x * sine; + rows[1][2] = xyzt - zyxs; + rows[2][1] = xyzt + zyxs; +} + +void Basis::set_axis_angle_scale(const Vector3 &p_axis, real_t p_angle, const Vector3 &p_scale) { + _set_diagonal(p_scale); + rotate(p_axis, p_angle); +} + +void Basis::set_euler_scale(const Vector3 &p_euler, const Vector3 &p_scale, EulerOrder p_order) { + _set_diagonal(p_scale); + rotate(p_euler, p_order); +} + +void Basis::set_quaternion_scale(const Quaternion &p_quaternion, const Vector3 &p_scale) { + _set_diagonal(p_scale); + rotate(p_quaternion); +} + +// This also sets the non-diagonal elements to 0, which is misleading from the +// name, so we want this method to be private. Use `from_scale` externally. +void Basis::_set_diagonal(const Vector3 &p_diag) { + rows[0][0] = p_diag.x; + rows[0][1] = 0; + rows[0][2] = 0; + + rows[1][0] = 0; + rows[1][1] = p_diag.y; + rows[1][2] = 0; + + rows[2][0] = 0; + rows[2][1] = 0; + rows[2][2] = p_diag.z; +} + +Basis Basis::lerp(const Basis &p_to, const real_t &p_weight) const { + Basis b; + b.rows[0] = rows[0].lerp(p_to.rows[0], p_weight); + b.rows[1] = rows[1].lerp(p_to.rows[1], p_weight); + b.rows[2] = rows[2].lerp(p_to.rows[2], p_weight); + + return b; +} + +Basis Basis::slerp(const Basis &p_to, const real_t &p_weight) const { + //consider scale + Quaternion from(*this); + Quaternion to(p_to); + + Basis b(from.slerp(to, p_weight)); + b.rows[0] *= Math::lerp(rows[0].length(), p_to.rows[0].length(), p_weight); + b.rows[1] *= Math::lerp(rows[1].length(), p_to.rows[1].length(), p_weight); + b.rows[2] *= Math::lerp(rows[2].length(), p_to.rows[2].length(), p_weight); + + return b; +} + +void Basis::rotate_sh(real_t *p_values) { + // code by John Hable + // http://filmicworlds.com/blog/simple-and-fast-spherical-harmonic-rotation/ + // this code is Public Domain + + const static real_t s_c3 = 0.94617469575; // (3*sqrt(5))/(4*sqrt(pi)) + const static real_t s_c4 = -0.31539156525; // (-sqrt(5))/(4*sqrt(pi)) + const static real_t s_c5 = 0.54627421529; // (sqrt(15))/(4*sqrt(pi)) + + const static real_t s_c_scale = 1.0 / 0.91529123286551084; + const static real_t s_c_scale_inv = 0.91529123286551084; + + const static real_t s_rc2 = 1.5853309190550713 * s_c_scale; + const static real_t s_c4_div_c3 = s_c4 / s_c3; + const static real_t s_c4_div_c3_x2 = (s_c4 / s_c3) * 2.0; + + const static real_t s_scale_dst2 = s_c3 * s_c_scale_inv; + const static real_t s_scale_dst4 = s_c5 * s_c_scale_inv; + + const real_t src[9] = { p_values[0], p_values[1], p_values[2], p_values[3], p_values[4], p_values[5], p_values[6], p_values[7], p_values[8] }; + + real_t m00 = rows[0][0]; + real_t m01 = rows[0][1]; + real_t m02 = rows[0][2]; + real_t m10 = rows[1][0]; + real_t m11 = rows[1][1]; + real_t m12 = rows[1][2]; + real_t m20 = rows[2][0]; + real_t m21 = rows[2][1]; + real_t m22 = rows[2][2]; + + p_values[0] = src[0]; + p_values[1] = m11 * src[1] - m12 * src[2] + m10 * src[3]; + p_values[2] = -m21 * src[1] + m22 * src[2] - m20 * src[3]; + p_values[3] = m01 * src[1] - m02 * src[2] + m00 * src[3]; + + real_t sh0 = src[7] + src[8] + src[8] - src[5]; + real_t sh1 = src[4] + s_rc2 * src[6] + src[7] + src[8]; + real_t sh2 = src[4]; + real_t sh3 = -src[7]; + real_t sh4 = -src[5]; + + // Rotations. R0 and R1 just use the raw matrix columns + real_t r2x = m00 + m01; + real_t r2y = m10 + m11; + real_t r2z = m20 + m21; + + real_t r3x = m00 + m02; + real_t r3y = m10 + m12; + real_t r3z = m20 + m22; + + real_t r4x = m01 + m02; + real_t r4y = m11 + m12; + real_t r4z = m21 + m22; + + // dense matrix multiplication one column at a time + + // column 0 + real_t sh0_x = sh0 * m00; + real_t sh0_y = sh0 * m10; + real_t d0 = sh0_x * m10; + real_t d1 = sh0_y * m20; + real_t d2 = sh0 * (m20 * m20 + s_c4_div_c3); + real_t d3 = sh0_x * m20; + real_t d4 = sh0_x * m00 - sh0_y * m10; + + // column 1 + real_t sh1_x = sh1 * m02; + real_t sh1_y = sh1 * m12; + d0 += sh1_x * m12; + d1 += sh1_y * m22; + d2 += sh1 * (m22 * m22 + s_c4_div_c3); + d3 += sh1_x * m22; + d4 += sh1_x * m02 - sh1_y * m12; + + // column 2 + real_t sh2_x = sh2 * r2x; + real_t sh2_y = sh2 * r2y; + d0 += sh2_x * r2y; + d1 += sh2_y * r2z; + d2 += sh2 * (r2z * r2z + s_c4_div_c3_x2); + d3 += sh2_x * r2z; + d4 += sh2_x * r2x - sh2_y * r2y; + + // column 3 + real_t sh3_x = sh3 * r3x; + real_t sh3_y = sh3 * r3y; + d0 += sh3_x * r3y; + d1 += sh3_y * r3z; + d2 += sh3 * (r3z * r3z + s_c4_div_c3_x2); + d3 += sh3_x * r3z; + d4 += sh3_x * r3x - sh3_y * r3y; + + // column 4 + real_t sh4_x = sh4 * r4x; + real_t sh4_y = sh4 * r4y; + d0 += sh4_x * r4y; + d1 += sh4_y * r4z; + d2 += sh4 * (r4z * r4z + s_c4_div_c3_x2); + d3 += sh4_x * r4z; + d4 += sh4_x * r4x - sh4_y * r4y; + + // extra multipliers + p_values[4] = d0; + p_values[5] = -d1; + p_values[6] = d2 * s_scale_dst2; + p_values[7] = -d3; + p_values[8] = d4 * s_scale_dst4; +} + +Basis Basis::looking_at(const Vector3 &p_target, const Vector3 &p_up) { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(p_target.is_zero_approx(), Basis(), "The target vector can't be zero."); + ERR_FAIL_COND_V_MSG(p_up.is_zero_approx(), Basis(), "The up vector can't be zero."); +#endif + Vector3 v_z = -p_target.normalized(); + Vector3 v_x = p_up.cross(v_z); +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(v_x.is_zero_approx(), Basis(), "The target vector and up vector can't be parallel to each other."); +#endif + v_x.normalize(); + Vector3 v_y = v_z.cross(v_x); + + Basis basis; + basis.set_columns(v_x, v_y, v_z); + return basis; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/char_string.cpp b/lib/godot-cpp/src/variant/char_string.cpp new file mode 100644 index 0000000..bd0bc3f --- /dev/null +++ b/lib/godot-cpp/src/variant/char_string.cpp @@ -0,0 +1,472 @@ +/**************************************************************************/ +/* char_string.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include +#include +#include + +#include + +#include + +namespace godot { + +int CharString::length() const { + return _length; +} + +const char *CharString::get_data() const { + return _data; +} + +CharString::CharString(CharString &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +void CharString::operator=(CharString &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +CharString::CharString(const char *str, int length) : + _data(str), _length(length) {} + +CharString::~CharString() { + if (_data != nullptr) { + memdelete_arr(_data); + } +} + +int Char16String::length() const { + return _length; +} + +const char16_t *Char16String::get_data() const { + return _data; +} + +Char16String::Char16String(Char16String &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +void Char16String::operator=(Char16String &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +Char16String::Char16String(const char16_t *str, int length) : + _data(str), _length(length) {} + +Char16String::~Char16String() { + if (_data != nullptr) { + memdelete_arr(_data); + } +} + +int Char32String::length() const { + return _length; +} + +const char32_t *Char32String::get_data() const { + return _data; +} + +Char32String::Char32String(Char32String &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +void Char32String::operator=(Char32String &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +Char32String::Char32String(const char32_t *str, int length) : + _data(str), _length(length) {} + +Char32String::~Char32String() { + if (_data != nullptr) { + memdelete_arr(_data); + } +} + +int CharWideString::length() const { + return _length; +} + +const wchar_t *CharWideString::get_data() const { + return _data; +} + +CharWideString::CharWideString(CharWideString &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +void CharWideString::operator=(CharWideString &&p_str) { + SWAP(_length, p_str._length); + SWAP(_data, p_str._data); +} + +CharWideString::CharWideString(const wchar_t *str, int length) : + _data(str), _length(length) {} + +CharWideString::~CharWideString() { + if (_data != nullptr) { + memdelete_arr(_data); + } +} + +// Custom String functions that are not part of bound API. +// It's easier to have them written in C++ directly than in a Python script that generates them. + +String::String(const char *from) { + internal::gde_interface->string_new_with_latin1_chars(_native_ptr(), from); +} + +String::String(const wchar_t *from) { + internal::gde_interface->string_new_with_wide_chars(_native_ptr(), from); +} + +String::String(const char16_t *from) { + internal::gde_interface->string_new_with_utf16_chars(_native_ptr(), from); +} + +String::String(const char32_t *from) { + internal::gde_interface->string_new_with_utf32_chars(_native_ptr(), from); +} + +String String::utf8(const char *from, int len) { + String ret; + ret.parse_utf8(from, len); + return ret; +} + +void String::parse_utf8(const char *from, int len) { + internal::gde_interface->string_new_with_utf8_chars_and_len(_native_ptr(), from, len); +} + +String String::utf16(const char16_t *from, int len) { + String ret; + ret.parse_utf16(from, len); + return ret; +} + +void String::parse_utf16(const char16_t *from, int len) { + internal::gde_interface->string_new_with_utf16_chars_and_len(_native_ptr(), from, len); +} + +String String::num_real(double p_num, bool p_trailing) { + if (p_num == (double)(int64_t)p_num) { + if (p_trailing) { + return num_int64((int64_t)p_num) + ".0"; + } else { + return num_int64((int64_t)p_num); + } + } +#ifdef REAL_T_IS_DOUBLE + int decimals = 14; +#else + int decimals = 6; +#endif + // We want to align the digits to the above sane default, so we only + // need to subtract log10 for numbers with a positive power of ten. + if (p_num > 10) { + decimals -= (int)floor(log10(p_num)); + } + return num(p_num, decimals); +} + +String itos(int64_t p_val) { + return String::num_int64(p_val); +} + +String uitos(uint64_t p_val) { + return String::num_uint64(p_val); +} + +String rtos(double p_val) { + return String::num(p_val); +} + +String rtoss(double p_val) { + return String::num_scientific(p_val); +} + +CharString String::utf8() const { + int length = internal::gde_interface->string_to_utf8_chars(_native_ptr(), nullptr, 0); + int size = length + 1; + char *cstr = memnew_arr(char, size); + internal::gde_interface->string_to_utf8_chars(_native_ptr(), cstr, length); + + cstr[length] = '\0'; + + return CharString(cstr, length); +} + +CharString String::ascii() const { + int length = internal::gde_interface->string_to_latin1_chars(_native_ptr(), nullptr, 0); + int size = length + 1; + char *cstr = memnew_arr(char, size); + internal::gde_interface->string_to_latin1_chars(_native_ptr(), cstr, length); + + cstr[length] = '\0'; + + return CharString(cstr, length); +} + +Char16String String::utf16() const { + int length = internal::gde_interface->string_to_utf16_chars(_native_ptr(), nullptr, 0); + int size = length + 1; + char16_t *cstr = memnew_arr(char16_t, size); + internal::gde_interface->string_to_utf16_chars(_native_ptr(), cstr, length); + + cstr[length] = '\0'; + + return Char16String(cstr, length); +} + +Char32String String::utf32() const { + int length = internal::gde_interface->string_to_utf32_chars(_native_ptr(), nullptr, 0); + int size = length + 1; + char32_t *cstr = memnew_arr(char32_t, size); + internal::gde_interface->string_to_utf32_chars(_native_ptr(), cstr, length); + + cstr[length] = '\0'; + + return Char32String(cstr, length); +} + +CharWideString String::wide_string() const { + int length = internal::gde_interface->string_to_wide_chars(_native_ptr(), nullptr, 0); + int size = length + 1; + wchar_t *cstr = memnew_arr(wchar_t, size); + internal::gde_interface->string_to_wide_chars(_native_ptr(), cstr, length); + + cstr[length] = '\0'; + + return CharWideString(cstr, length); +} + +String &String::operator=(const char *p_str) { + *this = String(p_str); + return *this; +} + +String &String::operator=(const wchar_t *p_str) { + *this = String(p_str); + return *this; +} + +String &String::operator=(const char16_t *p_str) { + *this = String(p_str); + return *this; +} + +String &String::operator=(const char32_t *p_str) { + *this = String(p_str); + return *this; +} + +bool String::operator==(const char *p_str) const { + return *this == String(p_str); +} + +bool String::operator==(const wchar_t *p_str) const { + return *this == String(p_str); +} + +bool String::operator==(const char16_t *p_str) const { + return *this == String(p_str); +} + +bool String::operator==(const char32_t *p_str) const { + return *this == String(p_str); +} + +bool String::operator!=(const char *p_str) const { + return *this != String(p_str); +} + +bool String::operator!=(const wchar_t *p_str) const { + return *this != String(p_str); +} + +bool String::operator!=(const char16_t *p_str) const { + return *this != String(p_str); +} + +bool String::operator!=(const char32_t *p_str) const { + return *this != String(p_str); +} + +String String::operator+(const char *p_str) { + return *this + String(p_str); +} + +String String::operator+(const wchar_t *p_str) { + return *this + String(p_str); +} + +String String::operator+(const char16_t *p_str) { + return *this + String(p_str); +} + +String String::operator+(const char32_t *p_str) { + return *this + String(p_str); +} + +String String::operator+(const char32_t p_char) { + return *this + String::chr(p_char); +} + +String &String::operator+=(const String &p_str) { + internal::gde_interface->string_operator_plus_eq_string((GDExtensionStringPtr)this, (GDExtensionConstStringPtr)&p_str); + return *this; +} + +String &String::operator+=(char32_t p_char) { + internal::gde_interface->string_operator_plus_eq_char((GDExtensionStringPtr)this, p_char); + return *this; +} + +String &String::operator+=(const char *p_str) { + internal::gde_interface->string_operator_plus_eq_cstr((GDExtensionStringPtr)this, p_str); + return *this; +} + +String &String::operator+=(const wchar_t *p_str) { + internal::gde_interface->string_operator_plus_eq_wcstr((GDExtensionStringPtr)this, p_str); + return *this; +} + +String &String::operator+=(const char32_t *p_str) { + internal::gde_interface->string_operator_plus_eq_c32str((GDExtensionStringPtr)this, p_str); + return *this; +} + +const char32_t &String::operator[](int p_index) const { + return *internal::gde_interface->string_operator_index_const((GDExtensionStringPtr)this, p_index); +} + +char32_t &String::operator[](int p_index) { + return *internal::gde_interface->string_operator_index((GDExtensionStringPtr)this, p_index); +} + +const char32_t *String::ptr() const { + return internal::gde_interface->string_operator_index_const((GDExtensionStringPtr)this, 0); +} + +char32_t *String::ptrw() { + return internal::gde_interface->string_operator_index((GDExtensionStringPtr)this, 0); +} + +bool operator==(const char *p_chr, const String &p_str) { + return p_str == String(p_chr); +} + +bool operator==(const wchar_t *p_chr, const String &p_str) { + return p_str == String(p_chr); +} + +bool operator==(const char16_t *p_chr, const String &p_str) { + return p_str == String(p_chr); +} + +bool operator==(const char32_t *p_chr, const String &p_str) { + return p_str == String(p_chr); +} + +bool operator!=(const char *p_chr, const String &p_str) { + return !(p_str == p_chr); +} + +bool operator!=(const wchar_t *p_chr, const String &p_str) { + return !(p_str == p_chr); +} + +bool operator!=(const char16_t *p_chr, const String &p_str) { + return !(p_str == p_chr); +} + +bool operator!=(const char32_t *p_chr, const String &p_str) { + return !(p_str == p_chr); +} + +String operator+(const char *p_chr, const String &p_str) { + return String(p_chr) + p_str; +} + +String operator+(const wchar_t *p_chr, const String &p_str) { + return String(p_chr) + p_str; +} + +String operator+(const char16_t *p_chr, const String &p_str) { + return String(p_chr) + p_str; +} + +String operator+(const char32_t *p_chr, const String &p_str) { + return String(p_chr) + p_str; +} + +String operator+(char32_t p_char, const String &p_str) { + return String::chr(p_char) + p_str; +} + +StringName::StringName(const char *from) : + StringName(String(from)) {} + +StringName::StringName(const wchar_t *from) : + StringName(String(from)) {} + +StringName::StringName(const char16_t *from) : + StringName(String(from)) {} + +StringName::StringName(const char32_t *from) : + StringName(String(from)) {} + +NodePath::NodePath(const char *from) : + NodePath(String(from)) {} + +NodePath::NodePath(const wchar_t *from) : + NodePath(String(from)) {} + +NodePath::NodePath(const char16_t *from) : + NodePath(String(from)) {} + +NodePath::NodePath(const char32_t *from) : + NodePath(String(from)) {} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/color.cpp b/lib/godot-cpp/src/variant/color.cpp new file mode 100644 index 0000000..28224a2 --- /dev/null +++ b/lib/godot-cpp/src/variant/color.cpp @@ -0,0 +1,572 @@ +/**************************************************************************/ +/* color.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include +#include +#include +#include + +namespace godot { + +uint32_t Color::to_argb32() const { + uint32_t c = (uint8_t)Math::round(a * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(r * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(g * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(b * 255.0f); + + return c; +} + +uint32_t Color::to_abgr32() const { + uint32_t c = (uint8_t)Math::round(a * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(b * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(g * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(r * 255.0f); + + return c; +} + +uint32_t Color::to_rgba32() const { + uint32_t c = (uint8_t)Math::round(r * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(g * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(b * 255.0f); + c <<= 8; + c |= (uint8_t)Math::round(a * 255.0f); + + return c; +} + +uint64_t Color::to_abgr64() const { + uint64_t c = (uint16_t)Math::round(a * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(b * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(g * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(r * 65535.0f); + + return c; +} + +uint64_t Color::to_argb64() const { + uint64_t c = (uint16_t)Math::round(a * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(r * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(g * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(b * 65535.0f); + + return c; +} + +uint64_t Color::to_rgba64() const { + uint64_t c = (uint16_t)Math::round(r * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(g * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(b * 65535.0f); + c <<= 16; + c |= (uint16_t)Math::round(a * 65535.0f); + + return c; +} + +String _to_hex(float p_val) { + int v = Math::round(p_val * 255.0f); + v = CLAMP(v, 0, 255); + String ret; + + for (int i = 0; i < 2; i++) { + char32_t c[2] = { 0, 0 }; + int lv = v & 0xF; + if (lv < 10) { + c[0] = '0' + lv; + } else { + c[0] = 'a' + lv - 10; + } + + v >>= 4; + String cs = (const char32_t *)c; + ret = cs + ret; + } + + return ret; +} + +String Color::to_html(bool p_alpha) const { + String txt; + txt = txt + _to_hex(r); + txt = txt + _to_hex(g); + txt = txt + _to_hex(b); + if (p_alpha) { + txt = txt + _to_hex(a); + } + return txt; +} + +float Color::get_h() const { + float min = Math::min(r, g); + min = Math::min(min, b); + float max = Math::max(r, g); + max = Math::max(max, b); + + float delta = max - min; + + if (delta == 0.0f) { + return 0.0f; + } + + float h; + if (r == max) { + h = (g - b) / delta; // between yellow & magenta + } else if (g == max) { + h = 2 + (b - r) / delta; // between cyan & yellow + } else { + h = 4 + (r - g) / delta; // between magenta & cyan + } + + h /= 6.0f; + if (h < 0.0f) { + h += 1.0f; + } + + return h; +} + +float Color::get_s() const { + float min = Math::min(r, g); + min = Math::min(min, b); + float max = Math::max(r, g); + max = Math::max(max, b); + + float delta = max - min; + + return (max != 0.0f) ? (delta / max) : 0.0f; +} + +float Color::get_v() const { + float max = Math::max(r, g); + max = Math::max(max, b); + return max; +} + +void Color::set_hsv(float p_h, float p_s, float p_v, float p_alpha) { + int i; + float f, p, q, t; + a = p_alpha; + + if (p_s == 0.0f) { + // Achromatic (grey) + r = g = b = p_v; + return; + } + + p_h *= 6.0f; + p_h = Math::fmod(p_h, 6); + i = Math::floor(p_h); + + f = p_h - i; + p = p_v * (1.0f - p_s); + q = p_v * (1.0f - p_s * f); + t = p_v * (1.0f - p_s * (1.0f - f)); + + switch (i) { + case 0: // Red is the dominant color + r = p_v; + g = t; + b = p; + break; + case 1: // Green is the dominant color + r = q; + g = p_v; + b = p; + break; + case 2: + r = p; + g = p_v; + b = t; + break; + case 3: // Blue is the dominant color + r = p; + g = q; + b = p_v; + break; + case 4: + r = t; + g = p; + b = p_v; + break; + default: // (5) Red is the dominant color + r = p_v; + g = p; + b = q; + break; + } +} + +bool Color::is_equal_approx(const Color &p_color) const { + return Math::is_equal_approx(r, p_color.r) && Math::is_equal_approx(g, p_color.g) && Math::is_equal_approx(b, p_color.b) && Math::is_equal_approx(a, p_color.a); +} + +Color Color::clamp(const Color &p_min, const Color &p_max) const { + return Color( + CLAMP(r, p_min.r, p_max.r), + CLAMP(g, p_min.g, p_max.g), + CLAMP(b, p_min.b, p_max.b), + CLAMP(a, p_min.a, p_max.a)); +} + +void Color::invert() { + r = 1.0f - r; + g = 1.0f - g; + b = 1.0f - b; +} + +Color Color::hex(uint32_t p_hex) { + float a = (p_hex & 0xFF) / 255.0f; + p_hex >>= 8; + float b = (p_hex & 0xFF) / 255.0f; + p_hex >>= 8; + float g = (p_hex & 0xFF) / 255.0f; + p_hex >>= 8; + float r = (p_hex & 0xFF) / 255.0f; + + return Color(r, g, b, a); +} + +Color Color::hex64(uint64_t p_hex) { + float a = (p_hex & 0xFFFF) / 65535.0f; + p_hex >>= 16; + float b = (p_hex & 0xFFFF) / 65535.0f; + p_hex >>= 16; + float g = (p_hex & 0xFFFF) / 65535.0f; + p_hex >>= 16; + float r = (p_hex & 0xFFFF) / 65535.0f; + + return Color(r, g, b, a); +} + +static int _parse_col4(const String &p_str, int p_ofs) { + char character = p_str[p_ofs]; + + if (character >= '0' && character <= '9') { + return character - '0'; + } else if (character >= 'a' && character <= 'f') { + return character + (10 - 'a'); + } else if (character >= 'A' && character <= 'F') { + return character + (10 - 'A'); + } + return -1; +} + +static int _parse_col8(const String &p_str, int p_ofs) { + return _parse_col4(p_str, p_ofs) * 16 + _parse_col4(p_str, p_ofs + 1); +} + +Color Color::inverted() const { + Color c = *this; + c.invert(); + return c; +} + +Color Color::html(const String &p_rgba) { + String color = p_rgba; + if (color.length() == 0) { + return Color(); + } + if (color[0] == '#') { + color = color.substr(1); + } + + // If enabled, use 1 hex digit per channel instead of 2. + // Other sizes aren't in the HTML/CSS spec but we could add them if desired. + bool is_shorthand = color.length() < 5; + bool alpha = false; + + if (color.length() == 8) { + alpha = true; + } else if (color.length() == 6) { + alpha = false; + } else if (color.length() == 4) { + alpha = true; + } else if (color.length() == 3) { + alpha = false; + } else { + ERR_FAIL_V_MSG(Color(), "Invalid color code: " + p_rgba + "."); + } + + float r, g, b, a = 1.0f; + if (is_shorthand) { + r = _parse_col4(color, 0) / 15.0f; + g = _parse_col4(color, 1) / 15.0f; + b = _parse_col4(color, 2) / 15.0f; + if (alpha) { + a = _parse_col4(color, 3) / 15.0f; + } + } else { + r = _parse_col8(color, 0) / 255.0f; + g = _parse_col8(color, 2) / 255.0f; + b = _parse_col8(color, 4) / 255.0f; + if (alpha) { + a = _parse_col8(color, 6) / 255.0f; + } + } + ERR_FAIL_COND_V_MSG(r < 0.0f, Color(), "Invalid color code: " + p_rgba + "."); + ERR_FAIL_COND_V_MSG(g < 0.0f, Color(), "Invalid color code: " + p_rgba + "."); + ERR_FAIL_COND_V_MSG(b < 0.0f, Color(), "Invalid color code: " + p_rgba + "."); + ERR_FAIL_COND_V_MSG(a < 0.0f, Color(), "Invalid color code: " + p_rgba + "."); + + return Color(r, g, b, a); +} + +bool Color::html_is_valid(const String &p_color) { + String color = p_color; + + if (color.length() == 0) { + return false; + } + if (color[0] == '#') { + color = color.substr(1); + } + + // Check if the amount of hex digits is valid. + int len = color.length(); + if (!(len == 3 || len == 4 || len == 6 || len == 8)) { + return false; + } + + // Check if each hex digit is valid. + for (int i = 0; i < len; i++) { + if (_parse_col4(color, i) == -1) { + return false; + } + } + + return true; +} + +Color Color::named(const String &p_name) { + int idx = find_named_color(p_name); + if (idx == -1) { + ERR_FAIL_V_MSG(Color(), "Invalid color name: " + p_name + "."); + return Color(); + } + return named_colors[idx].color; +} + +Color Color::named(const String &p_name, const Color &p_default) { + int idx = find_named_color(p_name); + if (idx == -1) { + return p_default; + } + return named_colors[idx].color; +} + +int Color::find_named_color(const String &p_name) { + String name = p_name; + // Normalize name + name = name.replace(" ", ""); + name = name.replace("-", ""); + name = name.replace("_", ""); + name = name.replace("'", ""); + name = name.replace(".", ""); + name = name.to_upper(); + + int idx = 0; + while (named_colors[idx].name != nullptr) { + if (name == String(named_colors[idx].name).replace("_", "")) { + return idx; + } + idx++; + } + + return -1; +} + +int Color::get_named_color_count() { + int idx = 0; + while (named_colors[idx].name != nullptr) { + idx++; + } + return idx; +} + +String Color::get_named_color_name(int p_idx) { + ERR_FAIL_INDEX_V(p_idx, get_named_color_count(), ""); + return named_colors[p_idx].name; +} + +Color Color::get_named_color(int p_idx) { + ERR_FAIL_INDEX_V(p_idx, get_named_color_count(), Color()); + return named_colors[p_idx].color; +} + +// For a version that errors on invalid values instead of returning +// a default color, use the Color(String) constructor instead. +Color Color::from_string(const String &p_string, const Color &p_default) { + if (html_is_valid(p_string)) { + return html(p_string); + } else { + return named(p_string, p_default); + } +} + +Color Color::from_hsv(float p_h, float p_s, float p_v, float p_alpha) { + Color c; + c.set_hsv(p_h, p_s, p_v, p_alpha); + return c; +} + +Color Color::from_rgbe9995(uint32_t p_rgbe) { + float r = p_rgbe & 0x1ff; + float g = (p_rgbe >> 9) & 0x1ff; + float b = (p_rgbe >> 18) & 0x1ff; + float e = (p_rgbe >> 27); + float m = Math::pow(2.0f, e - 15.0f - 9.0f); + + float rd = r * m; + float gd = g * m; + float bd = b * m; + + return Color(rd, gd, bd, 1.0f); +} + +Color::operator String() const { + return "(" + String::num(r, 4) + ", " + String::num(g, 4) + ", " + String::num(b, 4) + ", " + String::num(a, 4) + ")"; +} + +Color Color::operator+(const Color &p_color) const { + return Color( + r + p_color.r, + g + p_color.g, + b + p_color.b, + a + p_color.a); +} + +void Color::operator+=(const Color &p_color) { + r = r + p_color.r; + g = g + p_color.g; + b = b + p_color.b; + a = a + p_color.a; +} + +Color Color::operator-(const Color &p_color) const { + return Color( + r - p_color.r, + g - p_color.g, + b - p_color.b, + a - p_color.a); +} + +void Color::operator-=(const Color &p_color) { + r = r - p_color.r; + g = g - p_color.g; + b = b - p_color.b; + a = a - p_color.a; +} + +Color Color::operator*(const Color &p_color) const { + return Color( + r * p_color.r, + g * p_color.g, + b * p_color.b, + a * p_color.a); +} + +Color Color::operator*(float p_scalar) const { + return Color( + r * p_scalar, + g * p_scalar, + b * p_scalar, + a * p_scalar); +} + +void Color::operator*=(const Color &p_color) { + r = r * p_color.r; + g = g * p_color.g; + b = b * p_color.b; + a = a * p_color.a; +} + +void Color::operator*=(float p_scalar) { + r = r * p_scalar; + g = g * p_scalar; + b = b * p_scalar; + a = a * p_scalar; +} + +Color Color::operator/(const Color &p_color) const { + return Color( + r / p_color.r, + g / p_color.g, + b / p_color.b, + a / p_color.a); +} + +Color Color::operator/(float p_scalar) const { + return Color( + r / p_scalar, + g / p_scalar, + b / p_scalar, + a / p_scalar); +} + +void Color::operator/=(const Color &p_color) { + r = r / p_color.r; + g = g / p_color.g; + b = b / p_color.b; + a = a / p_color.a; +} + +void Color::operator/=(float p_scalar) { + r = r / p_scalar; + g = g / p_scalar; + b = b / p_scalar; + a = a / p_scalar; +} + +Color Color::operator-() const { + return Color( + 1.0f - r, + 1.0f - g, + 1.0f - b, + 1.0f - a); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/packed_arrays.cpp b/lib/godot-cpp/src/variant/packed_arrays.cpp new file mode 100644 index 0000000..a6dfabf --- /dev/null +++ b/lib/godot-cpp/src/variant/packed_arrays.cpp @@ -0,0 +1,230 @@ +/**************************************************************************/ +/* packed_arrays.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +// extra functions for packed arrays + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace godot { + +const uint8_t &PackedByteArray::operator[](int p_index) const { + return *internal::gde_interface->packed_byte_array_operator_index_const((GDExtensionTypePtr *)this, p_index); +} + +uint8_t &PackedByteArray::operator[](int p_index) { + return *internal::gde_interface->packed_byte_array_operator_index((GDExtensionTypePtr *)this, p_index); +} + +const uint8_t *PackedByteArray::ptr() const { + return internal::gde_interface->packed_byte_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +uint8_t *PackedByteArray::ptrw() { + return internal::gde_interface->packed_byte_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const Color &PackedColorArray::operator[](int p_index) const { + const Color *color = (const Color *)internal::gde_interface->packed_color_array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *color; +} + +Color &PackedColorArray::operator[](int p_index) { + Color *color = (Color *)internal::gde_interface->packed_color_array_operator_index((GDExtensionTypePtr *)this, p_index); + return *color; +} + +const Color *PackedColorArray::ptr() const { + return (const Color *)internal::gde_interface->packed_color_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +Color *PackedColorArray::ptrw() { + return (Color *)internal::gde_interface->packed_color_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const float &PackedFloat32Array::operator[](int p_index) const { + return *internal::gde_interface->packed_float32_array_operator_index_const((GDExtensionTypePtr *)this, p_index); +} + +float &PackedFloat32Array::operator[](int p_index) { + return *internal::gde_interface->packed_float32_array_operator_index((GDExtensionTypePtr *)this, p_index); +} + +const float *PackedFloat32Array::ptr() const { + return internal::gde_interface->packed_float32_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +float *PackedFloat32Array::ptrw() { + return internal::gde_interface->packed_float32_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const double &PackedFloat64Array::operator[](int p_index) const { + return *internal::gde_interface->packed_float64_array_operator_index_const((GDExtensionTypePtr *)this, p_index); +} + +double &PackedFloat64Array::operator[](int p_index) { + return *internal::gde_interface->packed_float64_array_operator_index((GDExtensionTypePtr *)this, p_index); +} + +const double *PackedFloat64Array::ptr() const { + return internal::gde_interface->packed_float64_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +double *PackedFloat64Array::ptrw() { + return internal::gde_interface->packed_float64_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const int32_t &PackedInt32Array::operator[](int p_index) const { + return *internal::gde_interface->packed_int32_array_operator_index_const((GDExtensionTypePtr *)this, p_index); +} + +int32_t &PackedInt32Array::operator[](int p_index) { + return *internal::gde_interface->packed_int32_array_operator_index((GDExtensionTypePtr *)this, p_index); +} + +const int32_t *PackedInt32Array::ptr() const { + return internal::gde_interface->packed_int32_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +int32_t *PackedInt32Array::ptrw() { + return internal::gde_interface->packed_int32_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const int64_t &PackedInt64Array::operator[](int p_index) const { + return *internal::gde_interface->packed_int64_array_operator_index_const((GDExtensionTypePtr *)this, p_index); +} + +int64_t &PackedInt64Array::operator[](int p_index) { + return *internal::gde_interface->packed_int64_array_operator_index((GDExtensionTypePtr *)this, p_index); +} + +const int64_t *PackedInt64Array::ptr() const { + return internal::gde_interface->packed_int64_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +int64_t *PackedInt64Array::ptrw() { + return internal::gde_interface->packed_int64_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const String &PackedStringArray::operator[](int p_index) const { + const String *string = (const String *)internal::gde_interface->packed_string_array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *string; +} + +String &PackedStringArray::operator[](int p_index) { + String *string = (String *)internal::gde_interface->packed_string_array_operator_index((GDExtensionTypePtr *)this, p_index); + return *string; +} + +const String *PackedStringArray::ptr() const { + return (const String *)internal::gde_interface->packed_string_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +String *PackedStringArray::ptrw() { + return (String *)internal::gde_interface->packed_string_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const Vector2 &PackedVector2Array::operator[](int p_index) const { + const Vector2 *vec = (const Vector2 *)internal::gde_interface->packed_vector2_array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +Vector2 &PackedVector2Array::operator[](int p_index) { + Vector2 *vec = (Vector2 *)internal::gde_interface->packed_vector2_array_operator_index((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +const Vector2 *PackedVector2Array::ptr() const { + return (const Vector2 *)internal::gde_interface->packed_vector2_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +Vector2 *PackedVector2Array::ptrw() { + return (Vector2 *)internal::gde_interface->packed_vector2_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const Vector3 &PackedVector3Array::operator[](int p_index) const { + const Vector3 *vec = (const Vector3 *)internal::gde_interface->packed_vector3_array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +Vector3 &PackedVector3Array::operator[](int p_index) { + Vector3 *vec = (Vector3 *)internal::gde_interface->packed_vector3_array_operator_index((GDExtensionTypePtr *)this, p_index); + return *vec; +} + +const Vector3 *PackedVector3Array::ptr() const { + return (const Vector3 *)internal::gde_interface->packed_vector3_array_operator_index_const((GDExtensionTypePtr *)this, 0); +} + +Vector3 *PackedVector3Array::ptrw() { + return (Vector3 *)internal::gde_interface->packed_vector3_array_operator_index((GDExtensionTypePtr *)this, 0); +} + +const Variant &Array::operator[](int p_index) const { + const Variant *var = (const Variant *)internal::gde_interface->array_operator_index_const((GDExtensionTypePtr *)this, p_index); + return *var; +} + +Variant &Array::operator[](int p_index) { + Variant *var = (Variant *)internal::gde_interface->array_operator_index((GDExtensionTypePtr *)this, p_index); + return *var; +} + +void Array::set_typed(uint32_t p_type, const StringName &p_class_name, const Variant &p_script) { + // p_type is not Variant::Type so that header doesn't depend on . + internal::gde_interface->array_set_typed((GDExtensionTypePtr *)this, (GDExtensionVariantType)p_type, (GDExtensionConstStringNamePtr)&p_class_name, (GDExtensionConstVariantPtr)&p_script); +} + +void Array::_ref(const Array &p_from) const { + internal::gde_interface->array_ref((GDExtensionTypePtr *)this, (GDExtensionConstTypePtr *)&p_from); +} + +const Variant &Dictionary::operator[](const Variant &p_key) const { + const Variant *var = (const Variant *)internal::gde_interface->dictionary_operator_index_const((GDExtensionTypePtr *)this, (GDExtensionVariantPtr)&p_key); + return *var; +} + +Variant &Dictionary::operator[](const Variant &p_key) { + Variant *var = (Variant *)internal::gde_interface->dictionary_operator_index((GDExtensionTypePtr *)this, (GDExtensionVariantPtr)&p_key); + return *var; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/plane.cpp b/lib/godot-cpp/src/variant/plane.cpp new file mode 100644 index 0000000..53dd439 --- /dev/null +++ b/lib/godot-cpp/src/variant/plane.cpp @@ -0,0 +1,185 @@ +/**************************************************************************/ +/* plane.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +void Plane::set_normal(const Vector3 &p_normal) { + normal = p_normal; +} + +void Plane::normalize() { + real_t l = normal.length(); + if (l == 0) { + *this = Plane(0, 0, 0, 0); + return; + } + normal /= l; + d /= l; +} + +Plane Plane::normalized() const { + Plane p = *this; + p.normalize(); + return p; +} + +Vector3 Plane::get_any_perpendicular_normal() const { + static const Vector3 p1 = Vector3(1, 0, 0); + static const Vector3 p2 = Vector3(0, 1, 0); + Vector3 p; + + if (Math::abs(normal.dot(p1)) > 0.99f) { // if too similar to p1 + p = p2; // use p2 + } else { + p = p1; // use p1 + } + + p -= normal * normal.dot(p); + p.normalize(); + + return p; +} + +/* intersections */ + +bool Plane::intersect_3(const Plane &p_plane1, const Plane &p_plane2, Vector3 *r_result) const { + const Plane &p_plane0 = *this; + Vector3 normal0 = p_plane0.normal; + Vector3 normal1 = p_plane1.normal; + Vector3 normal2 = p_plane2.normal; + + real_t denom = vec3_cross(normal0, normal1).dot(normal2); + + if (Math::is_zero_approx(denom)) { + return false; + } + + if (r_result) { + *r_result = ((vec3_cross(normal1, normal2) * p_plane0.d) + + (vec3_cross(normal2, normal0) * p_plane1.d) + + (vec3_cross(normal0, normal1) * p_plane2.d)) / + denom; + } + + return true; +} + +bool Plane::intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *p_intersection) const { + Vector3 segment = p_dir; + real_t den = normal.dot(segment); + + //printf("den is %i\n",den); + if (Math::is_zero_approx(den)) { + return false; + } + + real_t dist = (normal.dot(p_from) - d) / den; + //printf("dist is %i\n",dist); + + if (dist > (real_t)CMP_EPSILON) { //this is a ray, before the emitting pos (p_from) doesn't exist + + return false; + } + + dist = -dist; + *p_intersection = p_from + segment * dist; + + return true; +} + +bool Plane::intersects_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 *p_intersection) const { + Vector3 segment = p_begin - p_end; + real_t den = normal.dot(segment); + + //printf("den is %i\n",den); + if (Math::is_zero_approx(den)) { + return false; + } + + real_t dist = (normal.dot(p_begin) - d) / den; + //printf("dist is %i\n",dist); + + if (dist < (real_t)-CMP_EPSILON || dist > (1.0f + (real_t)CMP_EPSILON)) { + return false; + } + + dist = -dist; + *p_intersection = p_begin + segment * dist; + + return true; +} + +Variant Plane::intersect_3_bind(const Plane &p_plane1, const Plane &p_plane2) const { + Vector3 inters; + if (intersect_3(p_plane1, p_plane2, &inters)) { + return inters; + } else { + return Variant(); + } +} + +Variant Plane::intersects_ray_bind(const Vector3 &p_from, const Vector3 &p_dir) const { + Vector3 inters; + if (intersects_ray(p_from, p_dir, &inters)) { + return inters; + } else { + return Variant(); + } +} + +Variant Plane::intersects_segment_bind(const Vector3 &p_begin, const Vector3 &p_end) const { + Vector3 inters; + if (intersects_segment(p_begin, p_end, &inters)) { + return inters; + } else { + return Variant(); + } +} + +/* misc */ + +bool Plane::is_equal_approx_any_side(const Plane &p_plane) const { + return (normal.is_equal_approx(p_plane.normal) && Math::is_equal_approx(d, p_plane.d)) || (normal.is_equal_approx(-p_plane.normal) && Math::is_equal_approx(d, -p_plane.d)); +} + +bool Plane::is_equal_approx(const Plane &p_plane) const { + return normal.is_equal_approx(p_plane.normal) && Math::is_equal_approx(d, p_plane.d); +} + +Plane::operator String() const { + return "[N: " + normal.operator String() + ", D: " + String::num_real(d, false) + "]"; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/projection.cpp b/lib/godot-cpp/src/variant/projection.cpp new file mode 100644 index 0000000..c28e651 --- /dev/null +++ b/lib/godot-cpp/src/variant/projection.cpp @@ -0,0 +1,941 @@ +/**************************************************************************/ +/* projection.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include +#include +#include +#include +#include + +namespace godot { + +float Projection::determinant() const { + return columns[0][3] * columns[1][2] * columns[2][1] * columns[3][0] - columns[0][2] * columns[1][3] * columns[2][1] * columns[3][0] - + columns[0][3] * columns[1][1] * columns[2][2] * columns[3][0] + columns[0][1] * columns[1][3] * columns[2][2] * columns[3][0] + + columns[0][2] * columns[1][1] * columns[2][3] * columns[3][0] - columns[0][1] * columns[1][2] * columns[2][3] * columns[3][0] - + columns[0][3] * columns[1][2] * columns[2][0] * columns[3][1] + columns[0][2] * columns[1][3] * columns[2][0] * columns[3][1] + + columns[0][3] * columns[1][0] * columns[2][2] * columns[3][1] - columns[0][0] * columns[1][3] * columns[2][2] * columns[3][1] - + columns[0][2] * columns[1][0] * columns[2][3] * columns[3][1] + columns[0][0] * columns[1][2] * columns[2][3] * columns[3][1] + + columns[0][3] * columns[1][1] * columns[2][0] * columns[3][2] - columns[0][1] * columns[1][3] * columns[2][0] * columns[3][2] - + columns[0][3] * columns[1][0] * columns[2][1] * columns[3][2] + columns[0][0] * columns[1][3] * columns[2][1] * columns[3][2] + + columns[0][1] * columns[1][0] * columns[2][3] * columns[3][2] - columns[0][0] * columns[1][1] * columns[2][3] * columns[3][2] - + columns[0][2] * columns[1][1] * columns[2][0] * columns[3][3] + columns[0][1] * columns[1][2] * columns[2][0] * columns[3][3] + + columns[0][2] * columns[1][0] * columns[2][1] * columns[3][3] - columns[0][0] * columns[1][2] * columns[2][1] * columns[3][3] - + columns[0][1] * columns[1][0] * columns[2][2] * columns[3][3] + columns[0][0] * columns[1][1] * columns[2][2] * columns[3][3]; +} + +void Projection::set_identity() { + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + columns[i][j] = (i == j) ? 1 : 0; + } + } +} + +void Projection::set_zero() { + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + columns[i][j] = 0; + } + } +} + +Plane Projection::xform4(const Plane &p_vec4) const { + Plane ret; + + ret.normal.x = columns[0][0] * p_vec4.normal.x + columns[1][0] * p_vec4.normal.y + columns[2][0] * p_vec4.normal.z + columns[3][0] * p_vec4.d; + ret.normal.y = columns[0][1] * p_vec4.normal.x + columns[1][1] * p_vec4.normal.y + columns[2][1] * p_vec4.normal.z + columns[3][1] * p_vec4.d; + ret.normal.z = columns[0][2] * p_vec4.normal.x + columns[1][2] * p_vec4.normal.y + columns[2][2] * p_vec4.normal.z + columns[3][2] * p_vec4.d; + ret.d = columns[0][3] * p_vec4.normal.x + columns[1][3] * p_vec4.normal.y + columns[2][3] * p_vec4.normal.z + columns[3][3] * p_vec4.d; + return ret; +} + +Vector4 Projection::xform(const Vector4 &p_vec4) const { + return Vector4( + columns[0][0] * p_vec4.x + columns[1][0] * p_vec4.y + columns[2][0] * p_vec4.z + columns[3][0] * p_vec4.w, + columns[0][1] * p_vec4.x + columns[1][1] * p_vec4.y + columns[2][1] * p_vec4.z + columns[3][1] * p_vec4.w, + columns[0][2] * p_vec4.x + columns[1][2] * p_vec4.y + columns[2][2] * p_vec4.z + columns[3][2] * p_vec4.w, + columns[0][3] * p_vec4.x + columns[1][3] * p_vec4.y + columns[2][3] * p_vec4.z + columns[3][3] * p_vec4.w); +} +Vector4 Projection::xform_inv(const Vector4 &p_vec4) const { + return Vector4( + columns[0][0] * p_vec4.x + columns[0][1] * p_vec4.y + columns[0][2] * p_vec4.z + columns[0][3] * p_vec4.w, + columns[1][0] * p_vec4.x + columns[1][1] * p_vec4.y + columns[1][2] * p_vec4.z + columns[1][3] * p_vec4.w, + columns[2][0] * p_vec4.x + columns[2][1] * p_vec4.y + columns[2][2] * p_vec4.z + columns[2][3] * p_vec4.w, + columns[3][0] * p_vec4.x + columns[3][1] * p_vec4.y + columns[3][2] * p_vec4.z + columns[3][3] * p_vec4.w); +} + +void Projection::adjust_perspective_znear(real_t p_new_znear) { + real_t zfar = get_z_far(); + real_t znear = p_new_znear; + + real_t deltaZ = zfar - znear; + columns[2][2] = -(zfar + znear) / deltaZ; + columns[3][2] = -2 * znear * zfar / deltaZ; +} + +Projection Projection::create_depth_correction(bool p_flip_y) { + Projection proj; + proj.set_depth_correction(p_flip_y); + return proj; +} + +Projection Projection::create_light_atlas_rect(const Rect2 &p_rect) { + Projection proj; + proj.set_light_atlas_rect(p_rect); + return proj; +} + +Projection Projection::create_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov) { + Projection proj; + proj.set_perspective(p_fovy_degrees, p_aspect, p_z_near, p_z_far, p_flip_fov); + return proj; +} + +Projection Projection::create_perspective_hmd(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov, int p_eye, real_t p_intraocular_dist, real_t p_convergence_dist) { + Projection proj; + proj.set_perspective(p_fovy_degrees, p_aspect, p_z_near, p_z_far, p_flip_fov, p_eye, p_intraocular_dist, p_convergence_dist); + return proj; +} + +Projection Projection::create_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_dist, real_t p_display_width, real_t p_display_to_lens, real_t p_oversample, real_t p_z_near, real_t p_z_far) { + Projection proj; + proj.set_for_hmd(p_eye, p_aspect, p_intraocular_dist, p_display_width, p_display_to_lens, p_oversample, p_z_near, p_z_far); + return proj; +} + +Projection Projection::create_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar) { + Projection proj; + proj.set_orthogonal(p_left, p_right, p_bottom, p_top, p_zfar, p_zfar); + return proj; +} + +Projection Projection::create_orthogonal_aspect(real_t p_size, real_t p_aspect, real_t p_znear, real_t p_zfar, bool p_flip_fov) { + Projection proj; + proj.set_orthogonal(p_size, p_aspect, p_znear, p_zfar, p_flip_fov); + return proj; +} + +Projection Projection::create_frustum(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_near, real_t p_far) { + Projection proj; + proj.set_frustum(p_left, p_right, p_bottom, p_top, p_near, p_far); + return proj; +} + +Projection Projection::create_frustum_aspect(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov) { + Projection proj; + proj.set_frustum(p_size, p_aspect, p_offset, p_near, p_far, p_flip_fov); + return proj; +} + +Projection Projection::create_fit_aabb(const AABB &p_aabb) { + Projection proj; + proj.scale_translate_to_fit(p_aabb); + return proj; +} + +Projection Projection::perspective_znear_adjusted(real_t p_new_znear) const { + Projection proj = *this; + proj.adjust_perspective_znear(p_new_znear); + return proj; +} + +Plane Projection::get_projection_plane(Planes p_plane) const { + const real_t *matrix = (const real_t *)this->columns; + + switch (p_plane) { + case PLANE_NEAR: { + Plane new_plane = Plane(matrix[3] + matrix[2], + matrix[7] + matrix[6], + matrix[11] + matrix[10], + matrix[15] + matrix[14]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + case PLANE_FAR: { + Plane new_plane = Plane(matrix[3] - matrix[2], + matrix[7] - matrix[6], + matrix[11] - matrix[10], + matrix[15] - matrix[14]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + case PLANE_LEFT: { + Plane new_plane = Plane(matrix[3] + matrix[0], + matrix[7] + matrix[4], + matrix[11] + matrix[8], + matrix[15] + matrix[12]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + case PLANE_TOP: { + Plane new_plane = Plane(matrix[3] - matrix[1], + matrix[7] - matrix[5], + matrix[11] - matrix[9], + matrix[15] - matrix[13]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + case PLANE_RIGHT: { + Plane new_plane = Plane(matrix[3] - matrix[0], + matrix[7] - matrix[4], + matrix[11] - matrix[8], + matrix[15] - matrix[12]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + case PLANE_BOTTOM: { + Plane new_plane = Plane(matrix[3] + matrix[1], + matrix[7] + matrix[5], + matrix[11] + matrix[9], + matrix[15] + matrix[13]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + return new_plane; + } + } + + return Plane(); +} + +Projection Projection::flipped_y() const { + Projection proj = *this; + proj.flip_y(); + return proj; +} + +Projection Projection ::jitter_offseted(const Vector2 &p_offset) const { + Projection proj = *this; + proj.add_jitter_offset(p_offset); + return proj; +} + +void Projection::set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov) { + if (p_flip_fov) { + p_fovy_degrees = get_fovy(p_fovy_degrees, 1.0 / p_aspect); + } + + real_t sine, cotangent, deltaZ; + real_t radians = Math::deg_to_rad(p_fovy_degrees / 2.0); + + deltaZ = p_z_far - p_z_near; + sine = Math::sin(radians); + + if ((deltaZ == 0) || (sine == 0) || (p_aspect == 0)) { + return; + } + cotangent = Math::cos(radians) / sine; + + set_identity(); + + columns[0][0] = cotangent / p_aspect; + columns[1][1] = cotangent; + columns[2][2] = -(p_z_far + p_z_near) / deltaZ; + columns[2][3] = -1; + columns[3][2] = -2 * p_z_near * p_z_far / deltaZ; + columns[3][3] = 0; +} + +void Projection::set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov, int p_eye, real_t p_intraocular_dist, real_t p_convergence_dist) { + if (p_flip_fov) { + p_fovy_degrees = get_fovy(p_fovy_degrees, 1.0 / p_aspect); + } + + real_t left, right, modeltranslation, ymax, xmax, frustumshift; + + ymax = p_z_near * tan(Math::deg_to_rad(p_fovy_degrees / 2.0)); + xmax = ymax * p_aspect; + frustumshift = (p_intraocular_dist / 2.0) * p_z_near / p_convergence_dist; + + switch (p_eye) { + case 1: { // left eye + left = -xmax + frustumshift; + right = xmax + frustumshift; + modeltranslation = p_intraocular_dist / 2.0; + } break; + case 2: { // right eye + left = -xmax - frustumshift; + right = xmax - frustumshift; + modeltranslation = -p_intraocular_dist / 2.0; + } break; + default: { // mono, should give the same result as set_perspective(p_fovy_degrees,p_aspect,p_z_near,p_z_far,p_flip_fov) + left = -xmax; + right = xmax; + modeltranslation = 0.0; + } break; + } + + set_frustum(left, right, -ymax, ymax, p_z_near, p_z_far); + + // translate matrix by (modeltranslation, 0.0, 0.0) + Projection cm; + cm.set_identity(); + cm.columns[3][0] = modeltranslation; + *this = *this * cm; +} + +void Projection::set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_dist, real_t p_display_width, real_t p_display_to_lens, real_t p_oversample, real_t p_z_near, real_t p_z_far) { + // we first calculate our base frustum on our values without taking our lens magnification into account. + real_t f1 = (p_intraocular_dist * 0.5) / p_display_to_lens; + real_t f2 = ((p_display_width - p_intraocular_dist) * 0.5) / p_display_to_lens; + real_t f3 = (p_display_width / 4.0) / p_display_to_lens; + + // now we apply our oversample factor to increase our FOV. how much we oversample is always a balance we strike between performance and how much + // we're willing to sacrifice in FOV. + real_t add = ((f1 + f2) * (p_oversample - 1.0)) / 2.0; + f1 += add; + f2 += add; + f3 *= p_oversample; + + // always apply KEEP_WIDTH aspect ratio + f3 /= p_aspect; + + switch (p_eye) { + case 1: { // left eye + set_frustum(-f2 * p_z_near, f1 * p_z_near, -f3 * p_z_near, f3 * p_z_near, p_z_near, p_z_far); + } break; + case 2: { // right eye + set_frustum(-f1 * p_z_near, f2 * p_z_near, -f3 * p_z_near, f3 * p_z_near, p_z_near, p_z_far); + } break; + default: { // mono, does not apply here! + } break; + } +} + +void Projection::set_orthogonal(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_znear, real_t p_zfar) { + set_identity(); + + columns[0][0] = 2.0 / (p_right - p_left); + columns[3][0] = -((p_right + p_left) / (p_right - p_left)); + columns[1][1] = 2.0 / (p_top - p_bottom); + columns[3][1] = -((p_top + p_bottom) / (p_top - p_bottom)); + columns[2][2] = -2.0 / (p_zfar - p_znear); + columns[3][2] = -((p_zfar + p_znear) / (p_zfar - p_znear)); + columns[3][3] = 1.0; +} + +void Projection::set_orthogonal(real_t p_size, real_t p_aspect, real_t p_znear, real_t p_zfar, bool p_flip_fov) { + if (!p_flip_fov) { + p_size *= p_aspect; + } + + set_orthogonal(-p_size / 2, +p_size / 2, -p_size / p_aspect / 2, +p_size / p_aspect / 2, p_znear, p_zfar); +} + +void Projection::set_frustum(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_near, real_t p_far) { + ERR_FAIL_COND(p_right <= p_left); + ERR_FAIL_COND(p_top <= p_bottom); + ERR_FAIL_COND(p_far <= p_near); + + real_t *te = &columns[0][0]; + real_t x = 2 * p_near / (p_right - p_left); + real_t y = 2 * p_near / (p_top - p_bottom); + + real_t a = (p_right + p_left) / (p_right - p_left); + real_t b = (p_top + p_bottom) / (p_top - p_bottom); + real_t c = -(p_far + p_near) / (p_far - p_near); + real_t d = -2 * p_far * p_near / (p_far - p_near); + + te[0] = x; + te[1] = 0; + te[2] = 0; + te[3] = 0; + te[4] = 0; + te[5] = y; + te[6] = 0; + te[7] = 0; + te[8] = a; + te[9] = b; + te[10] = c; + te[11] = -1; + te[12] = 0; + te[13] = 0; + te[14] = d; + te[15] = 0; +} + +void Projection::set_frustum(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov) { + if (!p_flip_fov) { + p_size *= p_aspect; + } + + set_frustum(-p_size / 2 + p_offset.x, +p_size / 2 + p_offset.x, -p_size / p_aspect / 2 + p_offset.y, +p_size / p_aspect / 2 + p_offset.y, p_near, p_far); +} + +real_t Projection::get_z_far() const { + const real_t *matrix = (const real_t *)this->columns; + Plane new_plane = Plane(matrix[3] - matrix[2], + matrix[7] - matrix[6], + matrix[11] - matrix[10], + matrix[15] - matrix[14]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + return new_plane.d; +} + +real_t Projection::get_z_near() const { + const real_t *matrix = (const real_t *)this->columns; + Plane new_plane = Plane(matrix[3] + matrix[2], + matrix[7] + matrix[6], + matrix[11] + matrix[10], + -matrix[15] - matrix[14]); + + new_plane.normalize(); + return new_plane.d; +} + +Vector2 Projection::get_viewport_half_extents() const { + const real_t *matrix = (const real_t *)this->columns; + ///////--- Near Plane ---/////// + Plane near_plane = Plane(matrix[3] + matrix[2], + matrix[7] + matrix[6], + matrix[11] + matrix[10], + -matrix[15] - matrix[14]); + near_plane.normalize(); + + ///////--- Right Plane ---/////// + Plane right_plane = Plane(matrix[3] - matrix[0], + matrix[7] - matrix[4], + matrix[11] - matrix[8], + -matrix[15] + matrix[12]); + right_plane.normalize(); + + Plane top_plane = Plane(matrix[3] - matrix[1], + matrix[7] - matrix[5], + matrix[11] - matrix[9], + -matrix[15] + matrix[13]); + top_plane.normalize(); + + Vector3 res; + near_plane.intersect_3(right_plane, top_plane, &res); + + return Vector2(res.x, res.y); +} + +Vector2 Projection::get_far_plane_half_extents() const { + const real_t *matrix = (const real_t *)this->columns; + ///////--- Far Plane ---/////// + Plane far_plane = Plane(matrix[3] - matrix[2], + matrix[7] - matrix[6], + matrix[11] - matrix[10], + -matrix[15] + matrix[14]); + far_plane.normalize(); + + ///////--- Right Plane ---/////// + Plane right_plane = Plane(matrix[3] - matrix[0], + matrix[7] - matrix[4], + matrix[11] - matrix[8], + -matrix[15] + matrix[12]); + right_plane.normalize(); + + Plane top_plane = Plane(matrix[3] - matrix[1], + matrix[7] - matrix[5], + matrix[11] - matrix[9], + -matrix[15] + matrix[13]); + top_plane.normalize(); + + Vector3 res; + far_plane.intersect_3(right_plane, top_plane, &res); + + return Vector2(res.x, res.y); +} + +bool Projection::get_endpoints(const Transform3D &p_transform, Vector3 *p_8points) const { + Array planes = get_projection_planes(Transform3D()); + const Planes intersections[8][3] = { + { PLANE_FAR, PLANE_LEFT, PLANE_TOP }, + { PLANE_FAR, PLANE_LEFT, PLANE_BOTTOM }, + { PLANE_FAR, PLANE_RIGHT, PLANE_TOP }, + { PLANE_FAR, PLANE_RIGHT, PLANE_BOTTOM }, + { PLANE_NEAR, PLANE_LEFT, PLANE_TOP }, + { PLANE_NEAR, PLANE_LEFT, PLANE_BOTTOM }, + { PLANE_NEAR, PLANE_RIGHT, PLANE_TOP }, + { PLANE_NEAR, PLANE_RIGHT, PLANE_BOTTOM }, + }; + + for (int i = 0; i < 8; i++) { + Vector3 point; + Plane a = planes[intersections[i][0]]; + Plane b = planes[intersections[i][1]]; + Plane c = planes[intersections[i][2]]; + bool res = a.intersect_3(b, c, &point); + ERR_FAIL_COND_V(!res, false); + p_8points[i] = p_transform.xform(point); + } + + return true; +} + +Array Projection::get_projection_planes(const Transform3D &p_transform) const { + /** Fast Plane Extraction from combined modelview/projection matrices. + * References: + * https://web.archive.org/web/20011221205252/https://www.markmorley.com/opengl/frustumculling.html + * https://web.archive.org/web/20061020020112/https://www2.ravensoft.com/users/ggribb/plane%20extraction.pdf + */ + + Array planes; + planes.resize(6); + + const real_t *matrix = (const real_t *)this->columns; + + Plane new_plane; + + ///////--- Near Plane ---/////// + new_plane = Plane(matrix[3] + matrix[2], + matrix[7] + matrix[6], + matrix[11] + matrix[10], + matrix[15] + matrix[14]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[0] = p_transform.xform(new_plane); + + ///////--- Far Plane ---/////// + new_plane = Plane(matrix[3] - matrix[2], + matrix[7] - matrix[6], + matrix[11] - matrix[10], + matrix[15] - matrix[14]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[1] = p_transform.xform(new_plane); + + ///////--- Left Plane ---/////// + new_plane = Plane(matrix[3] + matrix[0], + matrix[7] + matrix[4], + matrix[11] + matrix[8], + matrix[15] + matrix[12]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[2] = p_transform.xform(new_plane); + + ///////--- Top Plane ---/////// + new_plane = Plane(matrix[3] - matrix[1], + matrix[7] - matrix[5], + matrix[11] - matrix[9], + matrix[15] - matrix[13]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[3] = p_transform.xform(new_plane); + + ///////--- Right Plane ---/////// + new_plane = Plane(matrix[3] - matrix[0], + matrix[7] - matrix[4], + matrix[11] - matrix[8], + matrix[15] - matrix[12]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[4] = p_transform.xform(new_plane); + + ///////--- Bottom Plane ---/////// + new_plane = Plane(matrix[3] + matrix[1], + matrix[7] + matrix[5], + matrix[11] + matrix[9], + matrix[15] + matrix[13]); + + new_plane.normal = -new_plane.normal; + new_plane.normalize(); + + planes[5] = p_transform.xform(new_plane); + + return planes; +} + +Projection Projection::inverse() const { + Projection cm = *this; + cm.invert(); + return cm; +} + +void Projection::invert() { + int i, j, k; + int pvt_i[4], pvt_j[4]; /* Locations of pivot matrix */ + real_t pvt_val; /* Value of current pivot element */ + real_t hold; /* Temporary storage */ + real_t determinant = 1.0f; + for (k = 0; k < 4; k++) { + /** Locate k'th pivot element **/ + pvt_val = columns[k][k]; /** Initialize for search **/ + pvt_i[k] = k; + pvt_j[k] = k; + for (i = k; i < 4; i++) { + for (j = k; j < 4; j++) { + if (Math::abs(columns[i][j]) > Math::abs(pvt_val)) { + pvt_i[k] = i; + pvt_j[k] = j; + pvt_val = columns[i][j]; + } + } + } + + /** Product of pivots, gives determinant when finished **/ + determinant *= pvt_val; + if (Math::is_zero_approx(determinant)) { + return; /** Matrix is singular (zero determinant). **/ + } + + /** "Interchange" rows (with sign change stuff) **/ + i = pvt_i[k]; + if (i != k) { /** If rows are different **/ + for (j = 0; j < 4; j++) { + hold = -columns[k][j]; + columns[k][j] = columns[i][j]; + columns[i][j] = hold; + } + } + + /** "Interchange" columns **/ + j = pvt_j[k]; + if (j != k) { /** If columns are different **/ + for (i = 0; i < 4; i++) { + hold = -columns[i][k]; + columns[i][k] = columns[i][j]; + columns[i][j] = hold; + } + } + + /** Divide column by minus pivot value **/ + for (i = 0; i < 4; i++) { + if (i != k) { + columns[i][k] /= (-pvt_val); + } + } + + /** Reduce the matrix **/ + for (i = 0; i < 4; i++) { + hold = columns[i][k]; + for (j = 0; j < 4; j++) { + if (i != k && j != k) { + columns[i][j] += hold * columns[k][j]; + } + } + } + + /** Divide row by pivot **/ + for (j = 0; j < 4; j++) { + if (j != k) { + columns[k][j] /= pvt_val; + } + } + + /** Replace pivot by reciprocal (at last we can touch it). **/ + columns[k][k] = 1.0 / pvt_val; + } + + /* That was most of the work, one final pass of row/column interchange */ + /* to finish */ + for (k = 4 - 2; k >= 0; k--) { /* Don't need to work with 1 by 1 corner*/ + i = pvt_j[k]; /* Rows to swap correspond to pivot COLUMN */ + if (i != k) { /* If rows are different */ + for (j = 0; j < 4; j++) { + hold = columns[k][j]; + columns[k][j] = -columns[i][j]; + columns[i][j] = hold; + } + } + + j = pvt_i[k]; /* Columns to swap correspond to pivot ROW */ + if (j != k) { /* If columns are different */ + for (i = 0; i < 4; i++) { + hold = columns[i][k]; + columns[i][k] = -columns[i][j]; + columns[i][j] = hold; + } + } + } +} + +void Projection::flip_y() { + for (int i = 0; i < 4; i++) { + columns[1][i] = -columns[1][i]; + } +} + +Projection::Projection() { + set_identity(); +} + +Projection Projection::operator*(const Projection &p_matrix) const { + Projection new_matrix; + + for (int j = 0; j < 4; j++) { + for (int i = 0; i < 4; i++) { + real_t ab = 0; + for (int k = 0; k < 4; k++) { + ab += columns[k][i] * p_matrix.columns[j][k]; + } + new_matrix.columns[j][i] = ab; + } + } + + return new_matrix; +} + +void Projection::set_depth_correction(bool p_flip_y) { + real_t *m = &columns[0][0]; + + m[0] = 1; + m[1] = 0.0; + m[2] = 0.0; + m[3] = 0.0; + m[4] = 0.0; + m[5] = p_flip_y ? -1 : 1; + m[6] = 0.0; + m[7] = 0.0; + m[8] = 0.0; + m[9] = 0.0; + m[10] = 0.5; + m[11] = 0.0; + m[12] = 0.0; + m[13] = 0.0; + m[14] = 0.5; + m[15] = 1.0; +} + +void Projection::set_light_bias() { + real_t *m = &columns[0][0]; + + m[0] = 0.5; + m[1] = 0.0; + m[2] = 0.0; + m[3] = 0.0; + m[4] = 0.0; + m[5] = 0.5; + m[6] = 0.0; + m[7] = 0.0; + m[8] = 0.0; + m[9] = 0.0; + m[10] = 0.5; + m[11] = 0.0; + m[12] = 0.5; + m[13] = 0.5; + m[14] = 0.5; + m[15] = 1.0; +} + +void Projection::set_light_atlas_rect(const Rect2 &p_rect) { + real_t *m = &columns[0][0]; + + m[0] = p_rect.size.width; + m[1] = 0.0; + m[2] = 0.0; + m[3] = 0.0; + m[4] = 0.0; + m[5] = p_rect.size.height; + m[6] = 0.0; + m[7] = 0.0; + m[8] = 0.0; + m[9] = 0.0; + m[10] = 1.0; + m[11] = 0.0; + m[12] = p_rect.position.x; + m[13] = p_rect.position.y; + m[14] = 0.0; + m[15] = 1.0; +} + +Projection::operator String() const { + String str; + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + str = str + String((j > 0) ? ", " : "\n") + rtos(columns[i][j]); + } + } + + return str; +} + +real_t Projection::get_aspect() const { + Vector2 vp_he = get_viewport_half_extents(); + return vp_he.x / vp_he.y; +} + +int Projection::get_pixels_per_meter(int p_for_pixel_width) const { + Vector3 result = xform(Vector3(1, 0, -1)); + + return int((result.x * 0.5 + 0.5) * p_for_pixel_width); +} + +bool Projection::is_orthogonal() const { + return columns[3][3] == 1.0; +} + +real_t Projection::get_fov() const { + const real_t *matrix = (const real_t *)this->columns; + + Plane right_plane = Plane(matrix[3] - matrix[0], + matrix[7] - matrix[4], + matrix[11] - matrix[8], + -matrix[15] + matrix[12]); + right_plane.normalize(); + + if ((matrix[8] == 0) && (matrix[9] == 0)) { + return Math::rad_to_deg(Math::acos(Math::abs(right_plane.normal.x))) * 2.0; + } else { + // our frustum is asymmetrical need to calculate the left planes angle separately.. + Plane left_plane = Plane(matrix[3] + matrix[0], + matrix[7] + matrix[4], + matrix[11] + matrix[8], + matrix[15] + matrix[12]); + left_plane.normalize(); + + return Math::rad_to_deg(Math::acos(Math::abs(left_plane.normal.x))) + Math::rad_to_deg(Math::acos(Math::abs(right_plane.normal.x))); + } +} + +float Projection::get_lod_multiplier() const { + if (is_orthogonal()) { + return get_viewport_half_extents().x; + } else { + float zn = get_z_near(); + float width = get_viewport_half_extents().x * 2.0; + return 1.0 / (zn / width); + } + + // Usage is lod_size / (lod_distance * multiplier) < threshold +} + +void Projection::make_scale(const Vector3 &p_scale) { + set_identity(); + columns[0][0] = p_scale.x; + columns[1][1] = p_scale.y; + columns[2][2] = p_scale.z; +} + +void Projection::scale_translate_to_fit(const AABB &p_aabb) { + Vector3 min = p_aabb.position; + Vector3 max = p_aabb.position + p_aabb.size; + + columns[0][0] = 2 / (max.x - min.x); + columns[1][0] = 0; + columns[2][0] = 0; + columns[3][0] = -(max.x + min.x) / (max.x - min.x); + + columns[0][1] = 0; + columns[1][1] = 2 / (max.y - min.y); + columns[2][1] = 0; + columns[3][1] = -(max.y + min.y) / (max.y - min.y); + + columns[0][2] = 0; + columns[1][2] = 0; + columns[2][2] = 2 / (max.z - min.z); + columns[3][2] = -(max.z + min.z) / (max.z - min.z); + + columns[0][3] = 0; + columns[1][3] = 0; + columns[2][3] = 0; + columns[3][3] = 1; +} + +void Projection::add_jitter_offset(const Vector2 &p_offset) { + columns[3][0] += p_offset.x; + columns[3][1] += p_offset.y; +} + +Projection::operator Transform3D() const { + Transform3D tr; + const real_t *m = &columns[0][0]; + + tr.basis.rows[0][0] = m[0]; + tr.basis.rows[1][0] = m[1]; + tr.basis.rows[2][0] = m[2]; + + tr.basis.rows[0][1] = m[4]; + tr.basis.rows[1][1] = m[5]; + tr.basis.rows[2][1] = m[6]; + + tr.basis.rows[0][2] = m[8]; + tr.basis.rows[1][2] = m[9]; + tr.basis.rows[2][2] = m[10]; + + tr.origin.x = m[12]; + tr.origin.y = m[13]; + tr.origin.z = m[14]; + + return tr; +} + +Projection::Projection(const Vector4 &p_x, const Vector4 &p_y, const Vector4 &p_z, const Vector4 &p_w) { + columns[0] = p_x; + columns[1] = p_y; + columns[2] = p_z; + columns[3] = p_w; +} + +Projection::Projection(const Transform3D &p_transform) { + const Transform3D &tr = p_transform; + real_t *m = &columns[0][0]; + + m[0] = tr.basis.rows[0][0]; + m[1] = tr.basis.rows[1][0]; + m[2] = tr.basis.rows[2][0]; + m[3] = 0.0; + m[4] = tr.basis.rows[0][1]; + m[5] = tr.basis.rows[1][1]; + m[6] = tr.basis.rows[2][1]; + m[7] = 0.0; + m[8] = tr.basis.rows[0][2]; + m[9] = tr.basis.rows[1][2]; + m[10] = tr.basis.rows[2][2]; + m[11] = 0.0; + m[12] = tr.origin.x; + m[13] = tr.origin.y; + m[14] = tr.origin.z; + m[15] = 1.0; +} + +Projection::~Projection() { +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/quaternion.cpp b/lib/godot-cpp/src/variant/quaternion.cpp new file mode 100644 index 0000000..9d4d838 --- /dev/null +++ b/lib/godot-cpp/src/variant/quaternion.cpp @@ -0,0 +1,353 @@ +/**************************************************************************/ +/* quaternion.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +real_t Quaternion::angle_to(const Quaternion &p_to) const { + real_t d = dot(p_to); + return Math::acos(CLAMP(d * d * 2 - 1, -1, 1)); +} + +// get_euler_xyz returns a vector containing the Euler angles in the format +// (ax,ay,az), where ax is the angle of rotation around x axis, +// and similar for other axes. +// This implementation uses XYZ convention (Z is the first rotation). +Vector3 Quaternion::get_euler_xyz() const { + Basis m(*this); + return m.get_euler(EULER_ORDER_XYZ); +} + +// get_euler_yxz returns a vector containing the Euler angles in the format +// (ax,ay,az), where ax is the angle of rotation around x axis, +// and similar for other axes. +// This implementation uses YXZ convention (Z is the first rotation). +Vector3 Quaternion::get_euler_yxz() const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Vector3(0, 0, 0), "The quaternion must be normalized."); +#endif + Basis m(*this); + return m.get_euler(EULER_ORDER_YXZ); +} + +void Quaternion::operator*=(const Quaternion &p_q) { + real_t xx = w * p_q.x + x * p_q.w + y * p_q.z - z * p_q.y; + real_t yy = w * p_q.y + y * p_q.w + z * p_q.x - x * p_q.z; + real_t zz = w * p_q.z + z * p_q.w + x * p_q.y - y * p_q.x; + w = w * p_q.w - x * p_q.x - y * p_q.y - z * p_q.z; + x = xx; + y = yy; + z = zz; +} + +Quaternion Quaternion::operator*(const Quaternion &p_q) const { + Quaternion r = *this; + r *= p_q; + return r; +} + +bool Quaternion::is_equal_approx(const Quaternion &p_quaternion) const { + return Math::is_equal_approx(x, p_quaternion.x) && Math::is_equal_approx(y, p_quaternion.y) && Math::is_equal_approx(z, p_quaternion.z) && Math::is_equal_approx(w, p_quaternion.w); +} + +real_t Quaternion::length() const { + return Math::sqrt(length_squared()); +} + +void Quaternion::normalize() { + *this /= length(); +} + +Quaternion Quaternion::normalized() const { + return *this / length(); +} + +bool Quaternion::is_normalized() const { + return Math::is_equal_approx(length_squared(), 1, (real_t)UNIT_EPSILON); //use less epsilon +} + +Quaternion Quaternion::inverse() const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Quaternion(), "The quaternion must be normalized."); +#endif + return Quaternion(-x, -y, -z, w); +} + +Quaternion Quaternion::log() const { + Quaternion src = *this; + Vector3 src_v = src.get_axis() * src.get_angle(); + return Quaternion(src_v.x, src_v.y, src_v.z, 0); +} + +Quaternion Quaternion::exp() const { + Quaternion src = *this; + Vector3 src_v = Vector3(src.x, src.y, src.z); + real_t theta = src_v.length(); + src_v = src_v.normalized(); + if (theta < CMP_EPSILON || !src_v.is_normalized()) { + return Quaternion(0, 0, 0, 1); + } + return Quaternion(src_v, theta); +} + +Quaternion Quaternion::slerp(const Quaternion &p_to, const real_t &p_weight) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Quaternion(), "The start quaternion must be normalized."); + ERR_FAIL_COND_V_MSG(!p_to.is_normalized(), Quaternion(), "The end quaternion must be normalized."); +#endif + Quaternion to1; + real_t omega, cosom, sinom, scale0, scale1; + + // calc cosine + cosom = dot(p_to); + + // adjust signs (if necessary) + if (cosom < 0.0f) { + cosom = -cosom; + to1 = -p_to; + } else { + to1 = p_to; + } + + // calculate coefficients + + if ((1.0f - cosom) > (real_t)CMP_EPSILON) { + // standard case (slerp) + omega = Math::acos(cosom); + sinom = Math::sin(omega); + scale0 = Math::sin((1.0 - p_weight) * omega) / sinom; + scale1 = Math::sin(p_weight * omega) / sinom; + } else { + // "from" and "to" quaternions are very close + // ... so we can do a linear interpolation + scale0 = 1.0f - p_weight; + scale1 = p_weight; + } + // calculate final values + return Quaternion( + scale0 * x + scale1 * to1.x, + scale0 * y + scale1 * to1.y, + scale0 * z + scale1 * to1.z, + scale0 * w + scale1 * to1.w); +} + +Quaternion Quaternion::slerpni(const Quaternion &p_to, const real_t &p_weight) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Quaternion(), "The start quaternion must be normalized."); + ERR_FAIL_COND_V_MSG(!p_to.is_normalized(), Quaternion(), "The end quaternion must be normalized."); +#endif + const Quaternion &from = *this; + + real_t dot = from.dot(p_to); + + if (Math::absf(dot) > 0.9999f) { + return from; + } + + real_t theta = Math::acos(dot), + sinT = 1.0f / Math::sin(theta), + newFactor = Math::sin(p_weight * theta) * sinT, + invFactor = Math::sin((1.0f - p_weight) * theta) * sinT; + + return Quaternion(invFactor * from.x + newFactor * p_to.x, + invFactor * from.y + newFactor * p_to.y, + invFactor * from.z + newFactor * p_to.z, + invFactor * from.w + newFactor * p_to.w); +} + +Quaternion Quaternion::spherical_cubic_interpolate(const Quaternion &p_b, const Quaternion &p_pre_a, const Quaternion &p_post_b, const real_t &p_weight) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Quaternion(), "The start quaternion must be normalized."); + ERR_FAIL_COND_V_MSG(!p_b.is_normalized(), Quaternion(), "The end quaternion must be normalized."); +#endif + Quaternion from_q = *this; + Quaternion pre_q = p_pre_a; + Quaternion to_q = p_b; + Quaternion post_q = p_post_b; + + // Align flip phases. + from_q = Basis(from_q).get_rotation_quaternion(); + pre_q = Basis(pre_q).get_rotation_quaternion(); + to_q = Basis(to_q).get_rotation_quaternion(); + post_q = Basis(post_q).get_rotation_quaternion(); + + // Flip quaternions to shortest path if necessary. + bool flip1 = Math::sign(from_q.dot(pre_q)); + pre_q = flip1 ? -pre_q : pre_q; + bool flip2 = Math::sign(from_q.dot(to_q)); + to_q = flip2 ? -to_q : to_q; + bool flip3 = flip2 ? to_q.dot(post_q) <= 0 : Math::sign(to_q.dot(post_q)); + post_q = flip3 ? -post_q : post_q; + + // Calc by Expmap in from_q space. + Quaternion ln_from = Quaternion(0, 0, 0, 0); + Quaternion ln_to = (from_q.inverse() * to_q).log(); + Quaternion ln_pre = (from_q.inverse() * pre_q).log(); + Quaternion ln_post = (from_q.inverse() * post_q).log(); + Quaternion ln = Quaternion(0, 0, 0, 0); + ln.x = Math::cubic_interpolate(ln_from.x, ln_to.x, ln_pre.x, ln_post.x, p_weight); + ln.y = Math::cubic_interpolate(ln_from.y, ln_to.y, ln_pre.y, ln_post.y, p_weight); + ln.z = Math::cubic_interpolate(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight); + Quaternion q1 = from_q * ln.exp(); + + // Calc by Expmap in to_q space. + ln_from = (to_q.inverse() * from_q).log(); + ln_to = Quaternion(0, 0, 0, 0); + ln_pre = (to_q.inverse() * pre_q).log(); + ln_post = (to_q.inverse() * post_q).log(); + ln = Quaternion(0, 0, 0, 0); + ln.x = Math::cubic_interpolate(ln_from.x, ln_to.x, ln_pre.x, ln_post.x, p_weight); + ln.y = Math::cubic_interpolate(ln_from.y, ln_to.y, ln_pre.y, ln_post.y, p_weight); + ln.z = Math::cubic_interpolate(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight); + Quaternion q2 = to_q * ln.exp(); + + // To cancel error made by Expmap ambiguity, do blends. + return q1.slerp(q2, p_weight); +} + +Quaternion Quaternion::spherical_cubic_interpolate_in_time(const Quaternion &p_b, const Quaternion &p_pre_a, const Quaternion &p_post_b, const real_t &p_weight, + const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!is_normalized(), Quaternion(), "The start quaternion must be normalized."); + ERR_FAIL_COND_V_MSG(!p_b.is_normalized(), Quaternion(), "The end quaternion must be normalized."); +#endif + Quaternion from_q = *this; + Quaternion pre_q = p_pre_a; + Quaternion to_q = p_b; + Quaternion post_q = p_post_b; + + // Align flip phases. + from_q = Basis(from_q).get_rotation_quaternion(); + pre_q = Basis(pre_q).get_rotation_quaternion(); + to_q = Basis(to_q).get_rotation_quaternion(); + post_q = Basis(post_q).get_rotation_quaternion(); + + // Flip quaternions to shortest path if necessary. + bool flip1 = Math::sign(from_q.dot(pre_q)); + pre_q = flip1 ? -pre_q : pre_q; + bool flip2 = Math::sign(from_q.dot(to_q)); + to_q = flip2 ? -to_q : to_q; + bool flip3 = flip2 ? to_q.dot(post_q) <= 0 : Math::sign(to_q.dot(post_q)); + post_q = flip3 ? -post_q : post_q; + + // Calc by Expmap in from_q space. + Quaternion ln_from = Quaternion(0, 0, 0, 0); + Quaternion ln_to = (from_q.inverse() * to_q).log(); + Quaternion ln_pre = (from_q.inverse() * pre_q).log(); + Quaternion ln_post = (from_q.inverse() * post_q).log(); + Quaternion ln = Quaternion(0, 0, 0, 0); + ln.x = Math::cubic_interpolate_in_time(ln_from.x, ln_to.x, ln_pre.x, ln_post.x, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + ln.y = Math::cubic_interpolate_in_time(ln_from.y, ln_to.y, ln_pre.y, ln_post.y, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + ln.z = Math::cubic_interpolate_in_time(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + Quaternion q1 = from_q * ln.exp(); + + // Calc by Expmap in to_q space. + ln_from = (to_q.inverse() * from_q).log(); + ln_to = Quaternion(0, 0, 0, 0); + ln_pre = (to_q.inverse() * pre_q).log(); + ln_post = (to_q.inverse() * post_q).log(); + ln = Quaternion(0, 0, 0, 0); + ln.x = Math::cubic_interpolate_in_time(ln_from.x, ln_to.x, ln_pre.x, ln_post.x, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + ln.y = Math::cubic_interpolate_in_time(ln_from.y, ln_to.y, ln_pre.y, ln_post.y, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + ln.z = Math::cubic_interpolate_in_time(ln_from.z, ln_to.z, ln_pre.z, ln_post.z, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + Quaternion q2 = to_q * ln.exp(); + + // To cancel error made by Expmap ambiguity, do blends. + return q1.slerp(q2, p_weight); +} + +Quaternion::operator String() const { + return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ", " + String::num_real(w, false) + ")"; +} + +Vector3 Quaternion::get_axis() const { + if (Math::abs(w) > 1 - CMP_EPSILON) { + return Vector3(x, y, z); + } + real_t r = ((real_t)1) / Math::sqrt(1 - w * w); + return Vector3(x * r, y * r, z * r); +} + +real_t Quaternion::get_angle() const { + return 2 * Math::acos(w); +} + +Quaternion::Quaternion(const Vector3 &p_axis, real_t p_angle) { +#ifdef MATH_CHECKS + ERR_FAIL_COND_MSG(!p_axis.is_normalized(), "The axis Vector3 must be normalized."); +#endif + real_t d = p_axis.length(); + if (d == 0) { + x = 0; + y = 0; + z = 0; + w = 0; + } else { + real_t sin_angle = Math::sin(p_angle * 0.5f); + real_t cos_angle = Math::cos(p_angle * 0.5f); + real_t s = sin_angle / d; + x = p_axis.x * s; + y = p_axis.y * s; + z = p_axis.z * s; + w = cos_angle; + } +} + +// Euler constructor expects a vector containing the Euler angles in the format +// (ax, ay, az), where ax is the angle of rotation around x axis, +// and similar for other axes. +// This implementation uses YXZ convention (Z is the first rotation). +Quaternion::Quaternion(const Vector3 &p_euler) { + real_t half_a1 = p_euler.y * 0.5f; + real_t half_a2 = p_euler.x * 0.5f; + real_t half_a3 = p_euler.z * 0.5f; + + // R = Y(a1).X(a2).Z(a3) convention for Euler angles. + // Conversion to quaternion as listed in https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770024290.pdf (page A-6) + // a3 is the angle of the first rotation, following the notation in this reference. + + real_t cos_a1 = Math::cos(half_a1); + real_t sin_a1 = Math::sin(half_a1); + real_t cos_a2 = Math::cos(half_a2); + real_t sin_a2 = Math::sin(half_a2); + real_t cos_a3 = Math::cos(half_a3); + real_t sin_a3 = Math::sin(half_a3); + + x = sin_a1 * cos_a2 * sin_a3 + cos_a1 * sin_a2 * cos_a3; + y = sin_a1 * cos_a2 * cos_a3 - cos_a1 * sin_a2 * sin_a3; + z = -sin_a1 * sin_a2 * cos_a3 + cos_a1 * cos_a2 * sin_a3; + w = sin_a1 * sin_a2 * sin_a3 + cos_a1 * cos_a2 * cos_a3; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/rect2.cpp b/lib/godot-cpp/src/variant/rect2.cpp new file mode 100644 index 0000000..a70fee6 --- /dev/null +++ b/lib/godot-cpp/src/variant/rect2.cpp @@ -0,0 +1,291 @@ +/**************************************************************************/ +/* rect2.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include +#include + +namespace godot { + +bool Rect2::is_equal_approx(const Rect2 &p_rect) const { + return position.is_equal_approx(p_rect.position) && size.is_equal_approx(p_rect.size); +} + +bool Rect2::intersects_segment(const Point2 &p_from, const Point2 &p_to, Point2 *r_pos, Point2 *r_normal) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + real_t min = 0, max = 1; + int axis = 0; + real_t sign = 0; + + for (int i = 0; i < 2; i++) { + real_t seg_from = p_from[i]; + real_t seg_to = p_to[i]; + real_t box_begin = position[i]; + real_t box_end = box_begin + size[i]; + real_t cmin, cmax; + real_t csign; + + if (seg_from < seg_to) { + if (seg_from > box_end || seg_to < box_begin) { + return false; + } + real_t length = seg_to - seg_from; + cmin = (seg_from < box_begin) ? ((box_begin - seg_from) / length) : 0; + cmax = (seg_to > box_end) ? ((box_end - seg_from) / length) : 1; + csign = -1.0; + + } else { + if (seg_to > box_end || seg_from < box_begin) { + return false; + } + real_t length = seg_to - seg_from; + cmin = (seg_from > box_end) ? (box_end - seg_from) / length : 0; + cmax = (seg_to < box_begin) ? (box_begin - seg_from) / length : 1; + csign = 1.0; + } + + if (cmin > min) { + min = cmin; + axis = i; + sign = csign; + } + if (cmax < max) { + max = cmax; + } + if (max < min) { + return false; + } + } + + Vector2 rel = p_to - p_from; + + if (r_normal) { + Vector2 normal; + normal[axis] = sign; + *r_normal = normal; + } + + if (r_pos) { + *r_pos = p_from + rel * min; + } + + return true; +} + +bool Rect2::intersects_transformed(const Transform2D &p_xform, const Rect2 &p_rect) const { +#ifdef MATH_CHECKS + if (unlikely(size.x < 0 || size.y < 0 || p_rect.size.x < 0 || p_rect.size.y < 0)) { + ERR_PRINT("Rect2 size is negative, this is not supported. Use Rect2.abs() to get a Rect2 with a positive size."); + } +#endif + //SAT intersection between local and transformed rect2 + + Vector2 xf_points[4] = { + p_xform.xform(p_rect.position), + p_xform.xform(Vector2(p_rect.position.x + p_rect.size.x, p_rect.position.y)), + p_xform.xform(Vector2(p_rect.position.x, p_rect.position.y + p_rect.size.y)), + p_xform.xform(Vector2(p_rect.position.x + p_rect.size.x, p_rect.position.y + p_rect.size.y)), + }; + + real_t low_limit; + + //base rect2 first (faster) + + if (xf_points[0].y > position.y) { + goto next1; + } + if (xf_points[1].y > position.y) { + goto next1; + } + if (xf_points[2].y > position.y) { + goto next1; + } + if (xf_points[3].y > position.y) { + goto next1; + } + + return false; + +next1: + + low_limit = position.y + size.y; + + if (xf_points[0].y < low_limit) { + goto next2; + } + if (xf_points[1].y < low_limit) { + goto next2; + } + if (xf_points[2].y < low_limit) { + goto next2; + } + if (xf_points[3].y < low_limit) { + goto next2; + } + + return false; + +next2: + + if (xf_points[0].x > position.x) { + goto next3; + } + if (xf_points[1].x > position.x) { + goto next3; + } + if (xf_points[2].x > position.x) { + goto next3; + } + if (xf_points[3].x > position.x) { + goto next3; + } + + return false; + +next3: + + low_limit = position.x + size.x; + + if (xf_points[0].x < low_limit) { + goto next4; + } + if (xf_points[1].x < low_limit) { + goto next4; + } + if (xf_points[2].x < low_limit) { + goto next4; + } + if (xf_points[3].x < low_limit) { + goto next4; + } + + return false; + +next4: + + Vector2 xf_points2[4] = { + position, + Vector2(position.x + size.x, position.y), + Vector2(position.x, position.y + size.y), + Vector2(position.x + size.x, position.y + size.y), + }; + + real_t maxa = p_xform.columns[0].dot(xf_points2[0]); + real_t mina = maxa; + + real_t dp = p_xform.columns[0].dot(xf_points2[1]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + dp = p_xform.columns[0].dot(xf_points2[2]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + dp = p_xform.columns[0].dot(xf_points2[3]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + real_t maxb = p_xform.columns[0].dot(xf_points[0]); + real_t minb = maxb; + + dp = p_xform.columns[0].dot(xf_points[1]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + dp = p_xform.columns[0].dot(xf_points[2]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + dp = p_xform.columns[0].dot(xf_points[3]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + if (mina > maxb) { + return false; + } + if (minb > maxa) { + return false; + } + + maxa = p_xform.columns[1].dot(xf_points2[0]); + mina = maxa; + + dp = p_xform.columns[1].dot(xf_points2[1]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + dp = p_xform.columns[1].dot(xf_points2[2]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + dp = p_xform.columns[1].dot(xf_points2[3]); + maxa = Math::max(dp, maxa); + mina = Math::min(dp, mina); + + maxb = p_xform.columns[1].dot(xf_points[0]); + minb = maxb; + + dp = p_xform.columns[1].dot(xf_points[1]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + dp = p_xform.columns[1].dot(xf_points[2]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + dp = p_xform.columns[1].dot(xf_points[3]); + maxb = Math::max(dp, maxb); + minb = Math::min(dp, minb); + + if (mina > maxb) { + return false; + } + if (minb > maxa) { + return false; + } + + return true; +} + +Rect2::operator String() const { + return "[P: " + position.operator String() + ", S: " + size + "]"; +} + +Rect2::operator Rect2i() const { + return Rect2i(position, size); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/rect2i.cpp b/lib/godot-cpp/src/variant/rect2i.cpp new file mode 100644 index 0000000..3ea7147 --- /dev/null +++ b/lib/godot-cpp/src/variant/rect2i.cpp @@ -0,0 +1,46 @@ +/**************************************************************************/ +/* rect2i.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +Rect2i::operator String() const { + return "[P: " + position.operator String() + ", S: " + size + "]"; +} + +Rect2i::operator Rect2() const { + return Rect2(position, size); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/transform2d.cpp b/lib/godot-cpp/src/variant/transform2d.cpp new file mode 100644 index 0000000..530a99e --- /dev/null +++ b/lib/godot-cpp/src/variant/transform2d.cpp @@ -0,0 +1,323 @@ +/**************************************************************************/ +/* transform2d.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include + +namespace godot { + +void Transform2D::invert() { + // FIXME: this function assumes the basis is a rotation matrix, with no scaling. + // Transform2D::affine_inverse can handle matrices with scaling, so GDScript should eventually use that. + SWAP(columns[0][1], columns[1][0]); + columns[2] = basis_xform(-columns[2]); +} + +Transform2D Transform2D::inverse() const { + Transform2D inv = *this; + inv.invert(); + return inv; +} + +void Transform2D::affine_invert() { + real_t det = basis_determinant(); +#ifdef MATH_CHECKS + ERR_FAIL_COND(det == 0); +#endif + real_t idet = 1.0f / det; + + SWAP(columns[0][0], columns[1][1]); + columns[0] *= Vector2(idet, -idet); + columns[1] *= Vector2(-idet, idet); + + columns[2] = basis_xform(-columns[2]); +} + +Transform2D Transform2D::affine_inverse() const { + Transform2D inv = *this; + inv.affine_invert(); + return inv; +} + +void Transform2D::rotate(const real_t p_angle) { + *this = Transform2D(p_angle, Vector2()) * (*this); +} + +real_t Transform2D::get_skew() const { + real_t det = basis_determinant(); + return Math::acos(columns[0].normalized().dot(SIGN(det) * columns[1].normalized())) - (real_t)Math_PI * 0.5f; +} + +void Transform2D::set_skew(const real_t p_angle) { + real_t det = basis_determinant(); + columns[1] = SIGN(det) * columns[0].rotated(((real_t)Math_PI * 0.5f + p_angle)).normalized() * columns[1].length(); +} + +real_t Transform2D::get_rotation() const { + return Math::atan2(columns[0].y, columns[0].x); +} + +void Transform2D::set_rotation(const real_t p_rot) { + Size2 scale = get_scale(); + real_t cr = Math::cos(p_rot); + real_t sr = Math::sin(p_rot); + columns[0][0] = cr; + columns[0][1] = sr; + columns[1][0] = -sr; + columns[1][1] = cr; + set_scale(scale); +} + +Transform2D::Transform2D(const real_t p_rot, const Vector2 &p_pos) { + real_t cr = Math::cos(p_rot); + real_t sr = Math::sin(p_rot); + columns[0][0] = cr; + columns[0][1] = sr; + columns[1][0] = -sr; + columns[1][1] = cr; + columns[2] = p_pos; +} + +Transform2D::Transform2D(const real_t p_rot, const Size2 &p_scale, const real_t p_skew, const Vector2 &p_pos) { + columns[0][0] = Math::cos(p_rot) * p_scale.x; + columns[1][1] = Math::cos(p_rot + p_skew) * p_scale.y; + columns[1][0] = -Math::sin(p_rot + p_skew) * p_scale.y; + columns[0][1] = Math::sin(p_rot) * p_scale.x; + columns[2] = p_pos; +} + +Size2 Transform2D::get_scale() const { + real_t det_sign = Math::sign(basis_determinant()); + return Size2(columns[0].length(), det_sign * columns[1].length()); +} + +void Transform2D::set_scale(const Size2 &p_scale) { + columns[0].normalize(); + columns[1].normalize(); + columns[0] *= p_scale.x; + columns[1] *= p_scale.y; +} + +void Transform2D::scale(const Size2 &p_scale) { + scale_basis(p_scale); + columns[2] *= p_scale; +} + +void Transform2D::scale_basis(const Size2 &p_scale) { + columns[0][0] *= p_scale.x; + columns[0][1] *= p_scale.y; + columns[1][0] *= p_scale.x; + columns[1][1] *= p_scale.y; +} + +void Transform2D::translate_local(const real_t p_tx, const real_t p_ty) { + translate_local(Vector2(p_tx, p_ty)); +} + +void Transform2D::translate_local(const Vector2 &p_translation) { + columns[2] += basis_xform(p_translation); +} + +void Transform2D::orthonormalize() { + // Gram-Schmidt Process + + Vector2 x = columns[0]; + Vector2 y = columns[1]; + + x.normalize(); + y = (y - x * (x.dot(y))); + y.normalize(); + + columns[0] = x; + columns[1] = y; +} + +Transform2D Transform2D::orthonormalized() const { + Transform2D on = *this; + on.orthonormalize(); + return on; +} + +bool Transform2D::is_equal_approx(const Transform2D &p_transform) const { + return columns[0].is_equal_approx(p_transform.columns[0]) && columns[1].is_equal_approx(p_transform.columns[1]) && columns[2].is_equal_approx(p_transform.columns[2]); +} + +Transform2D Transform2D::looking_at(const Vector2 &p_target) const { + Transform2D return_trans = Transform2D(get_rotation(), get_origin()); + Vector2 target_position = affine_inverse().xform(p_target); + return_trans.set_rotation(return_trans.get_rotation() + (target_position * get_scale()).angle()); + return return_trans; +} + +bool Transform2D::operator==(const Transform2D &p_transform) const { + for (int i = 0; i < 3; i++) { + if (columns[i] != p_transform.columns[i]) { + return false; + } + } + + return true; +} + +bool Transform2D::operator!=(const Transform2D &p_transform) const { + for (int i = 0; i < 3; i++) { + if (columns[i] != p_transform.columns[i]) { + return true; + } + } + + return false; +} + +void Transform2D::operator*=(const Transform2D &p_transform) { + columns[2] = xform(p_transform.columns[2]); + + real_t x0, x1, y0, y1; + + x0 = tdotx(p_transform.columns[0]); + x1 = tdoty(p_transform.columns[0]); + y0 = tdotx(p_transform.columns[1]); + y1 = tdoty(p_transform.columns[1]); + + columns[0][0] = x0; + columns[0][1] = x1; + columns[1][0] = y0; + columns[1][1] = y1; +} + +Transform2D Transform2D::operator*(const Transform2D &p_transform) const { + Transform2D t = *this; + t *= p_transform; + return t; +} + +Transform2D Transform2D::basis_scaled(const Size2 &p_scale) const { + Transform2D copy = *this; + copy.scale_basis(p_scale); + return copy; +} + +Transform2D Transform2D::scaled(const Size2 &p_scale) const { + // Equivalent to left multiplication + Transform2D copy = *this; + copy.scale(p_scale); + return copy; +} + +Transform2D Transform2D::scaled_local(const Size2 &p_scale) const { + // Equivalent to right multiplication + return Transform2D(columns[0] * p_scale.x, columns[1] * p_scale.y, columns[2]); +} + +Transform2D Transform2D::untranslated() const { + Transform2D copy = *this; + copy.columns[2] = Vector2(); + return copy; +} + +Transform2D Transform2D::translated(const Vector2 &p_offset) const { + // Equivalent to left multiplication + return Transform2D(columns[0], columns[1], columns[2] + p_offset); +} + +Transform2D Transform2D::translated_local(const Vector2 &p_offset) const { + // Equivalent to right multiplication + return Transform2D(columns[0], columns[1], columns[2] + basis_xform(p_offset)); +} + +Transform2D Transform2D::rotated(const real_t p_angle) const { + // Equivalent to left multiplication + return Transform2D(p_angle, Vector2()) * (*this); +} + +Transform2D Transform2D::rotated_local(const real_t p_angle) const { + // Equivalent to right multiplication + return (*this) * Transform2D(p_angle, Vector2()); // Could be optimized, because origin transform can be skipped. +} + +real_t Transform2D::basis_determinant() const { + return columns[0].x * columns[1].y - columns[0].y * columns[1].x; +} + +Transform2D Transform2D::interpolate_with(const Transform2D &p_transform, const real_t p_c) const { + //extract parameters + Vector2 p1 = get_origin(); + Vector2 p2 = p_transform.get_origin(); + + real_t r1 = get_rotation(); + real_t r2 = p_transform.get_rotation(); + + Size2 s1 = get_scale(); + Size2 s2 = p_transform.get_scale(); + + //slerp rotation + Vector2 v1(Math::cos(r1), Math::sin(r1)); + Vector2 v2(Math::cos(r2), Math::sin(r2)); + + real_t dot = v1.dot(v2); + + dot = Math::clamp(dot, (real_t)-1.0, (real_t)1.0); + + Vector2 v; + + if (dot > 0.9995f) { + v = v1.lerp(v2, p_c).normalized(); //linearly interpolate to avoid numerical precision issues + } else { + real_t angle = p_c * Math::acos(dot); + Vector2 v3 = (v2 - v1 * dot).normalized(); + v = v1 * Math::cos(angle) + v3 * Math::sin(angle); + } + + //construct matrix + Transform2D res(v.angle(), p1.lerp(p2, p_c)); + res.scale_basis(s1.lerp(s2, p_c)); + return res; +} + +void Transform2D::operator*=(const real_t p_val) { + columns[0] *= p_val; + columns[1] *= p_val; + columns[2] *= p_val; +} + +Transform2D Transform2D::operator*(const real_t p_val) const { + Transform2D ret(*this); + ret *= p_val; + return ret; +} + +Transform2D::operator String() const { + return "[X: " + columns[0].operator String() + + ", Y: " + columns[1].operator String() + + ", O: " + columns[2].operator String() + "]"; +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/transform3d.cpp b/lib/godot-cpp/src/variant/transform3d.cpp new file mode 100644 index 0000000..1a4189e --- /dev/null +++ b/lib/godot-cpp/src/variant/transform3d.cpp @@ -0,0 +1,232 @@ +/**************************************************************************/ +/* transform3d.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include + +namespace godot { + +void Transform3D::affine_invert() { + basis.invert(); + origin = basis.xform(-origin); +} + +Transform3D Transform3D::affine_inverse() const { + Transform3D ret = *this; + ret.affine_invert(); + return ret; +} + +void Transform3D::invert() { + basis.transpose(); + origin = basis.xform(-origin); +} + +Transform3D Transform3D::inverse() const { + // FIXME: this function assumes the basis is a rotation matrix, with no scaling. + // Transform3D::affine_inverse can handle matrices with scaling, so GDScript should eventually use that. + Transform3D ret = *this; + ret.invert(); + return ret; +} + +void Transform3D::rotate(const Vector3 &p_axis, real_t p_angle) { + *this = rotated(p_axis, p_angle); +} + +Transform3D Transform3D::rotated(const Vector3 &p_axis, real_t p_angle) const { + // Equivalent to left multiplication + Basis p_basis(p_axis, p_angle); + return Transform3D(p_basis * basis, p_basis.xform(origin)); +} + +Transform3D Transform3D::rotated_local(const Vector3 &p_axis, real_t p_angle) const { + // Equivalent to right multiplication + Basis p_basis(p_axis, p_angle); + return Transform3D(basis * p_basis, origin); +} + +void Transform3D::rotate_basis(const Vector3 &p_axis, real_t p_angle) { + basis.rotate(p_axis, p_angle); +} + +Transform3D Transform3D::looking_at(const Vector3 &p_target, const Vector3 &p_up) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(origin.is_equal_approx(p_target), Transform3D(), "The transform's origin and target can't be equal."); +#endif + Transform3D t = *this; + t.basis = Basis::looking_at(p_target - origin, p_up); + return t; +} + +void Transform3D::set_look_at(const Vector3 &p_eye, const Vector3 &p_target, const Vector3 &p_up) { +#ifdef MATH_CHECKS + ERR_FAIL_COND_MSG(p_eye.is_equal_approx(p_target), "The eye and target vectors can't be equal."); +#endif + basis = Basis::looking_at(p_target - p_eye, p_up); + origin = p_eye; +} + +Transform3D Transform3D::interpolate_with(const Transform3D &p_transform, real_t p_c) const { + Transform3D interp; + + Vector3 src_scale = basis.get_scale(); + Quaternion src_rot = basis.get_rotation_quaternion(); + Vector3 src_loc = origin; + + Vector3 dst_scale = p_transform.basis.get_scale(); + Quaternion dst_rot = p_transform.basis.get_rotation_quaternion(); + Vector3 dst_loc = p_transform.origin; + + interp.basis.set_quaternion_scale(src_rot.slerp(dst_rot, p_c).normalized(), src_scale.lerp(dst_scale, p_c)); + interp.origin = src_loc.lerp(dst_loc, p_c); + + return interp; +} + +void Transform3D::scale(const Vector3 &p_scale) { + basis.scale(p_scale); + origin *= p_scale; +} + +Transform3D Transform3D::scaled(const Vector3 &p_scale) const { + // Equivalent to left multiplication + return Transform3D(basis.scaled(p_scale), origin * p_scale); +} + +Transform3D Transform3D::scaled_local(const Vector3 &p_scale) const { + // Equivalent to right multiplication + return Transform3D(basis.scaled_local(p_scale), origin); +} + +void Transform3D::scale_basis(const Vector3 &p_scale) { + basis.scale(p_scale); +} + +void Transform3D::translate_local(real_t p_tx, real_t p_ty, real_t p_tz) { + translate_local(Vector3(p_tx, p_ty, p_tz)); +} + +void Transform3D::translate_local(const Vector3 &p_translation) { + for (int i = 0; i < 3; i++) { + origin[i] += basis[i].dot(p_translation); + } +} + +Transform3D Transform3D::translated(const Vector3 &p_translation) const { + // Equivalent to left multiplication + return Transform3D(basis, origin + p_translation); +} + +Transform3D Transform3D::translated_local(const Vector3 &p_translation) const { + // Equivalent to right multiplication + return Transform3D(basis, origin + basis.xform(p_translation)); +} + +void Transform3D::orthonormalize() { + basis.orthonormalize(); +} + +Transform3D Transform3D::orthonormalized() const { + Transform3D _copy = *this; + _copy.orthonormalize(); + return _copy; +} + +void Transform3D::orthogonalize() { + basis.orthogonalize(); +} + +Transform3D Transform3D::orthogonalized() const { + Transform3D _copy = *this; + _copy.orthogonalize(); + return _copy; +} + +bool Transform3D::is_equal_approx(const Transform3D &p_transform) const { + return basis.is_equal_approx(p_transform.basis) && origin.is_equal_approx(p_transform.origin); +} + +bool Transform3D::operator==(const Transform3D &p_transform) const { + return (basis == p_transform.basis && origin == p_transform.origin); +} + +bool Transform3D::operator!=(const Transform3D &p_transform) const { + return (basis != p_transform.basis || origin != p_transform.origin); +} + +void Transform3D::operator*=(const Transform3D &p_transform) { + origin = xform(p_transform.origin); + basis *= p_transform.basis; +} + +Transform3D Transform3D::operator*(const Transform3D &p_transform) const { + Transform3D t = *this; + t *= p_transform; + return t; +} + +void Transform3D::operator*=(const real_t p_val) { + origin *= p_val; + basis *= p_val; +} + +Transform3D Transform3D::operator*(const real_t p_val) const { + Transform3D ret(*this); + ret *= p_val; + return ret; +} + +Transform3D::operator String() const { + return "[X: " + basis.get_column(0).operator String() + + ", Y: " + basis.get_column(1).operator String() + + ", Z: " + basis.get_column(2).operator String() + + ", O: " + origin.operator String() + "]"; +} + +Transform3D::Transform3D(const Basis &p_basis, const Vector3 &p_origin) : + basis(p_basis), + origin(p_origin) { +} + +Transform3D::Transform3D(const Vector3 &p_x, const Vector3 &p_y, const Vector3 &p_z, const Vector3 &p_origin) : + origin(p_origin) { + basis.set_column(0, p_x); + basis.set_column(1, p_y); + basis.set_column(2, p_z); +} + +Transform3D::Transform3D(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz, real_t ox, real_t oy, real_t oz) { + basis = Basis(xx, xy, xz, yx, yy, yz, zx, zy, zz); + origin = Vector3(ox, oy, oz); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/variant.cpp b/lib/godot-cpp/src/variant/variant.cpp new file mode 100644 index 0000000..1627367 --- /dev/null +++ b/lib/godot-cpp/src/variant/variant.cpp @@ -0,0 +1,783 @@ +/**************************************************************************/ +/* variant.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include + +#include +#include + +#include + +namespace godot { + +GDExtensionVariantFromTypeConstructorFunc Variant::from_type_constructor[Variant::VARIANT_MAX]{}; +GDExtensionTypeFromVariantConstructorFunc Variant::to_type_constructor[Variant::VARIANT_MAX]{}; + +void Variant::init_bindings() { + // Start from 1 to skip NIL. + for (int i = 1; i < VARIANT_MAX; i++) { + from_type_constructor[i] = internal::gde_interface->get_variant_from_type_constructor((GDExtensionVariantType)i); + to_type_constructor[i] = internal::gde_interface->get_variant_to_type_constructor((GDExtensionVariantType)i); + } + + StringName::init_bindings(); + String::init_bindings(); + NodePath::init_bindings(); + RID::init_bindings(); + Callable::init_bindings(); + Signal::init_bindings(); + Dictionary::init_bindings(); + Array::init_bindings(); + PackedByteArray::init_bindings(); + PackedInt32Array::init_bindings(); + PackedInt64Array::init_bindings(); + PackedFloat32Array::init_bindings(); + PackedFloat64Array::init_bindings(); + PackedStringArray::init_bindings(); + PackedVector2Array::init_bindings(); + PackedVector3Array::init_bindings(); + PackedColorArray::init_bindings(); +} + +Variant::Variant() { + internal::gde_interface->variant_new_nil(_native_ptr()); +} + +Variant::Variant(GDExtensionConstVariantPtr native_ptr) { + internal::gde_interface->variant_new_copy(_native_ptr(), native_ptr); +} + +Variant::Variant(const Variant &other) { + internal::gde_interface->variant_new_copy(_native_ptr(), other._native_ptr()); +} + +Variant::Variant(Variant &&other) { + std::swap(opaque, other.opaque); +} + +Variant::Variant(bool v) { + GDExtensionBool encoded; + PtrToArg::encode(v, &encoded); + from_type_constructor[BOOL](_native_ptr(), &encoded); +} + +Variant::Variant(int64_t v) { + GDExtensionInt encoded; + PtrToArg::encode(v, &encoded); + from_type_constructor[INT](_native_ptr(), &encoded); +} + +Variant::Variant(double v) { + double encoded; + PtrToArg::encode(v, &encoded); + from_type_constructor[FLOAT](_native_ptr(), &encoded); +} + +Variant::Variant(const String &v) { + from_type_constructor[STRING](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const Vector2 &v) { + from_type_constructor[VECTOR2](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Vector2i &v) { + from_type_constructor[VECTOR2I](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Rect2 &v) { + from_type_constructor[RECT2](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Rect2i &v) { + from_type_constructor[RECT2I](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Vector3 &v) { + from_type_constructor[VECTOR3](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Vector3i &v) { + from_type_constructor[VECTOR3I](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Transform2D &v) { + from_type_constructor[TRANSFORM2D](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Vector4 &v) { + from_type_constructor[VECTOR4](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Vector4i &v) { + from_type_constructor[VECTOR4I](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Plane &v) { + from_type_constructor[PLANE](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Quaternion &v) { + from_type_constructor[QUATERNION](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const godot::AABB &v) { + from_type_constructor[AABB](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Basis &v) { + from_type_constructor[BASIS](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Transform3D &v) { + from_type_constructor[TRANSFORM3D](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Projection &v) { + from_type_constructor[PROJECTION](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const Color &v) { + from_type_constructor[COLOR](_native_ptr(), (GDExtensionTypePtr)&v); +} + +Variant::Variant(const StringName &v) { + from_type_constructor[STRING_NAME](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const NodePath &v) { + from_type_constructor[NODE_PATH](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const godot::RID &v) { + from_type_constructor[RID](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const Object *v) { + if (v) { + from_type_constructor[OBJECT](_native_ptr(), const_cast(&v->_owner)); + } else { + GodotObject *nullobject = nullptr; + from_type_constructor[OBJECT](_native_ptr(), &nullobject); + } +} + +Variant::Variant(const ObjectID &p_id) : + Variant(p_id.operator uint64_t()) { +} + +Variant::Variant(const Callable &v) { + from_type_constructor[CALLABLE](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const Signal &v) { + from_type_constructor[SIGNAL](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const Dictionary &v) { + from_type_constructor[DICTIONARY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const Array &v) { + from_type_constructor[ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedByteArray &v) { + from_type_constructor[PACKED_BYTE_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedInt32Array &v) { + from_type_constructor[PACKED_INT32_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedInt64Array &v) { + from_type_constructor[PACKED_INT64_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedFloat32Array &v) { + from_type_constructor[PACKED_FLOAT32_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedFloat64Array &v) { + from_type_constructor[PACKED_FLOAT64_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedStringArray &v) { + from_type_constructor[PACKED_STRING_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedVector2Array &v) { + from_type_constructor[PACKED_VECTOR2_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedVector3Array &v) { + from_type_constructor[PACKED_VECTOR3_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::Variant(const PackedColorArray &v) { + from_type_constructor[PACKED_COLOR_ARRAY](_native_ptr(), v._native_ptr()); +} + +Variant::~Variant() { + internal::gde_interface->variant_destroy(_native_ptr()); +} + +Variant::operator bool() const { + GDExtensionBool result; + to_type_constructor[BOOL](&result, _native_ptr()); + return PtrToArg::convert(&result); +} + +Variant::operator int64_t() const { + GDExtensionInt result; + to_type_constructor[INT](&result, _native_ptr()); + return PtrToArg::convert(&result); +} + +Variant::operator int32_t() const { + return static_cast(operator int64_t()); +} + +Variant::operator uint64_t() const { + return static_cast(operator int64_t()); +} + +Variant::operator uint32_t() const { + return static_cast(operator int64_t()); +} + +Variant::operator double() const { + double result; + to_type_constructor[FLOAT](&result, _native_ptr()); + return PtrToArg::convert(&result); +} + +Variant::operator float() const { + return static_cast(operator double()); +} + +Variant::operator String() const { + String result; + to_type_constructor[STRING](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator Vector2() const { + Vector2 result; + to_type_constructor[VECTOR2]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Vector2i() const { + Vector2i result; + to_type_constructor[VECTOR2I]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Rect2() const { + Rect2 result; + to_type_constructor[RECT2]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Rect2i() const { + Rect2i result; + to_type_constructor[RECT2I]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Vector3() const { + Vector3 result; + to_type_constructor[VECTOR3]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Vector3i() const { + Vector3i result; + to_type_constructor[VECTOR3I]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Transform2D() const { + Transform2D result; + to_type_constructor[TRANSFORM2D]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Vector4() const { + Vector4 result; + to_type_constructor[VECTOR4]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Vector4i() const { + Vector4i result; + to_type_constructor[VECTOR4I]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Plane() const { + Plane result; + to_type_constructor[PLANE]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Quaternion() const { + Quaternion result; + to_type_constructor[QUATERNION]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator godot::AABB() const { + godot::AABB result; + to_type_constructor[AABB]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Basis() const { + Basis result; + to_type_constructor[BASIS]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Transform3D() const { + Transform3D result; + to_type_constructor[TRANSFORM3D]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Projection() const { + Projection result; + to_type_constructor[PROJECTION]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator Color() const { + Color result; + to_type_constructor[COLOR]((GDExtensionTypePtr)&result, _native_ptr()); + return result; +} + +Variant::operator StringName() const { + StringName result; + to_type_constructor[STRING_NAME](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator NodePath() const { + NodePath result; + to_type_constructor[NODE_PATH](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator godot::RID() const { + godot::RID result; + to_type_constructor[RID](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator Object *() const { + GodotObject *obj; + to_type_constructor[OBJECT](&obj, _native_ptr()); + if (obj == nullptr) { + return nullptr; + } + return reinterpret_cast(internal::gde_interface->object_get_instance_binding(obj, internal::token, &Object::___binding_callbacks)); +} + +Variant::operator ObjectID() const { + if (get_type() == Type::INT) { + return ObjectID(operator uint64_t()); + } else if (get_type() == Type::OBJECT) { + Object *obj = operator Object *(); + if (obj != nullptr) { + return ObjectID(obj->get_instance_id()); + } else { + return ObjectID(); + } + } else { + return ObjectID(); + } +} + +Variant::operator Callable() const { + Callable result; + to_type_constructor[CALLABLE](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator Signal() const { + Signal result; + to_type_constructor[SIGNAL](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator Dictionary() const { + Dictionary result; + to_type_constructor[DICTIONARY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator Array() const { + Array result; + to_type_constructor[ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedByteArray() const { + PackedByteArray result; + to_type_constructor[PACKED_BYTE_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedInt32Array() const { + PackedInt32Array result; + to_type_constructor[PACKED_INT32_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedInt64Array() const { + PackedInt64Array result; + to_type_constructor[PACKED_INT64_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedFloat32Array() const { + PackedFloat32Array result; + to_type_constructor[PACKED_FLOAT32_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedFloat64Array() const { + PackedFloat64Array result; + to_type_constructor[PACKED_FLOAT64_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedStringArray() const { + PackedStringArray result; + to_type_constructor[PACKED_STRING_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedVector2Array() const { + PackedVector2Array result; + to_type_constructor[PACKED_VECTOR2_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedVector3Array() const { + PackedVector3Array result; + to_type_constructor[PACKED_VECTOR3_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant::operator PackedColorArray() const { + PackedColorArray result; + to_type_constructor[PACKED_COLOR_ARRAY](result._native_ptr(), _native_ptr()); + return result; +} + +Variant &Variant::operator=(const Variant &other) { + clear(); + internal::gde_interface->variant_new_copy(_native_ptr(), other._native_ptr()); + return *this; +} + +Variant &Variant::operator=(Variant &&other) { + std::swap(opaque, other.opaque); + return *this; +} + +bool Variant::operator==(const Variant &other) const { + if (get_type() != other.get_type()) { + return false; + } + bool valid = false; + Variant result; + evaluate(OP_EQUAL, *this, other, result, valid); + return result.operator bool(); +} + +bool Variant::operator!=(const Variant &other) const { + if (get_type() != other.get_type()) { + return true; + } + bool valid = false; + Variant result; + evaluate(OP_NOT_EQUAL, *this, other, result, valid); + return result.operator bool(); +} + +bool Variant::operator<(const Variant &other) const { + if (get_type() != other.get_type()) { + return get_type() < other.get_type(); + } + bool valid = false; + Variant result; + evaluate(OP_LESS, *this, other, result, valid); + return result.operator bool(); +} + +void Variant::call(const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error) { + internal::gde_interface->variant_call(_native_ptr(), method._native_ptr(), reinterpret_cast(args), argcount, r_ret._native_ptr(), &r_error); +} + +void Variant::call_static(Variant::Type type, const StringName &method, const Variant **args, int argcount, Variant &r_ret, GDExtensionCallError &r_error) { + internal::gde_interface->variant_call_static(static_cast(type), method._native_ptr(), reinterpret_cast(args), argcount, r_ret._native_ptr(), &r_error); +} + +void Variant::evaluate(const Operator &op, const Variant &a, const Variant &b, Variant &r_ret, bool &r_valid) { + GDExtensionBool valid; + internal::gde_interface->variant_evaluate(static_cast(op), a._native_ptr(), b._native_ptr(), r_ret._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); +} + +void Variant::set(const Variant &key, const Variant &value, bool *r_valid) { + GDExtensionBool valid; + internal::gde_interface->variant_set(_native_ptr(), key._native_ptr(), value._native_ptr(), &valid); + if (r_valid) { + *r_valid = PtrToArg::convert(&valid); + } +} + +void Variant::set_named(const StringName &name, const Variant &value, bool &r_valid) { + GDExtensionBool valid; + internal::gde_interface->variant_set_named(_native_ptr(), name._native_ptr(), value._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); +} + +void Variant::set_indexed(int64_t index, const Variant &value, bool &r_valid, bool &r_oob) { + GDExtensionBool valid, oob; + internal::gde_interface->variant_set_indexed(_native_ptr(), index, value._native_ptr(), &valid, &oob); + r_valid = PtrToArg::convert(&valid); + r_oob = PtrToArg::convert(&oob); +} + +void Variant::set_keyed(const Variant &key, const Variant &value, bool &r_valid) { + GDExtensionBool valid; + internal::gde_interface->variant_set_keyed(_native_ptr(), key._native_ptr(), value._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); +} + +Variant Variant::get(const Variant &key, bool *r_valid) const { + Variant result; + GDExtensionBool valid; + internal::gde_interface->variant_get(_native_ptr(), key._native_ptr(), result._native_ptr(), &valid); + if (r_valid) { + *r_valid = PtrToArg::convert(&valid); + } + return result; +} + +Variant Variant::get_named(const StringName &name, bool &r_valid) const { + Variant result; + GDExtensionBool valid; + internal::gde_interface->variant_get_named(_native_ptr(), name._native_ptr(), result._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); + return result; +} + +Variant Variant::get_indexed(int64_t index, bool &r_valid, bool &r_oob) const { + Variant result; + GDExtensionBool valid; + GDExtensionBool oob; + internal::gde_interface->variant_get_indexed(_native_ptr(), index, result._native_ptr(), &valid, &oob); + r_valid = PtrToArg::convert(&valid); + r_oob = PtrToArg::convert(&oob); + return result; +} + +Variant Variant::get_keyed(const Variant &key, bool &r_valid) const { + Variant result; + GDExtensionBool valid; + internal::gde_interface->variant_get_keyed(_native_ptr(), key._native_ptr(), result._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); + return result; +} + +bool Variant::in(const Variant &index, bool *r_valid) const { + Variant result; + bool valid; + evaluate(OP_IN, *this, index, result, valid); + if (r_valid) { + *r_valid = valid; + } + return result.operator bool(); +} + +bool Variant::iter_init(Variant &r_iter, bool &r_valid) const { + GDExtensionBool valid; + internal::gde_interface->variant_iter_init(_native_ptr(), r_iter._native_ptr(), &valid); + return PtrToArg::convert(&valid); +} + +bool Variant::iter_next(Variant &r_iter, bool &r_valid) const { + GDExtensionBool valid; + internal::gde_interface->variant_iter_next(_native_ptr(), r_iter._native_ptr(), &valid); + return PtrToArg::convert(&valid); +} + +Variant Variant::iter_get(const Variant &r_iter, bool &r_valid) const { + Variant result; + GDExtensionBool valid; + internal::gde_interface->variant_iter_get(_native_ptr(), r_iter._native_ptr(), result._native_ptr(), &valid); + r_valid = PtrToArg::convert(&valid); + return result; +} + +Variant::Type Variant::get_type() const { + return static_cast(internal::gde_interface->variant_get_type(_native_ptr())); +} + +bool Variant::has_method(const StringName &method) const { + GDExtensionBool has = internal::gde_interface->variant_has_method(_native_ptr(), method._native_ptr()); + return PtrToArg::convert(&has); +} + +bool Variant::has_key(const Variant &key, bool *r_valid) const { + GDExtensionBool valid; + GDExtensionBool has = internal::gde_interface->variant_has_key(_native_ptr(), key._native_ptr(), &valid); + if (r_valid) { + *r_valid = PtrToArg::convert(&valid); + } + return PtrToArg::convert(&has); +} + +bool Variant::has_member(Variant::Type type, const StringName &member) { + GDExtensionBool has = internal::gde_interface->variant_has_member(static_cast(type), member._native_ptr()); + return PtrToArg::convert(&has); +} + +uint32_t Variant::hash() const { + GDExtensionInt hash = internal::gde_interface->variant_hash(_native_ptr()); + return PtrToArg::convert(&hash); +} + +uint32_t Variant::recursive_hash(int recursion_count) const { + GDExtensionInt hash = internal::gde_interface->variant_recursive_hash(_native_ptr(), recursion_count); + return PtrToArg::convert(&hash); +} + +bool Variant::hash_compare(const Variant &variant) const { + GDExtensionBool compare = internal::gde_interface->variant_hash_compare(_native_ptr(), variant._native_ptr()); + return PtrToArg::convert(&compare); +} + +bool Variant::booleanize() const { + GDExtensionBool booleanized = internal::gde_interface->variant_booleanize(_native_ptr()); + return PtrToArg::convert(&booleanized); +} + +String Variant::stringify() const { + String result; + internal::gde_interface->variant_stringify(_native_ptr(), result._native_ptr()); + return result; +} + +Variant Variant::duplicate(bool deep) const { + Variant result; + GDExtensionBool _deep; + PtrToArg::encode(deep, &_deep); + internal::gde_interface->variant_duplicate(_native_ptr(), result._native_ptr(), _deep); + return result; +} + +String Variant::get_type_name(Variant::Type type) { + String result; + internal::gde_interface->variant_get_type_name(static_cast(type), result._native_ptr()); + return result; +} + +bool Variant::can_convert(Variant::Type from, Variant::Type to) { + GDExtensionBool can = internal::gde_interface->variant_can_convert(static_cast(from), static_cast(to)); + return PtrToArg::convert(&can); +} + +bool Variant::can_convert_strict(Variant::Type from, Variant::Type to) { + GDExtensionBool can = internal::gde_interface->variant_can_convert_strict(static_cast(from), static_cast(to)); + return PtrToArg::convert(&can); +} + +void Variant::clear() { + static const bool needs_deinit[Variant::VARIANT_MAX] = { + false, // NIL, + false, // BOOL, + false, // INT, + false, // FLOAT, + true, // STRING, + false, // VECTOR2, + false, // VECTOR2I, + false, // RECT2, + false, // RECT2I, + false, // VECTOR3, + false, // VECTOR3I, + true, // TRANSFORM2D, + false, // VECTOR4, + false, // VECTOR4I, + false, // PLANE, + false, // QUATERNION, + true, // AABB, + true, // BASIS, + true, // TRANSFORM3D, + true, // PROJECTION, + + // misc types + false, // COLOR, + true, // STRING_NAME, + true, // NODE_PATH, + false, // RID, + true, // OBJECT, + true, // CALLABLE, + true, // SIGNAL, + true, // DICTIONARY, + true, // ARRAY, + + // typed arrays + true, // PACKED_BYTE_ARRAY, + true, // PACKED_INT32_ARRAY, + true, // PACKED_INT64_ARRAY, + true, // PACKED_FLOAT32_ARRAY, + true, // PACKED_FLOAT64_ARRAY, + true, // PACKED_STRING_ARRAY, + true, // PACKED_VECTOR2_ARRAY, + true, // PACKED_VECTOR3_ARRAY, + true, // PACKED_COLOR_ARRAY, + }; + + if (unlikely(needs_deinit[get_type()])) { // Make it fast for types that don't need deinit. + internal::gde_interface->variant_destroy(_native_ptr()); + } + internal::gde_interface->variant_new_nil(_native_ptr()); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector2.cpp b/lib/godot-cpp/src/variant/vector2.cpp new file mode 100644 index 0000000..df87080 --- /dev/null +++ b/lib/godot-cpp/src/variant/vector2.cpp @@ -0,0 +1,199 @@ +/**************************************************************************/ +/* vector2.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +real_t Vector2::angle() const { + return Math::atan2(y, x); +} + +Vector2 Vector2::from_angle(const real_t p_angle) { + return Vector2(Math::cos(p_angle), Math::sin(p_angle)); +} + +real_t Vector2::length() const { + return Math::sqrt(x * x + y * y); +} + +real_t Vector2::length_squared() const { + return x * x + y * y; +} + +void Vector2::normalize() { + real_t l = x * x + y * y; + if (l != 0) { + l = Math::sqrt(l); + x /= l; + y /= l; + } +} + +Vector2 Vector2::normalized() const { + Vector2 v = *this; + v.normalize(); + return v; +} + +bool Vector2::is_normalized() const { + // use length_squared() instead of length() to avoid sqrt(), makes it more stringent. + return Math::is_equal_approx(length_squared(), 1, (real_t)UNIT_EPSILON); +} + +real_t Vector2::distance_to(const Vector2 &p_vector2) const { + return Math::sqrt((x - p_vector2.x) * (x - p_vector2.x) + (y - p_vector2.y) * (y - p_vector2.y)); +} + +real_t Vector2::distance_squared_to(const Vector2 &p_vector2) const { + return (x - p_vector2.x) * (x - p_vector2.x) + (y - p_vector2.y) * (y - p_vector2.y); +} + +real_t Vector2::angle_to(const Vector2 &p_vector2) const { + return Math::atan2(cross(p_vector2), dot(p_vector2)); +} + +real_t Vector2::angle_to_point(const Vector2 &p_vector2) const { + return (p_vector2 - *this).angle(); +} + +real_t Vector2::dot(const Vector2 &p_other) const { + return x * p_other.x + y * p_other.y; +} + +real_t Vector2::cross(const Vector2 &p_other) const { + return x * p_other.y - y * p_other.x; +} + +Vector2 Vector2::sign() const { + return Vector2(SIGN(x), SIGN(y)); +} + +Vector2 Vector2::floor() const { + return Vector2(Math::floor(x), Math::floor(y)); +} + +Vector2 Vector2::ceil() const { + return Vector2(Math::ceil(x), Math::ceil(y)); +} + +Vector2 Vector2::round() const { + return Vector2(Math::round(x), Math::round(y)); +} + +Vector2 Vector2::rotated(const real_t p_by) const { + real_t sine = Math::sin(p_by); + real_t cosi = Math::cos(p_by); + return Vector2( + x * cosi - y * sine, + x * sine + y * cosi); +} + +Vector2 Vector2::posmod(const real_t p_mod) const { + return Vector2(Math::fposmod(x, p_mod), Math::fposmod(y, p_mod)); +} + +Vector2 Vector2::posmodv(const Vector2 &p_modv) const { + return Vector2(Math::fposmod(x, p_modv.x), Math::fposmod(y, p_modv.y)); +} + +Vector2 Vector2::project(const Vector2 &p_to) const { + return p_to * (dot(p_to) / p_to.length_squared()); +} + +Vector2 Vector2::clamp(const Vector2 &p_min, const Vector2 &p_max) const { + return Vector2( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y)); +} + +Vector2 Vector2::snapped(const Vector2 &p_step) const { + return Vector2( + Math::snapped(x, p_step.x), + Math::snapped(y, p_step.y)); +} + +Vector2 Vector2::limit_length(const real_t p_len) const { + const real_t l = length(); + Vector2 v = *this; + if (l > 0 && p_len < l) { + v /= l; + v *= p_len; + } + + return v; +} + +Vector2 Vector2::move_toward(const Vector2 &p_to, const real_t p_delta) const { + Vector2 v = *this; + Vector2 vd = p_to - v; + real_t len = vd.length(); + return len <= p_delta || len < (real_t)CMP_EPSILON ? p_to : v + vd / len * p_delta; +} + +// slide returns the component of the vector along the given plane, specified by its normal vector. +Vector2 Vector2::slide(const Vector2 &p_normal) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector2(), "The normal Vector2 must be normalized."); +#endif + return *this - p_normal * this->dot(p_normal); +} + +Vector2 Vector2::bounce(const Vector2 &p_normal) const { + return -reflect(p_normal); +} + +Vector2 Vector2::reflect(const Vector2 &p_normal) const { +#ifdef MATH_CHECKS + ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector2(), "The normal Vector2 must be normalized."); +#endif + return 2.0f * p_normal * this->dot(p_normal) - *this; +} + +bool Vector2::is_equal_approx(const Vector2 &p_v) const { + return Math::is_equal_approx(x, p_v.x) && Math::is_equal_approx(y, p_v.y); +} + +bool Vector2::is_zero_approx() const { + return Math::is_zero_approx(x) && Math::is_zero_approx(y); +} + +Vector2::operator String() const { + return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ")"; +} + +Vector2::operator Vector2i() const { + return Vector2i(x, y); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector2i.cpp b/lib/godot-cpp/src/variant/vector2i.cpp new file mode 100644 index 0000000..226a061 --- /dev/null +++ b/lib/godot-cpp/src/variant/vector2i.cpp @@ -0,0 +1,129 @@ +/**************************************************************************/ +/* vector2i.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +Vector2i Vector2i::clamp(const Vector2i &p_min, const Vector2i &p_max) const { + return Vector2i( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y)); +} + +int64_t Vector2i::length_squared() const { + return x * (int64_t)x + y * (int64_t)y; +} + +double Vector2i::length() const { + return Math::sqrt((double)length_squared()); +} + +Vector2i Vector2i::operator+(const Vector2i &p_v) const { + return Vector2i(x + p_v.x, y + p_v.y); +} + +void Vector2i::operator+=(const Vector2i &p_v) { + x += p_v.x; + y += p_v.y; +} + +Vector2i Vector2i::operator-(const Vector2i &p_v) const { + return Vector2i(x - p_v.x, y - p_v.y); +} + +void Vector2i::operator-=(const Vector2i &p_v) { + x -= p_v.x; + y -= p_v.y; +} + +Vector2i Vector2i::operator*(const Vector2i &p_v1) const { + return Vector2i(x * p_v1.x, y * p_v1.y); +} + +Vector2i Vector2i::operator*(const int32_t &rvalue) const { + return Vector2i(x * rvalue, y * rvalue); +} + +void Vector2i::operator*=(const int32_t &rvalue) { + x *= rvalue; + y *= rvalue; +} + +Vector2i Vector2i::operator/(const Vector2i &p_v1) const { + return Vector2i(x / p_v1.x, y / p_v1.y); +} + +Vector2i Vector2i::operator/(const int32_t &rvalue) const { + return Vector2i(x / rvalue, y / rvalue); +} + +void Vector2i::operator/=(const int32_t &rvalue) { + x /= rvalue; + y /= rvalue; +} + +Vector2i Vector2i::operator%(const Vector2i &p_v1) const { + return Vector2i(x % p_v1.x, y % p_v1.y); +} + +Vector2i Vector2i::operator%(const int32_t &rvalue) const { + return Vector2i(x % rvalue, y % rvalue); +} + +void Vector2i::operator%=(const int32_t &rvalue) { + x %= rvalue; + y %= rvalue; +} + +Vector2i Vector2i::operator-() const { + return Vector2i(-x, -y); +} + +bool Vector2i::operator==(const Vector2i &p_vec2) const { + return x == p_vec2.x && y == p_vec2.y; +} + +bool Vector2i::operator!=(const Vector2i &p_vec2) const { + return x != p_vec2.x || y != p_vec2.y; +} + +Vector2i::operator String() const { + return "(" + itos(x) + ", " + itos(y) + ")"; +} + +Vector2i::operator Vector2() const { + return Vector2((int32_t)x, (int32_t)y); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector3.cpp b/lib/godot-cpp/src/variant/vector3.cpp new file mode 100644 index 0000000..6153658 --- /dev/null +++ b/lib/godot-cpp/src/variant/vector3.cpp @@ -0,0 +1,152 @@ +/**************************************************************************/ +/* vector3.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include +#include +#include + +namespace godot { + +void Vector3::rotate(const Vector3 &p_axis, const real_t p_angle) { + *this = Basis(p_axis, p_angle).xform(*this); +} + +Vector3 Vector3::rotated(const Vector3 &p_axis, const real_t p_angle) const { + Vector3 r = *this; + r.rotate(p_axis, p_angle); + return r; +} + +Vector3 Vector3::clamp(const Vector3 &p_min, const Vector3 &p_max) const { + return Vector3( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y), + CLAMP(z, p_min.z, p_max.z)); +} + +void Vector3::snap(const Vector3 p_step) { + x = Math::snapped(x, p_step.x); + y = Math::snapped(y, p_step.y); + z = Math::snapped(z, p_step.z); +} + +Vector3 Vector3::snapped(const Vector3 p_step) const { + Vector3 v = *this; + v.snap(p_step); + return v; +} + +Vector3 Vector3::limit_length(const real_t p_len) const { + const real_t l = length(); + Vector3 v = *this; + if (l > 0 && p_len < l) { + v /= l; + v *= p_len; + } + + return v; +} + +Vector3 Vector3::move_toward(const Vector3 &p_to, const real_t p_delta) const { + Vector3 v = *this; + Vector3 vd = p_to - v; + real_t len = vd.length(); + return len <= p_delta || len < (real_t)CMP_EPSILON ? p_to : v + vd / len * p_delta; +} + +Vector2 Vector3::octahedron_encode() const { + Vector3 n = *this; + n /= Math::abs(n.x) + Math::abs(n.y) + Math::abs(n.z); + Vector2 o; + if (n.z >= 0.0f) { + o.x = n.x; + o.y = n.y; + } else { + o.x = (1.0f - Math::abs(n.y)) * (n.x >= 0.0f ? 1.0f : -1.0f); + o.y = (1.0f - Math::abs(n.x)) * (n.y >= 0.0f ? 1.0f : -1.0f); + } + o.x = o.x * 0.5f + 0.5f; + o.y = o.y * 0.5f + 0.5f; + return o; +} + +Vector3 Vector3::octahedron_decode(const Vector2 &p_oct) { + Vector2 f(p_oct.x * 2.0f - 1.0f, p_oct.y * 2.0f - 1.0f); + Vector3 n(f.x, f.y, 1.0f - Math::abs(f.x) - Math::abs(f.y)); + float t = CLAMP(-n.z, 0.0f, 1.0f); + n.x += n.x >= 0 ? -t : t; + n.y += n.y >= 0 ? -t : t; + return n.normalized(); +} + +Vector2 Vector3::octahedron_tangent_encode(const float sign) const { + Vector2 res = this->octahedron_encode(); + res.y = res.y * 0.5f + 0.5f; + res.y = sign >= 0.0f ? res.y : 1 - res.y; + return res; +} + +Vector3 Vector3::octahedron_tangent_decode(const Vector2 &p_oct, float *sign) { + Vector2 oct_compressed = p_oct; + oct_compressed.y = oct_compressed.y * 2 - 1; + *sign = oct_compressed.y >= 0.0f ? 1.0f : -1.0f; + oct_compressed.y = Math::abs(oct_compressed.y); + Vector3 res = Vector3::octahedron_decode(oct_compressed); + return res; +} + +Basis Vector3::outer(const Vector3 &p_with) const { + Basis basis; + basis.rows[0] = Vector3(x * p_with.x, x * p_with.y, x * p_with.z); + basis.rows[1] = Vector3(y * p_with.x, y * p_with.y, y * p_with.z); + basis.rows[2] = Vector3(z * p_with.x, z * p_with.y, z * p_with.z); + return basis; +} + +bool Vector3::is_equal_approx(const Vector3 &p_v) const { + return Math::is_equal_approx(x, p_v.x) && Math::is_equal_approx(y, p_v.y) && Math::is_equal_approx(z, p_v.z); +} + +bool Vector3::is_zero_approx() const { + return Math::is_zero_approx(x) && Math::is_zero_approx(y) && Math::is_zero_approx(z); +} + +Vector3::operator String() const { + return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ")"; +} + +Vector3::operator Vector3i() const { + return Vector3i(x, y, z); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector3i.cpp b/lib/godot-cpp/src/variant/vector3i.cpp new file mode 100644 index 0000000..eef05b8 --- /dev/null +++ b/lib/godot-cpp/src/variant/vector3i.cpp @@ -0,0 +1,61 @@ +/**************************************************************************/ +/* vector3i.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +Vector3i::Axis Vector3i::min_axis_index() const { + return x < y ? (x < z ? Vector3i::AXIS_X : Vector3i::AXIS_Z) : (y < z ? Vector3i::AXIS_Y : Vector3i::AXIS_Z); +} + +Vector3i::Axis Vector3i::max_axis_index() const { + return x < y ? (y < z ? Vector3i::AXIS_Z : Vector3i::AXIS_Y) : (x < z ? Vector3i::AXIS_Z : Vector3i::AXIS_X); +} + +Vector3i Vector3i::clamp(const Vector3i &p_min, const Vector3i &p_max) const { + return Vector3i( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y), + CLAMP(z, p_min.z, p_max.z)); +} + +Vector3i::operator String() const { + return "(" + itos(x) + ", " + itos(y) + ", " + itos(z) + ")"; +} + +Vector3i::operator Vector3() const { + return Vector3(x, y, z); +} + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector4.cpp b/lib/godot-cpp/src/variant/vector4.cpp new file mode 100644 index 0000000..72c79d1 --- /dev/null +++ b/lib/godot-cpp/src/variant/vector4.cpp @@ -0,0 +1,196 @@ +/**************************************************************************/ +/* vector4.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +Vector4::Axis Vector4::min_axis_index() const { + uint32_t min_index = 0; + real_t min_value = x; + for (uint32_t i = 1; i < 4; i++) { + if (operator[](i) <= min_value) { + min_index = i; + min_value = operator[](i); + } + } + return Vector4::Axis(min_index); +} + +Vector4::Axis Vector4::max_axis_index() const { + uint32_t max_index = 0; + real_t max_value = x; + for (uint32_t i = 1; i < 4; i++) { + if (operator[](i) > max_value) { + max_index = i; + max_value = operator[](i); + } + } + return Vector4::Axis(max_index); +} + +bool Vector4::is_equal_approx(const Vector4 &p_vec4) const { + return Math::is_equal_approx(x, p_vec4.x) && Math::is_equal_approx(y, p_vec4.y) && Math::is_equal_approx(z, p_vec4.z) && Math::is_equal_approx(w, p_vec4.w); +} + +bool Vector4::is_zero_approx() const { + return Math::is_zero_approx(x) && Math::is_zero_approx(y) && Math::is_zero_approx(z) && Math::is_zero_approx(w); +} + +real_t Vector4::length() const { + return Math::sqrt(length_squared()); +} + +void Vector4::normalize() { + real_t lengthsq = length_squared(); + if (lengthsq == 0) { + x = y = z = w = 0; + } else { + real_t length = Math::sqrt(lengthsq); + x /= length; + y /= length; + z /= length; + w /= length; + } +} + +Vector4 Vector4::normalized() const { + Vector4 v = *this; + v.normalize(); + return v; +} + +bool Vector4::is_normalized() const { + return Math::is_equal_approx(length_squared(), (real_t)1, (real_t)UNIT_EPSILON); +} + +real_t Vector4::distance_to(const Vector4 &p_to) const { + return (p_to - *this).length(); +} + +real_t Vector4::distance_squared_to(const Vector4 &p_to) const { + return (p_to - *this).length_squared(); +} + +Vector4 Vector4::direction_to(const Vector4 &p_to) const { + Vector4 ret(p_to.x - x, p_to.y - y, p_to.z - z, p_to.w - w); + ret.normalize(); + return ret; +} + +Vector4 Vector4::abs() const { + return Vector4(Math::abs(x), Math::abs(y), Math::abs(z), Math::abs(w)); +} + +Vector4 Vector4::sign() const { + return Vector4(Math::sign(x), Math::sign(y), Math::sign(z), Math::sign(w)); +} + +Vector4 Vector4::floor() const { + return Vector4(Math::floor(x), Math::floor(y), Math::floor(z), Math::floor(w)); +} + +Vector4 Vector4::ceil() const { + return Vector4(Math::ceil(x), Math::ceil(y), Math::ceil(z), Math::ceil(w)); +} + +Vector4 Vector4::round() const { + return Vector4(Math::round(x), Math::round(y), Math::round(z), Math::round(w)); +} + +Vector4 Vector4::lerp(const Vector4 &p_to, const real_t p_weight) const { + return Vector4( + x + (p_weight * (p_to.x - x)), + y + (p_weight * (p_to.y - y)), + z + (p_weight * (p_to.z - z)), + w + (p_weight * (p_to.w - w))); +} + +Vector4 Vector4::cubic_interpolate(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight) const { + Vector4 res = *this; + res.x = Math::cubic_interpolate(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight); + res.y = Math::cubic_interpolate(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight); + res.z = Math::cubic_interpolate(res.z, p_b.z, p_pre_a.z, p_post_b.z, p_weight); + res.w = Math::cubic_interpolate(res.w, p_b.w, p_pre_a.w, p_post_b.w, p_weight); + return res; +} + +Vector4 Vector4::cubic_interpolate_in_time(const Vector4 &p_b, const Vector4 &p_pre_a, const Vector4 &p_post_b, const real_t p_weight, const real_t &p_b_t, const real_t &p_pre_a_t, const real_t &p_post_b_t) const { + Vector4 res = *this; + res.x = Math::cubic_interpolate_in_time(res.x, p_b.x, p_pre_a.x, p_post_b.x, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.y = Math::cubic_interpolate_in_time(res.y, p_b.y, p_pre_a.y, p_post_b.y, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.z = Math::cubic_interpolate_in_time(res.z, p_b.z, p_pre_a.z, p_post_b.z, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + res.w = Math::cubic_interpolate_in_time(res.w, p_b.w, p_pre_a.w, p_post_b.w, p_weight, p_b_t, p_pre_a_t, p_post_b_t); + return res; +} + +Vector4 Vector4::posmod(const real_t p_mod) const { + return Vector4(Math::fposmod(x, p_mod), Math::fposmod(y, p_mod), Math::fposmod(z, p_mod), Math::fposmod(w, p_mod)); +} + +Vector4 Vector4::posmodv(const Vector4 &p_modv) const { + return Vector4(Math::fposmod(x, p_modv.x), Math::fposmod(y, p_modv.y), Math::fposmod(z, p_modv.z), Math::fposmod(w, p_modv.w)); +} + +void Vector4::snap(const Vector4 &p_step) { + x = Math::snapped(x, p_step.x); + y = Math::snapped(y, p_step.y); + z = Math::snapped(z, p_step.z); + w = Math::snapped(w, p_step.w); +} + +Vector4 Vector4::snapped(const Vector4 &p_step) const { + Vector4 v = *this; + v.snap(p_step); + return v; +} + +Vector4 Vector4::inverse() const { + return Vector4(1.0f / x, 1.0f / y, 1.0f / z, 1.0f / w); +} + +Vector4 Vector4::clamp(const Vector4 &p_min, const Vector4 &p_max) const { + return Vector4( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y), + CLAMP(z, p_min.z, p_max.z), + CLAMP(w, p_min.w, p_max.w)); +} + +Vector4::operator String() const { + return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ", " + String::num_real(w, false) + ")"; +} + +static_assert(sizeof(Vector4) == 4 * sizeof(real_t)); + +} // namespace godot diff --git a/lib/godot-cpp/src/variant/vector4i.cpp b/lib/godot-cpp/src/variant/vector4i.cpp new file mode 100644 index 0000000..f1817dc --- /dev/null +++ b/lib/godot-cpp/src/variant/vector4i.cpp @@ -0,0 +1,87 @@ +/**************************************************************************/ +/* vector4i.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include + +#include +#include + +namespace godot { + +Vector4i::Axis Vector4i::min_axis_index() const { + uint32_t min_index = 0; + int32_t min_value = x; + for (uint32_t i = 1; i < 4; i++) { + if (operator[](i) <= min_value) { + min_index = i; + min_value = operator[](i); + } + } + return Vector4i::Axis(min_index); +} + +Vector4i::Axis Vector4i::max_axis_index() const { + uint32_t max_index = 0; + int32_t max_value = x; + for (uint32_t i = 1; i < 4; i++) { + if (operator[](i) > max_value) { + max_index = i; + max_value = operator[](i); + } + } + return Vector4i::Axis(max_index); +} + +Vector4i Vector4i::clamp(const Vector4i &p_min, const Vector4i &p_max) const { + return Vector4i( + CLAMP(x, p_min.x, p_max.x), + CLAMP(y, p_min.y, p_max.y), + CLAMP(z, p_min.z, p_max.z), + CLAMP(w, p_min.w, p_max.w)); +} + +Vector4i::operator String() const { + return "(" + itos(x) + ", " + itos(y) + ", " + itos(z) + ", " + itos(w) + ")"; +} + +Vector4i::operator Vector4() const { + return Vector4(x, y, z, w); +} + +Vector4i::Vector4i(const Vector4 &p_vec4) { + x = (int32_t)p_vec4.x; + y = (int32_t)p_vec4.y; + z = (int32_t)p_vec4.z; + w = (int32_t)p_vec4.w; +} + +static_assert(sizeof(Vector4i) == 4 * sizeof(int32_t)); + +} // namespace godot diff --git a/lib/godot-cpp/test/.gitignore b/lib/godot-cpp/test/.gitignore new file mode 100644 index 0000000..c6d8394 --- /dev/null +++ b/lib/godot-cpp/test/.gitignore @@ -0,0 +1,25 @@ +# Generated directories with binaries +build +bin + +# Godot 4+ specific ignores +.godot/ + +# Godot-specific ignores +.import/ +export.cfg +export_presets.cfg +# Dummy HTML5 export presets file for continuous integration +!.github/dist/export_presets.cfg + +# Imported translations (automatically generated from CSV files) +*.translation + +# Mono-specific ignores +.mono/ +data_*/ +mono_crash.*.json + +# System/tool-specific ignores +.directory +*~ diff --git a/lib/godot-cpp/test/CMakeLists.txt b/lib/godot-cpp/test/CMakeLists.txt new file mode 100644 index 0000000..0538c5d --- /dev/null +++ b/lib/godot-cpp/test/CMakeLists.txt @@ -0,0 +1,150 @@ +project(godot-cpp-test) +cmake_minimum_required(VERSION 3.6) + +set(GODOT_GDEXTENSION_DIR ../gdextension/ CACHE STRING "Path to GDExtension interface header directory") +set(CPP_BINDINGS_PATH ../ CACHE STRING "Path to C++ bindings") + +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(TARGET_PATH x11) +elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") + set(TARGET_PATH win64) +elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set(TARGET_PATH macos) +else() + message(FATAL_ERROR "Not implemented support for ${CMAKE_SYSTEM_NAME}") +endif() + +# Change the output directory to the bin directory +set(BUILD_PATH ${CMAKE_SOURCE_DIR}/bin/${TARGET_PATH}) +set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${BUILD_PATH}") +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${BUILD_PATH}") +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${BUILD_PATH}") +SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${BUILD_PATH}") +SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${BUILD_PATH}") +SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${BUILD_PATH}") +SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${BUILD_PATH}") +SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${BUILD_PATH}") +SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${BUILD_PATH}") + +# Set the c++ standard to c++17 +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +set(GODOT_COMPILE_FLAGS ) +set(GODOT_LINKER_FLAGS ) + +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") + # using Visual Studio C++ + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /EHsc /WX") # /GF /MP + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /DTYPED_METHOD_BIND") + + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /MDd") # /Od /RTC1 /Zi + else() + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /MD /O2") # /Oy /GL /Gy + STRING(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) + endif(CMAKE_BUILD_TYPE MATCHES Debug) + + # Disable conversion warning, truncation, unreferenced var, signed mismatch + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} /wd4244 /wd4305 /wd4101 /wd4018 /wd4267") + + add_definitions(-DNOMINMAX) + + # Unkomment for warning level 4 + #if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") + # string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + #endif() + +else() + +#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # using Clang +#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + # using GCC and maybe MinGW? + + set(GODOT_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,-R,'$$ORIGIN'") + + # Hmm.. maybe to strikt? + set(GODOT_COMPILE_FLAGS "-fPIC -g -Wwrite-strings") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wchar-subscripts -Wcomment -Wdisabled-optimization") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wformat -Wformat=2 -Wformat-security -Wformat-y2k") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wimport -Winit-self -Winline -Winvalid-pch -Werror") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wmissing-braces -Wmissing-format-attribute") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wpointer-arith") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wredundant-decls -Wreturn-type -Wsequence-point") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wswitch -Wswitch-enum -Wtrigraphs") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused-label") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wunused-value -Wvariadic-macros -Wvolatile-register-var -Wno-error=attributes") + + # -Wshadow -Wextra -Wall -Weffc++ -Wfloat-equal -Wstack-protector -Wunused-parameter -Wsign-compare -Wunused-variable -Wcast-align + # -Wunused-function -Wstrict-aliasing -Wstrict-aliasing=2 -Wmissing-field-initializers + + if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android") + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -Wno-ignored-attributes") + endif() + + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0") + else() + set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -O3") + endif(CMAKE_BUILD_TYPE MATCHES Debug) +endif() + +# Get Sources +file(GLOB_RECURSE SOURCES src/*.c**) +file(GLOB_RECURSE HEADERS include/*.h**) + +# Define our godot-cpp library +add_library(${PROJECT_NAME} SHARED ${SOURCES} ${HEADERS}) + +target_include_directories(${PROJECT_NAME} SYSTEM + PRIVATE + ${CPP_BINDINGS_PATH}/include + ${CPP_BINDINGS_PATH}/gen/include + ${GODOT_GDEXTENSION_DIR} +) + +# Create the correct name (godot.os.build_type.system_bits) +# Synchronized with godot-cpp's CMakeLists.txt + +set(BITS 32) +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(BITS 64) +endif(CMAKE_SIZEOF_VOID_P EQUAL 8) + +if(CMAKE_BUILD_TYPE MATCHES Debug) + set(GODOT_CPP_BUILD_TYPE Debug) +else() + set(GODOT_CPP_BUILD_TYPE Release) +endif() + +string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME) +string(TOLOWER ${GODOT_CPP_BUILD_TYPE} BUILD_TYPE) + +if(ANDROID) + # Added the android abi after system name + set(SYSTEM_NAME ${SYSTEM_NAME}.${ANDROID_ABI}) +endif() + +if(CMAKE_VERSION VERSION_GREATER "3.13") + target_link_directories(${PROJECT_NAME} + PRIVATE + ${CPP_BINDINGS_PATH}/bin/ + ) + + target_link_libraries(${PROJECT_NAME} + godot-cpp.${SYSTEM_NAME}.${BUILD_TYPE}$<$>:.${BITS}> + ) +else() + target_link_libraries(${PROJECT_NAME} + ${CPP_BINDINGS_PATH}/bin/libgodot-cpp.${SYSTEM_NAME}.${BUILD_TYPE}$<$>:.${BITS}>.a + ) +endif() + +# Add the compile flags +set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS ${GODOT_COMPILE_FLAGS}) +set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS ${GODOT_LINKER_FLAGS}) + +set_property(TARGET ${PROJECT_NAME} PROPERTY OUTPUT_NAME "gdexample") diff --git a/lib/godot-cpp/test/README.md b/lib/godot-cpp/test/README.md new file mode 100644 index 0000000..ac8554b --- /dev/null +++ b/lib/godot-cpp/test/README.md @@ -0,0 +1,34 @@ +# godot-cpp example / integration test + +This project is used to perform integration testing of the godot-cpp +extension, to validate PRs and implemented APIs. + +It can also be used as a quick example of how to set up a godot-cpp +project, both on the C++ side and in the Godot project itself. + +## License + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/lib/godot-cpp/test/SConstruct b/lib/godot-cpp/test/SConstruct new file mode 100644 index 0000000..72527bb --- /dev/null +++ b/lib/godot-cpp/test/SConstruct @@ -0,0 +1,32 @@ +#!/usr/bin/env python +import os +import sys + +env = SConscript("../SConstruct") + +# For the reference: +# - CCFLAGS are compilation flags shared between C and C++ +# - CFLAGS are for C-specific compilation flags +# - CXXFLAGS are for C++-specific compilation flags +# - CPPFLAGS are for pre-processor flags +# - CPPDEFINES are for pre-processor defines +# - LINKFLAGS are for linking flags + +# tweak this if you want to use different folders, or more folders, to store your source code in. +env.Append(CPPPATH=["src/"]) +sources = Glob("src/*.cpp") + +if env["platform"] == "macos": + library = env.SharedLibrary( + "demo/bin/libgdexample.{}.{}.framework/libgdexample.{}.{}".format( + env["platform"], env["target"], env["platform"], env["target"] + ), + source=sources, + ) +else: + library = env.SharedLibrary( + "demo/bin/libgdexample{}{}".format(env["suffix"], env["SHLIBSUFFIX"]), + source=sources, + ) + +Default(library) diff --git a/lib/godot-cpp/test/demo/default_env.tres b/lib/godot-cpp/test/demo/default_env.tres new file mode 100644 index 0000000..770cd85 --- /dev/null +++ b/lib/godot-cpp/test/demo/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=3 uid="uid://dtd3q2x2ulcsi"] + +[sub_resource type="Sky" id="1"] + +[resource] +background_mode = 2 +sky = SubResource( "1" ) diff --git a/lib/godot-cpp/test/demo/example.gdextension b/lib/godot-cpp/test/demo/example.gdextension new file mode 100644 index 0000000..6d53405 --- /dev/null +++ b/lib/godot-cpp/test/demo/example.gdextension @@ -0,0 +1,22 @@ +[configuration] + +entry_symbol = "example_library_init" + +[libraries] + +macos.debug = "res://bin/libgdexample.macos.template_debug.framework" +macos.release = "res://bin/libgdexample.macos.template_release.framework" +windows.debug.x86_32 = "res://bin/libgdexample.windows.template_debug.x86_32.dll" +windows.release.x86_32 = "res://bin/libgdexample.windows.template_release.x86_32.dll" +windows.debug.x86_64 = "res://bin/libgdexample.windows.template_debug.x86_64.dll" +windows.release.x86_64 = "res://bin/libgdexample.windows.template_release.x86_64.dll" +linux.debug.x86_64 = "res://bin/libgdexample.linux.template_debug.x86_64.so" +linux.release.x86_64 = "res://bin/libgdexample.linux.template_release.x86_64.so" +linux.debug.arm64 = "res://bin/libgdexample.linux.template_debug.arm64.so" +linux.release.arm64 = "res://bin/libgdexample.linux.template_release.arm64.so" +linux.debug.rv64 = "res://bin/libgdexample.linux.template_debug.rv64.so" +linux.release.rv64 = "res://bin/libgdexample.linux.template_release.rv64.so" +android.debug.x86_64 = "res://bin/libgdexample.android.template_debug.x86_64.so" +android.release.x86_64 = "res://bin/libgdexample.android.template_release.x86_64.so" +android.debug.arm64 = "res://bin/libgdexample.android.template_debug.arm64.so" +android.release.arm64 = "res://bin/libgdexample.android.template_release.arm64.so" diff --git a/lib/godot-cpp/test/demo/icon.png b/lib/godot-cpp/test/demo/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c98fbb601c83c81ec8c22b1dba7d1d57c62b323c GIT binary patch literal 3305 zcmVNc=P)Px>qe(&U$es`gSqKCHF-lq>v1vga#%UF>TTrLR zW%{UNJKZi|Pj@Rc9GyPBD1CamMMf6SL~V^ag9~Vzut^L^0!Tv0LK0FTdnJ`x->EF(MZIP5kY*1-@^egP~7mH>({qi7{6 zQF;bN-XMq~+RzA8lI9AtJuz@PY*+{SP-Gbd@mZ(r*eE&`XO5!C>w#-pcmS28K^qzY zfTGCjor*I@ltgKb03nh#Fh$KpDL=o}gj-g4v6{}ZR1*mvXv?|gEA&Yr#r;Zw*d zUabIx8iHf+WoIO_c11Ba&!34XihSMF&C#YFDjU0)mmbXz3ex!D&t9UYp>;&R%(O(_ z*z^;&A84SWzKiQpqsdQ+Vs?rFS(f?R;c8xg_ft;Roec_~1KsVww}wzq5D}*5x6k|& zf~2A3@L4|ix|Q=L>rnmKE;B3UB=OMQxAK$Ce;LvDp?hwn-{Rn}Uo~U4IXTs4V%MQY zCWULcZFU0R%gbU;_Ef(A#76r1%|YWis0t`9$R{cyjFnsV(POrI)SGQi-l{mu{e?5R zepcp?AQ54D3g_mswd@RLn{z~;^Cl}>%j@}TWixL+audY``MmSV{-E(3R0Ws^U9%mk zmAond;N8k*{(f!}e^~d(i1Hq@jdv@XN2MLAl}3yaECf{nz5N3KMCjDCFzB_7)gkjj z>2Z={^e74l7u>P4oo1{Kc~sgFI`xP#f`uR}z_p~qLwws5)h)eLxAX=?+fB2_6kG)a zeE3U}YSi;Qc}gq*;kw|Tu5Oy{F)l`0;$$RA6)@d^I9>n9N^W1g0D!WJYJT&d@6p`W zfmWmD=^x$2@|)+=&@n(wn<-#M#zIY-iH42=UU>XI3i7l0^?#ILwb@CU63f5b_jeS| zn+d@CpB>^?Ti*1WuHSaRniWO-^Xl8!b+D0stAl$BQjr8G`KX-vGpCc0lEAKmjl6lN z5r?ddL)6hBi2|!`NM+@MRO*^qsi>~y`%4$%P+-S_M#8ibt8Pf;m7O23?cF^-X$52l zEV@3AM^`Q9vy(=)?W+gi)8lPCP&k!)Z(Bsa#m@S7j#1gzJx&pQ!yzlYvA==iExkN@ zTMnz!68Wg=9Ius~p?A=A>P(5$@#w1MG`6<$`Il8=(j0RI#KlIj>!qL4)MMjk|8*3* zbL8w!iwnbSb<*17eb=8TBt(Uv*Qz*e>>p9CRtapnJD-#&4Xd8ojIpD~Yk&6&7;_U` z|L{sgNzJAYPkIOsaN5{^*@Xva?HTkC9>DHY*!1B^L`lv1hgXhC$EO1BSh9fYXU*VG zpVwjRvs^m2ml?)B3xE2&j_YU5;Ep8=e75zefN3cSw04`>U3D&~3|AIJAJnEseqE*p>uF=1Cv$SfvI z!(+vnRMj+4vb)@8Tb~MW$}-RYemjyN^W@U3pfWj;cyehLk|6W*KkUFMkM3W9AE!Wb zTL-_}Udr6GXl}`!5;P_!3b*7=VQyM9zuR6)b6dxl?fo)@-u`$$Pu#bHB*W+#Gp!_Y z*ZdUbq#B3_QPbElK4*QE)$x+;qpGazKD1C!=jx=^ta=2+!&oRjmg4Jf{ z?T`J78TjoBD9Y&OtwFEhrIq<48uS2IEEbY8C$TVd5`X!kj*`Qd7RI`3elib!C*xb1 z(UIgPMzT12GEcpEly0*vU|ugqP(r~!E}l-JK~G&>9S_|9Aj@uD&azvVQ&RF4YZp!> zJ3hi|zlabu5u>=y+3^vqT{xAJlDCHFJ#hbn)Ya9IXwdWH;_1O)ef$at)k@qrEf%ZQ z%DU&)(a_KUxMpn2t6Mm@e?LVzaUT6LCWo=>;TzfYZ~+;U!#wJXa^g66-~d}*-Gas9 zGQt`f8d&$-daPC}H%^NkiV}?n<5oawj2=M{sHv&JXl(bWFDox6HP$o6KRY=Jl_;PR zMP?^QdD4vyrL3&XqugjTQd3idAPA(!=*P?c_!Z!e`f9aWuk~t4qQew;9IwMq>%w#92+*iNN#Qp zadB}J6)j=I#urf#czO3X!C*Z&LD5rfCLY^S$>ZP6}eFW#%-2L)+t{`cPyqLD6))yK1?m7F>6=?Y&8f)>3zbH1O)cT}QNtB4KL(A@1i zMzF88gDrb&hn~H`?o`-XUeDI@dXfwwboAS>*qvV6UMhkfzO~q$V+s%8loj4P(&9H= ze`sC`uI?L9L4e;YK&2A7XF)0}u1lh+%Z$S*Q{ORwtSHpAyWYpI>bqzU!p`gqlf$*l zO^*g(+T?Hq0n%ebkyIin(R#FM6&9;^6WJU5R)By&tZQ6PV zS^MWhqtcj}7)kON#>?4Gv(K#2=6mv)5;@W->l(1q*>9t&xfesIn$&3j4WxkffXaq0 zwwBkAD2vjoi4E8CK;cwoC3#wO!|}v-XOJ`obIo05{&DMQIRyHAd5@%-0xA%uA0UK2qng>xb(kvMzX)7t^ z);-|T`mgSsHKM$+a{!w|Mt5QLwD>sA+;u-+k%z_ZL?el$#&|kX?ygLfm zxZ^Fo^bOhx)w*6In?vS{Q|uk08cKRK}t+0ukQSCOyP$^HEC+zzX51M#=e-?*xHWMDRcLdIV41daHy{HimwDo z6!_O=*(}MK!YeyJpmgu(cF1tpEv}m;0s8{4z4HlHyMxDncn8zs!g+OXEk`CeEj}9N zq#Ag1$#jyV_5AjYQg*!mS->;`S^;iU)ih9D+eks)H2z`1RHny;F<^CEwk+}d^k^Ph zl);*XQ|ayL;rZWh=fA(G2#AJz1&r&as9I8S@9m3Owftrb5n*)pTluK^9LHOFIo{G2 zG}l$9R*{<+L2hCsOJ~Lt6Q-rRub*8X{*4{)e}>%=_&DxOFeq1LRia4Yyj*Tyynw>F zxkKf(MiaG0*L|V-^Zhtvg-(-|F0&1rU8bqab*n5TT8~C860O$|6Rt%P1=1(EjIQZ% z;Y^PU2VC*~^2!sG?mbBPS0~0yd-+086)+rHjhfk6>CB$t`o%;=kdYF9NwiKkwbIpN z;_FlOuHQHHSZ&@fUuSI-S*t`DjsiIB z{=1M@JKVC$a8z{2;xCPfRb{~T>uo#5rL4L+z9n`rSUt3Tt nAZ`TZm+q1gPVN84&*%Ra7her>#-hHS00000NkvXXu0mjf|6N@O literal 0 HcmV?d00001 diff --git a/lib/godot-cpp/test/demo/icon.png.import b/lib/godot-cpp/test/demo/icon.png.import new file mode 100644 index 0000000..36d7be2 --- /dev/null +++ b/lib/godot-cpp/test/demo/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cswr8vy4lt7dt" +path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/bptc_ldr=0 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/lib/godot-cpp/test/demo/main.gd b/lib/godot-cpp/test/demo/main.gd new file mode 100644 index 0000000..3858cc7 --- /dev/null +++ b/lib/godot-cpp/test/demo/main.gd @@ -0,0 +1,80 @@ +extends Node + +func _ready(): + # Bind signals + prints("Signal bind") + $Button.button_up.connect($Example.emit_custom_signal.bind("Button", 42)) + + prints("") + + # To string. + prints("To string") + prints(" Example --> ", $Example.to_string()) + prints(" ExampleMin --> ", $Example/ExampleMin.to_string()) + + # Call static methods. + prints("Static method calls") + prints(" static (109)", Example.test_static(9, 100)); + Example.test_static2(); + + # Property list. + prints("Property list") + $Example.property_from_list = Vector3(100, 200, 300) + prints(" property value ", $Example.property_from_list) + + # Call methods. + prints("Instance method calls") + $Example.simple_func() + ($Example as Example).simple_const_func() # Force use of ptrcall + prints(" returned", $Example.return_something("some string")) + prints(" returned const", $Example.return_something_const()) + var null_ref = $Example.return_empty_ref() + prints(" returned empty ref", null_ref) + var ret_ref = $Example.return_extended_ref() + prints(" returned ref", ret_ref.get_instance_id(), ", id:", ret_ref.get_id()) + prints(" returned ", $Example.get_v4()) + prints(" test node argument", $Example.test_node_argument($Example)) + + prints("VarArg method calls") + var ref = ExampleRef.new() + prints(" sending ref: ", ref.get_instance_id(), "returned ref: ", $Example.extended_ref_checks(ref).get_instance_id()) + prints(" vararg args", $Example.varargs_func("some", "arguments", "to", "test")) + prints(" vararg_nv ret", $Example.varargs_func_nv("some", "arguments", "to", "test")) + $Example.varargs_func_void("some", "arguments", "to", "test") + + prints("Method calls with default values") + prints(" defval (300)", $Example.def_args()) + prints(" defval (250)", $Example.def_args(50)) + prints(" defval (150)", $Example.def_args(50, 100)) + + prints("Array and Dictionary") + prints(" test array", $Example.test_array()) + prints(" test tarray", $Example.test_tarray()) + prints(" test dictionary", $Example.test_dictionary()) + var array: Array[int] = [1, 2, 3] + $Example.test_tarray_arg(array) + + prints("String += operator") + prints(" test string +=", $Example.test_string_ops()) + + prints("PackedArray iterators") + prints(" test packed array iterators", $Example.test_vector_ops()) + + prints("Properties") + prints(" custom position is", $Example.group_subgroup_custom_position) + $Example.group_subgroup_custom_position = Vector2(50, 50) + prints(" custom position now is", $Example.group_subgroup_custom_position) + + prints("Constants") + prints(" FIRST", $Example.FIRST) + prints(" ANSWER_TO_EVERYTHING", $Example.ANSWER_TO_EVERYTHING) + prints(" CONSTANT_WITHOUT_ENUM", $Example.CONSTANT_WITHOUT_ENUM) + + prints("BitFields") + prints(" FLAG_ONE", Example.FLAG_ONE) + prints(" FLAG_TWO", Example.FLAG_TWO) + prints(" returned BitField", $Example.test_bitfield(0)) + prints(" returned BitField", $Example.test_bitfield(Example.FLAG_ONE | Example.FLAG_TWO)) + +func _on_Example_custom_signal(signal_name, value): + prints("Example emitted:", signal_name, value) diff --git a/lib/godot-cpp/test/demo/main.tscn b/lib/godot-cpp/test/demo/main.tscn new file mode 100644 index 0000000..ab1b91e --- /dev/null +++ b/lib/godot-cpp/test/demo/main.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=2 format=3 uid="uid://dmx2xuigcpvt4"] + +[ext_resource type="Script" path="res://main.gd" id="1_c326s"] + +[node name="Node" type="Node"] +script = ExtResource("1_c326s") + +[node name="Example" type="Example" parent="."] + +[node name="ExampleMin" type="ExampleMin" parent="Example"] +layout_mode = 0 + +[node name="Label" type="Label" parent="Example"] +layout_mode = 0 +offset_left = 194.0 +offset_top = -2.0 +offset_right = 234.0 +offset_bottom = 21.0 + +[node name="Button" type="Button" parent="."] +offset_right = 79.0 +offset_bottom = 29.0 +text = "Click me!" + +[connection signal="custom_signal" from="Example" to="." method="_on_Example_custom_signal"] diff --git a/lib/godot-cpp/test/demo/project.godot b/lib/godot-cpp/test/demo/project.godot new file mode 100644 index 0000000..cd174d2 --- /dev/null +++ b/lib/godot-cpp/test/demo/project.godot @@ -0,0 +1,24 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="GDExtension Test Project" +run/main_scene="res://main.tscn" +config/features=PackedStringArray("4.0") +config/icon="res://icon.png" + +[native_extensions] + +paths=["res://example.gdextension"] + +[rendering] + +environment/defaults/default_environment="res://default_env.tres" diff --git a/lib/godot-cpp/test/src/example.cpp b/lib/godot-cpp/test/src/example.cpp new file mode 100644 index 0000000..a94175d --- /dev/null +++ b/lib/godot-cpp/test/src/example.cpp @@ -0,0 +1,337 @@ +/* godot-cpp integration testing project. + * + * This is free and unencumbered software released into the public domain. + */ + +#include "example.h" + +#include + +#include +#include +#include + +using namespace godot; + +int ExampleRef::instance_count = 0; +int ExampleRef::last_id = 0; + +int ExampleRef::get_id() const { + return id; +} + +void ExampleRef::_bind_methods() { + ClassDB::bind_method(D_METHOD("get_id"), &ExampleRef::get_id); +} + +ExampleRef::ExampleRef() { + id = ++last_id; + instance_count++; + + UtilityFunctions::print("ExampleRef ", itos(id), " created, current instance count: ", itos(instance_count)); +} + +ExampleRef::~ExampleRef() { + instance_count--; + UtilityFunctions::print("ExampleRef ", itos(id), " destroyed, current instance count: ", itos(instance_count)); +} + +int Example::test_static(int p_a, int p_b) { + return p_a + p_b; +} + +void Example::test_static2() { + UtilityFunctions::print(" void static"); +} + +int Example::def_args(int p_a, int p_b) { + return p_a + p_b; +} + +void Example::_notification(int p_what) { + UtilityFunctions::print("Notification: ", String::num(p_what)); +} + +bool Example::_set(const StringName &p_name, const Variant &p_value) { + String name = p_name; + if (name.begins_with("dproperty")) { + int64_t index = name.get_slicec('_', 1).to_int(); + dprop[index] = p_value; + return true; + } + if (name == "property_from_list") { + property_from_list = p_value; + return true; + } + return false; +} + +bool Example::_get(const StringName &p_name, Variant &r_ret) const { + String name = p_name; + if (name.begins_with("dproperty")) { + int64_t index = name.get_slicec('_', 1).to_int(); + r_ret = dprop[index]; + return true; + } + if (name == "property_from_list") { + r_ret = property_from_list; + return true; + } + return false; +} + +String Example::_to_string() const { + return "[ GDExtension::Example <--> Instance ID:" + uitos(get_instance_id()) + " ]"; +} + +void Example::_get_property_list(List *p_list) const { + p_list->push_back(PropertyInfo(Variant::VECTOR3, "property_from_list")); + for (int i = 0; i < 3; i++) { + p_list->push_back(PropertyInfo(Variant::VECTOR2, "dproperty_" + itos(i))); + } +} + +bool Example::_property_can_revert(const StringName &p_name) const { + if (p_name == StringName("property_from_list") && property_from_list != Vector3(42, 42, 42)) { + return true; + } else { + return false; + } +}; + +bool Example::_property_get_revert(const StringName &p_name, Variant &r_property) const { + if (p_name == StringName("property_from_list")) { + r_property = Vector3(42, 42, 42); + return true; + } else { + return false; + } +}; + +void Example::_bind_methods() { + // Methods. + ClassDB::bind_method(D_METHOD("simple_func"), &Example::simple_func); + ClassDB::bind_method(D_METHOD("simple_const_func"), &Example::simple_const_func); + ClassDB::bind_method(D_METHOD("return_something"), &Example::return_something); + ClassDB::bind_method(D_METHOD("return_something_const"), &Example::return_something_const); + ClassDB::bind_method(D_METHOD("return_empty_ref"), &Example::return_empty_ref); + ClassDB::bind_method(D_METHOD("return_extended_ref"), &Example::return_extended_ref); + ClassDB::bind_method(D_METHOD("extended_ref_checks", "ref"), &Example::extended_ref_checks); + + ClassDB::bind_method(D_METHOD("test_array"), &Example::test_array); + ClassDB::bind_method(D_METHOD("test_tarray_arg", "array"), &Example::test_tarray_arg); + ClassDB::bind_method(D_METHOD("test_tarray"), &Example::test_tarray); + ClassDB::bind_method(D_METHOD("test_dictionary"), &Example::test_dictionary); + ClassDB::bind_method(D_METHOD("test_node_argument"), &Example::test_node_argument); + ClassDB::bind_method(D_METHOD("test_string_ops"), &Example::test_string_ops); + ClassDB::bind_method(D_METHOD("test_vector_ops"), &Example::test_vector_ops); + + ClassDB::bind_method(D_METHOD("test_bitfield", "flags"), &Example::test_bitfield); + + ClassDB::bind_method(D_METHOD("def_args", "a", "b"), &Example::def_args, DEFVAL(100), DEFVAL(200)); + + ClassDB::bind_static_method("Example", D_METHOD("test_static", "a", "b"), &Example::test_static); + ClassDB::bind_static_method("Example", D_METHOD("test_static2"), &Example::test_static2); + + { + MethodInfo mi; + mi.arguments.push_back(PropertyInfo(Variant::STRING, "some_argument")); + mi.name = "varargs_func"; + ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "varargs_func", &Example::varargs_func, mi); + } + + { + MethodInfo mi; + mi.arguments.push_back(PropertyInfo(Variant::STRING, "some_argument")); + mi.name = "varargs_func_nv"; + ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "varargs_func_nv", &Example::varargs_func_nv, mi); + } + + { + MethodInfo mi; + mi.arguments.push_back(PropertyInfo(Variant::STRING, "some_argument")); + mi.name = "varargs_func_void"; + ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "varargs_func_void", &Example::varargs_func_void, mi); + } + + // Properties. + ADD_GROUP("Test group", "group_"); + ADD_SUBGROUP("Test subgroup", "group_subgroup_"); + + ClassDB::bind_method(D_METHOD("get_custom_position"), &Example::get_custom_position); + ClassDB::bind_method(D_METHOD("get_v4"), &Example::get_v4); + ClassDB::bind_method(D_METHOD("set_custom_position", "position"), &Example::set_custom_position); + ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "group_subgroup_custom_position"), "set_custom_position", "get_custom_position"); + + // Signals. + ADD_SIGNAL(MethodInfo("custom_signal", PropertyInfo(Variant::STRING, "name"), PropertyInfo(Variant::INT, "value"))); + ClassDB::bind_method(D_METHOD("emit_custom_signal", "name", "value"), &Example::emit_custom_signal); + + // Constants. + BIND_ENUM_CONSTANT(FIRST); + BIND_ENUM_CONSTANT(ANSWER_TO_EVERYTHING); + + BIND_BITFIELD_FLAG(FLAG_ONE); + BIND_BITFIELD_FLAG(FLAG_TWO); + + BIND_CONSTANT(CONSTANT_WITHOUT_ENUM); + BIND_ENUM_CONSTANT(OUTSIDE_OF_CLASS); +} + +Example::Example() { + UtilityFunctions::print("Constructor."); +} + +Example::~Example() { + UtilityFunctions::print("Destructor."); +} + +// Methods. +void Example::simple_func() { + UtilityFunctions::print(" Simple func called."); +} + +void Example::simple_const_func() const { + UtilityFunctions::print(" Simple const func called."); +} + +String Example::return_something(const String &base) { + UtilityFunctions::print(" Return something called."); + return base; +} + +Viewport *Example::return_something_const() const { + UtilityFunctions::print(" Return something const called."); + if (is_inside_tree()) { + Viewport *result = get_viewport(); + return result; + } + return nullptr; +} + +Ref Example::return_empty_ref() const { + Ref ref; + return ref; +} + +ExampleRef *Example::return_extended_ref() const { + // You can instance and return a refcounted object like this, but keep in mind that refcounting starts with the returned object + // and it will be destroyed when all references are destroyed. If you store this pointer you run the risk of having a pointer + // to a destroyed object. + return memnew(ExampleRef()); +} + +Example *Example::test_node_argument(Example *p_node) const { + UtilityFunctions::print(" Test node argument called with ", p_node ? String::num(p_node->get_instance_id()) : "null"); + return p_node; +} + +Ref Example::extended_ref_checks(Ref p_ref) const { + // This is therefor the prefered way of instancing and returning a refcounted object: + Ref ref; + ref.instantiate(); + + UtilityFunctions::print(" Example ref checks called with value: ", p_ref->get_instance_id(), ", returning value: ", ref->get_instance_id()); + return ref; +} + +Variant Example::varargs_func(const Variant **args, GDExtensionInt arg_count, GDExtensionCallError &error) { + UtilityFunctions::print(" Varargs (Variant return) called with ", String::num((double)arg_count), " arguments"); + return arg_count; +} + +int Example::varargs_func_nv(const Variant **args, GDExtensionInt arg_count, GDExtensionCallError &error) { + UtilityFunctions::print(" Varargs (int return) called with ", String::num((double)arg_count), " arguments"); + return 42; +} + +void Example::varargs_func_void(const Variant **args, GDExtensionInt arg_count, GDExtensionCallError &error) { + UtilityFunctions::print(" Varargs (no return) called with ", String::num((double)arg_count), " arguments"); +} + +void Example::emit_custom_signal(const String &name, int value) { + emit_signal("custom_signal", name, value); +} + +Array Example::test_array() const { + Array arr; + + arr.resize(2); + arr[0] = Variant(1); + arr[1] = Variant(2); + + return arr; +} + +String Example::test_string_ops() const { + String s = String("A"); + s += "B"; + s += "C"; + s += char32_t(0x010E); + s = s + "E"; + return s; +} + +int Example::test_vector_ops() const { + PackedInt32Array arr; + arr.push_back(10); + arr.push_back(20); + arr.push_back(30); + arr.push_back(45); + int ret = 0; + for (const int32_t &E : arr) { + ret += E; + } + return ret; +} + +void Example::test_tarray_arg(const TypedArray &p_array) { + for (int i = 0; i < p_array.size(); i++) { + UtilityFunctions::print(p_array[i]); + } +} + +TypedArray Example::test_tarray() const { + TypedArray arr; + + arr.resize(2); + arr[0] = Vector2(1, 2); + arr[1] = Vector2(2, 3); + + return arr; +} + +Dictionary Example::test_dictionary() const { + Dictionary dict; + + dict["hello"] = "world"; + dict["foo"] = "bar"; + + return dict; +} + +BitField Example::test_bitfield(BitField flags) { + UtilityFunctions::print(" Got BitField: ", String::num_int64(flags)); + return flags; +} + +// Properties. +void Example::set_custom_position(const Vector2 &pos) { + custom_position = pos; +} + +Vector2 Example::get_custom_position() const { + return custom_position; +} + +Vector4 Example::get_v4() const { + return Vector4(1.2, 3.4, 5.6, 7.8); +} + +// Virtual function override. +bool Example::_has_point(const Vector2 &point) const { + Label *label = get_node