summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_setget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix PackedFloat32Array get index not workingJulien Nguyen2021-04-121-0/+1
|
* Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde2021-04-051-2/+4
|
* Make Variant setget use set() method of ArrayGeorge Marques2021-03-181-60/+58
| | | | | | | | This ensure that typed arrays are properly checked when setting an element. Moved the macro to a straight declaration since the macro was only used for Array and it now is quite specific to the Array class.
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-1/+1
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-3/+3
|
* Add helper count function to VariantGeorge Marques2020-12-271-0/+5
| | | | | | To get counts of items before getting the list, which is useful for GDNative so users can pre-allocate the buffer with the correct size without having to get the list twice.
* packed*arrays are pass by ref now. support duplicate and update documentationJordan Schidlowsky2020-12-171-0/+18
|
* Fix object check on Variant key checkerGeorge Marques2020-12-101-1/+1
|
* Use pointer parameters in Variant function pointersGeorge Marques2020-12-101-115/+107
| | | | | | Instead of references. This is needed because those function pointers are used in GDNative which needs to work with plain C, which doesn't support passing parameters by reference.
* Variant: Merge get() and validated_get()George Marques2020-11-201-92/+2
| | | | | Since they do pretty much the same thing. The validated_get() was renamed to get() since that is more performant.
* Fix variant getters not setting return typeGeorge Marques2020-11-201-0/+12
| | | | | | The validated getters were only setting the value without changing the type, leading to wrong results. This uses the same path used for methods to the same purpose.
* Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-1/+1
| | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* Refactored variant constructor logicreduz2020-11-091-2/+2
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-0/+2587
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code