godot/modules/gdscript
TechnoPorg 051ef479c9 Allow method binds to take Object subclasses as arguments
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object.
This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary.
A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-25 09:03:36 -07:00
..
doc_classes Enchance descriptions of @GlobalScope/@GDScript 2021-11-25 14:24:09 +03:00
editor Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
editor_templates Add a GDScript template for VisualShaderNodeCustom 2022-01-06 12:06:33 +03:00
icons Optimize SVG using svgcleaner --multipass 2020-10-25 10:02:37 +01:00
language_server Allow method binds to take Object subclasses as arguments 2022-01-25 09:03:36 -07:00
tests Fix multiple missing UTF-8 decoding. 2022-01-06 14:35:22 +02:00
config.py Unregister GDScriptFunctionState class 2020-11-26 21:39:54 -03:00
gdscript_analyzer.cpp Merge pull request #56194 from cdemirer/fix-operation-result-type-inference 2022-01-10 17:18:32 +01:00
gdscript_analyzer.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_byte_codegen.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_byte_codegen.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_cache.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_cache.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_codegen.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_compiler.cpp Assign member type when parsing setters to prevent 2022-01-11 11:23:17 +00:00
gdscript_compiler.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_disassembler.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_editor.cpp Merge pull request #56326 from NNesh/fix/unknown_default_value_callable 2022-01-10 21:29:13 +01:00
gdscript_function.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_function.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_lambda_callable.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_lambda_callable.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_parser.cpp Merge pull request #55715 from nathanfranke/enum-ordered 2022-01-10 17:19:52 +01:00
gdscript_parser.h Merge pull request #55715 from nathanfranke/enum-ordered 2022-01-10 17:19:52 +01:00
gdscript_tokenizer.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_tokenizer.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_utility_functions.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_utility_functions.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript_vm.cpp Merge pull request #56409 from cdemirer/fix-unexpected-copying-when-parameter-is-typed 2022-01-10 17:03:47 +01:00
gdscript_warning.cpp Merge pull request #56483 from vnen/gdscript-warning-annotation 2022-01-05 09:05:56 +01:00
gdscript_warning.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gdscript.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
register_types.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
register_types.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
SCsub Improve editor template workflow 2022-01-02 21:52:09 +01:00