summaryrefslogtreecommitdiff
path: root/core/variant
AgeCommit message (Collapse)Author
2022-10-23Merge pull request #67655 from MewPurPur/remove-dupe-registrationsYuri Rubinsky
2022-10-21Merge pull request #67444 from nonunknown/array_pick_randomMax Hilbrunner
Add ability to pick random value from array
2022-10-20add ability to pick random value from arrayNonunknown
2022-10-20Remove duplicate operator registrationsVolTer
2022-10-17Merge pull request #67118 from Mickeon/⬛Rémi Verschelde
Fix Typed Array of Objects not accepting `null`.
2022-10-11Merge pull request #67224 from Mickeon/jasonRémi Verschelde
Use `JSON::stringify` where possible
2022-10-11Merge pull request #67126 from Mickeon/i-was-very-boredRémi Verschelde
Strip unnecessary break on switches returning early in Variant
2022-10-11Merge pull request #64268 from timothyqiu/is-finiteRémi Verschelde
Add `is_finite` method for checking built-in types
2022-10-11Use `JSON::stringify` where possibleMicky
2022-10-10Strip unnecessary break on switches returning early in VariantMicky
Tweaks comments around the touched-up parts. Also tweaks spacing Also adds some spacing in all cases of Variant::`reference()`. This is a special for consistency, because it ends up making the cases more readable.
2022-10-10Merge pull request #64692 from ↵Rémi Verschelde
touilleMan/no-variant-destructor-for-struct-builtins Remove Transform2/3D,AABB,Basis from Variant destructors given they are POD structs
2022-10-10Merge pull request #66584 from rune-scape/rune-validated-call-obj-bugRémi Verschelde
Fix unset `ObjectID` with validated `get_object()` call
2022-10-09Fix Array.`slice()` and `filter()` forgetting Typed ArrayMicky
2022-10-09Fix Typed Array of Objects not accepting `null`.Micky
2022-10-08Add `is_finite` method for checking built-in typesHaoyu Qiu
2022-10-07Fix more MSVC C4702 (unreachable code) warningsRémi Verschelde
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-05Merge pull request #66898 from aaronfranke/proj-mat-columnsRémi Verschelde
Rename Projection `matrix` to `columns`
2022-10-04Improve dictionary printing to avoid confusion with arraysHugo Locurcio
- Add leading and trailing spaces within dictionaries, as the `{}` characters are hard to distinguish from `[]` on some fonts. This is especially helpful with empty arrays and dictionaries.
2022-10-04Rename Projection `matrix` to `columns`Aaron Franke
2022-09-29Merge pull request #66583 from bruvzg/constexprRémi Verschelde
Use `constexpr` in the conditions with template parameters and `sizeof`s to suppress C4127 warnings.
2022-09-29Use `constexpr` in the conditions with template parameters and `sizeof`s to ↵bruvzg
suppress C4127 warnings.
2022-09-28Fix unset `ObjectID` with validated `get_object()` callrune-scape
Fixes unset `ObjectID` in variant when calling a validated builtin method returning an `Object *`.
2022-09-28Change BitField to use 64-bit int.bruvzg
2022-09-28Use 64bit integers in utility methodskobewi
2022-09-27Fix wrong floori() behaviorkobewi
2022-09-23Merge pull request #65817 from bruvzg/typed_arrayRémi Verschelde
2022-09-22[GDExtension] Implement support for typed arrays.bruvzg
2022-09-21Callable: add callv methodRicardo Buring
This method can be called from GDExtension.
2022-09-17Remove Transfor2/3D,AABB,Basis,RID from Variant destructors given ↵Emmanuel Leblond
Variant::clear() considers they don't need to be destroyed
2022-09-16Merge pull request #65325 from TokageItLab/refactor-variant-for-animRémi Verschelde
Move some static methods to `Animation` from `Variant` for refactoring `Animation` and `Tween`
2022-09-14Use variadic template in `vformat()`Micky
Allows `vformat()` to take more than 5 arguments. as well as being a general optimisation that avoids redundant empty Variant checks.
2022-09-15Move some methods to Animation from Variant for refactoringSilc Renew
2022-09-06Merge pull request #64417 from aaronfranke/has-spaceRémi Verschelde
Replace AABB/Rect2/Rect2i has_no_* methods with has_* methods
2022-09-06Rename `range_lerp` to `remap`Micky
2022-09-04Replace Rect2(i) has_no_area with has_areaAaron Franke
2022-09-04Replace AABB has_no_volume with has_volumeAaron Franke
Also replace has_no_surface with has_surface
2022-09-04Fix crash when encoding freed object in ConfigFileHaoyu Qiu
2022-09-02Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl
2022-09-01Merge pull request #63968 from KoBeWi/finding_stuff_in_a_dictionaryRémi Verschelde
2022-08-31Merge pull request #63411 from Calinou/improve-null-object-dictionary-printRémi Verschelde
Improve null and object printing to avoid confusion with arrays
2022-08-31Improve null and object printing to avoid confusion with arraysHugo Locurcio
- Use different syntax for object printing to avoid confusion with arrays. - Print null as `<null>` to avoid confusion with a string `"null"`. - Display `<empty>` in editor resource pickers to avoid confusion with array-based properties.
2022-08-31Discontinued spherical_interpolate_with in Transform3DSilc Renew
2022-08-30Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-27Add linear/cubic angle interpolation to Animation interpolation typeSilc Renew
2022-08-26Rename `str2var` to `str_to_var` and similarMicky
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
2022-08-24Add constructor accepting four Vector4's to `Projection`Yuri Rubinsky
2022-08-22Merge pull request #63602 from TokageItLab/cubic-interp-timeRémi Verschelde
2022-08-20Expose Basis `set_orthogonal_index` method as a GridMap functionrafallus