godot/core/variant
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
..
array.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
array.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
binder_common.h Allow method binds to take Object subclasses as arguments 2022-01-25 09:03:36 -07:00
callable_bind.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
callable_bind.h Merge pull request #53313 from KoBeWi/debinded_konnekt 2022-01-04 12:22:46 +01:00
callable.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
callable.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
container_type_validate.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
dictionary.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
dictionary.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
method_ptrcall.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
native_ptr.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
type_info.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
typed_array.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_call.cpp Add length and length_squared to Vector2i/3i 2022-01-06 10:06:56 -08:00
variant_construct.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_construct.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_destruct.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_destruct.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_internal.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_op.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_op.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_parser.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_parser.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_setget.cpp Merge pull request #53684 from TokageItLab/orthogonal-mode 2022-01-05 16:05:40 +01:00
variant_setget.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant_utility.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
variant.cpp Allow method binds to take Object subclasses as arguments 2022-01-25 09:03:36 -07:00
variant.h Allow method binds to take Object subclasses as arguments 2022-01-25 09:03:36 -07:00