summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make some variant internal functions public.reduz2021-06-171-537/+1
| | | | | -Make constructors, ops and setget inline functions public -Should help optimizing the GDScript VM
* Rename Reference to RefCountedPedro J. Estébanez2021-06-111-3/+3
|
* Rename Quat to QuaternionMarcel Admiraal2021-06-041-9/+9
|
* Rename Transform to Transform3D in coreAaron Franke2021-06-031-5/+5
|
* Add missing ERR_FAIL_INDEX check to Variant::constructAlex Hirsch2021-03-041-0/+1
| | | | | | | | Other functions in the same file validate parameters using the ERR_FAIL macros. This validation was missing for Variant::construct resulting in a crash when called with invalid data (p_type < 0). fix #46067
* Replace ColorN and from HTML with a string constructorAaron Franke2021-02-011-0/+2
|
* 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 🎆
* Merge pull request #44406 from vnen/variant-ptr-constructRémi Verschelde2020-12-151-10/+64
|\ | | | | Add PtrConstruct template to use in Variant constructors
| * Add PtrConstruct template to use in Variant constructorsGeorge Marques2020-12-151-10/+64
| | | | | | | | | | Since the PtrToArg::encode requires the value to be constructed previously. With PtrConstruct this is not required.
* | Use pointer parameters in Variant function pointersGeorge Marques2020-12-101-30/+30
|/ | | | | | 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.
* Fix VariantInternal initialization and setting of objectGeorge Marques2020-11-301-10/+15
| | | | | | - Initialize Object pointer to nullptr so it's not used by mistake. - When setting an Object check if it's a reference so refcounting works as intended.
* Create Variant built-in functions.reduz2020-11-101-20/+0
| | | | | | | -Moved Expression to use this, removed its own. -Eventually GDScript/VisualScript/GDNative need to be moved to this. -Given the JSON functions were hacked-in, removed them and created a new JSONParser class -Made sure these functions appear properly in documentation, since they will be removed from GDScript
* Variant: Sync docs with new constructors, fixups after #43403Rémi Verschelde2020-11-091-3/+14
| | | | | Change DocData comparators for MethodDoc and ArgumentDoc to get a better ordering of constructors.
* Change how no-arg constructor is handled internally in Variant.reduz2020-11-091-97/+137
|
* Merge pull request #43415 from bruvzg/var_ctr_af32Rémi Verschelde2020-11-091-1/+1
|\ | | | | Fix duplicate variant constructor typo.
| * Fix duplicate variant constructor typo.bruvzg2020-11-091-1/+1
| |
* | Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-2/+2
|/ | | | | | | | 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-0/+781