summaryrefslogtreecommitdiff
path: root/core/variant
AgeCommit message (Collapse)Author
2021-05-03Add RPC to Callablereduz
-Up to each scripting language to implement this -If not supported for the function, it will just error when you try to call
2021-05-03Merge pull request #35245 from qarmin/unsigned_bit_shiftRémi Verschelde
Don't allow to use in bit shift negative operands
2021-04-28Merge pull request #46476 from DarknessCatt/masterRémi Verschelde
Add fill method to Arrays and PackedArrays
2021-04-28Merge pull request #48239 from akien-mga/goodbye-copymemRémi Verschelde
Core: Drop custom `copymem`/`zeromem` defines
2021-04-27Raise error if Resource is of wrong type as function argumentFlorian Kothmeier
2021-04-27Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde
We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
2021-04-21Add fill method to Arrays and PackedArraysMatheus Lima Cunha
2021-04-16Remove return value type adjust of builtin method callsGeorge Marques
Make calls faster with the caveat that the caller needs to make sure that the return value type is already correct.
2021-04-12Fix PackedFloat32Array get index not workingJulien Nguyen
2021-04-10Add marshalling to PackedByteArrayreduz
-Decode/Encode functions for u8,s8,u16,s16,u32,s32,u64,s64,half,float,double,variant -Improved binder template to allow this Given in Godot 4.0 PackedByteArray is passed as reference, it is now possible to have these functions there, which makes the most sense.
2021-04-05Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde
2021-04-01Merge pull request #46991 from madmiraal/rename-invert-reverseRémi Verschelde
Rename Array.invert() to Array.reverse()
2021-03-29Merge pull request #46830 from vnen/gdscript-typed-arraysRémi Verschelde
GDScript typed arrays
2021-03-21Rename Array.invert() to Array.reverse()Marcel Admiraal
Does the same internally for List and Vector<>, which includes all PackedArray types.
2021-03-19Use real_t in GridMap and VariantParserAaron Franke
2021-03-18Make Variant setget use set() method of ArrayGeorge Marques
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.
2021-03-18Add functions to retrieve type of a typed ArrayGeorge Marques
2021-03-18Don't check type when assigning ArrayGeorge Marques
The array should just assimilate the type of the other one since assignment in this case means a change in the reference. This also adds a `typed_assign` function for the cases where type validation is wanted.
2021-03-16Merge pull request #46378 from reduz/static-method-in-variant-typesRémi Verschelde
Add static method support to core Variant types
2021-03-16Add static method support to core Variant typesreduz
* Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-09Merge pull request #45545 from abaire/relaxes_gltf_name_sanitizationRémi Verschelde
Relaxes node name sanitization in gltf documents.
2021-03-04Add missing ERR_FAIL_INDEX check to Variant::constructAlex Hirsch
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
2021-03-04Don't allow to use in bit shift negative operandsRafał Mikrut
2021-02-24Relaxes Node naming constraints in glTF documents to match the Editor.abaire
2021-02-23Bind ClockDirection enumGeorge Marques
It's the only enum in math_defs.h not bound, and it's used by Plane.
2021-02-16Use Vector3.UP as a default value for look_at's up vectorAaron Franke
2021-02-16Added signed_angle_to for Vector3JestemStefan
2021-02-04Change sort_custom/bsearch_custom to use Callableskobewi
2021-02-01Replace ColorN and from HTML with a string constructorAaron Franke
2021-01-28Unify URI encoding/decoding and add to C#Aaron Franke
http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
2021-01-28Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke
Also add BinToInt to C#
2021-01-27Merge pull request #45489 from aaronfranke/coreRémi Verschelde
Type consistencies in core
2021-01-26Type consistencies in coreAaron Franke
2021-01-26Renamed String.ord_at to unicode_atYuri Roubinsky
2021-01-26Remove Quat set methods in favour of constructorsMarcel Admiraal
2021-01-11Merge pull request #44427 from briansemrau/fix-variant-bitand-validated-evalRémi Verschelde
Fix bitwise-and eval not updating return type
2021-01-05Merge pull request #44661 from AndreaCatania/AndreaCatania-patch-5Rémi Verschelde
Fixes: GDscript min and max are inverted
2021-01-01Update copyright statements to 2021Rémi Verschelde
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 🎆
2020-12-28Merge pull request #44586 from madmiraal/rename-stepifyRémi Verschelde
Rename Math::stepify to snapped
2020-12-28Merge pull request #44149 from madmiraal/rename-tangent-orthogonalRémi Verschelde
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-28Rename Math::stepify to snappedMarcel Admiraal
2020-12-28Rename Rect2 and Rect2i grow_margin() to grow_side()Marcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-27Add helper count function to VariantGeorge Marques
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.
2020-12-24Fixes: GDscript min and max are invertedAndrea Catania
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarraysRémi Verschelde
Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
2020-12-19Rename Rect2 and Rect2i clip() to intersection()Marcel Admiraal
2020-12-17packed*arrays are pass by ref now. support duplicate and update documentationJordan Schidlowsky