Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement read-only arrays | George Marques | 2022-05-17 | 1 | -1/+59 |
| | | | | | | | Arrays can be set as read-only and thus cannot be modified. Assigning the array will create an editable copy. Similar to is already done to read-only dictionaries. | ||||
* | Const Ref Callable for custom sort/search | mashumafi | 2022-03-27 | 1 | -23/+4 |
| | |||||
* | Merge pull request #56337 from cdemirer/fix-array-dictionary-id | Rémi Verschelde | 2022-01-23 | 1 | -1/+1 |
|\ | |||||
| * | Fix Array and Dictionary id() and dictionary test bug | cdemirer | 2021-12-30 | 1 | -1/+1 |
| | | |||||
* | | `Array`: Relax `slice` bound checks to properly handle negative indices | Rémi Verschelde | 2022-01-10 | 1 | -9/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The same is done for `Vector` (and thus `Packed*Array`). `begin` and `end` can now take any value and will be clamped to `[-size(), size()]`. Negative values are a shorthand for indexing the array from the last element upward. `end` is given a default `INT_MAX` value (which will be clamped to `size()`) so that the `end` parameter can be omitted to go from `begin` to the max size of the array. This makes `slice` works similarly to numpy's and JavaScript's. | ||||
* | | Update copyright statements to 2022 | Rémi Verschelde | 2022-01-03 | 1 | -2/+2 |
|/ | | | | Happy new year to the wonderful Godot community! | ||||
* | PackedByteArray, Array slice end exclusive, rename subarray to slice | Nathan Franke | 2021-11-26 | 1 | -41/+16 |
| | |||||
* | Rename `remove()` to `remove_at()` when removing by index | Lightning_A | 2021-11-23 | 1 | -4/+4 |
| | |||||
* | Modify Dictionary::operator== to do real key/value comparison with recursive ↵ | Emmanuel Leblond | 2021-10-30 | 1 | -6/+60 |
| | | | | support (and add unittests) | ||||
* | Implement bsearch for Vector and Packed*Array | mashumafi | 2021-09-30 | 1 | -30/+6 |
| | |||||
* | Merge pull request #47406 from mashumafi/master-Array-insert-rc | Max Hilbrunner | 2021-08-28 | 1 | -3/+3 |
|\ | | | | | Array::insert consistent with Pool*Array::insert | ||||
| * | Array::insert consistent with Pool*Array::insert | mashumafi | 2021-03-27 | 1 | -3/+3 |
| | | |||||
* | | Add an `Array.pop_at()` method to pop an element at an arbitrary index | Hugo Locurcio | 2021-08-27 | 1 | -3/+28 |
| | | | | | | | | Negative indices are supported to pop an element relative from the end. | ||||
* | | Remove alloca from loop and use a single fixed size array declaration | Marcel Admiraal | 2021-05-21 | 1 | -3/+3 |
| | | |||||
* | | Add filter, map and reduce to Array | Tomasz Chabora | 2021-05-05 | 1 | -0/+73 |
| | | |||||
* | | Add fill method to Arrays and PackedArrays | Matheus Lima Cunha | 2021-04-21 | 1 | -0/+5 |
| | | |||||
* | | Merge pull request #46991 from madmiraal/rename-invert-reverse | Rémi Verschelde | 2021-04-01 | 1 | -2/+2 |
|\ \ | | | | | | | Rename Array.invert() to Array.reverse() | ||||
| * | | Rename Array.invert() to Array.reverse() | Marcel Admiraal | 2021-03-21 | 1 | -2/+2 |
| |/ | | | | | | | | | Does the same internally for List and Vector<>, which includes all PackedArray types. | ||||
* | | Add functions to retrieve type of a typed Array | George Marques | 2021-03-18 | 1 | -0/+16 |
| | | |||||
* | | Don't check type when assigning Array | George Marques | 2021-03-18 | 1 | -6/+11 |
|/ | | | | | | | | 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. | ||||
* | Fixes small typos and grammar correction | Anshul7sp1 | 2021-03-12 | 1 | -1/+1 |
| | |||||
* | Change sort_custom/bsearch_custom to use Callables | kobewi | 2021-02-04 | 1 | -14/+10 |
| | |||||
* | Update copyright statements to 2021 | Rémi Verschelde | 2021-01-01 | 1 | -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 Admiraal | 2020-12-28 | 1 | -5/+5 |
| | |||||
* | Initialize class/struct variables with default values in core/ and drivers/ | Rafał Mikrut | 2020-11-23 | 1 | -1/+1 |
| | |||||
* | Merge pull request #43398 from ↵ | Rémi Verschelde | 2020-11-10 | 1 | -0/+5 |
|\ | | | | | | | | | KoBeWi/add_an_array_to_another_array_but_with_a_method Add append_array() method to Array class | ||||
| * | Add append_array() method to Array class | Tomasz Chabora | 2020-11-08 | 1 | -0/+5 |
| | | |||||
* | | Refactored variant constructor logic | reduz | 2020-11-09 | 1 | -1/+1 |
|/ | |||||
* | Reorganized core/ directory, it was too fatty already | reduz | 2020-11-07 | 1 | -0/+556 |
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code |