summaryrefslogtreecommitdiffstats
path: root/core/array.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't crash on printing nested typesHein-Pieter van Braam-Stewart2019-04-201-0/+2
| | | | | | | | | | When adding an Array or Dictionary to itself operator String() got in an infinite loop. This commit adds a stack to operator String() (Through the use of a new 'stringify method'). This stack keeps track of all unique Arrays and Dictionaries it has seen. When a duplicate is found only a static string is printed '[...]' or '{...}'. This mirror Python's behavior in a similar case.
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+2
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Added max() and min() functions to array to return greater or lesser element ↵Juan Linietsky2018-08-231-0/+3
| | | | (or null if data is not of compatible type or empty array). Closes #15697
* Duplicate Arrays and Dictionaries when instancing scene in editorBojidar Marinov2018-03-131-1/+1
| | | | | | Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes #13971
* Add shuffle() method to Arraypoke10242018-01-101-0/+1
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Add bsearch and bsearch_custom to Arraypoke10242017-11-211-0/+2
|
* Array::sort, sort_custom and invert now return reference to Array to allow ↵Marius Guggenmos2017-10-091-3/+3
| | | | chaining of operations
* -Fixed changes to default input actions not working, closes #10502Juan Linietsky2017-09-061-0/+2
| | | | -Added Array.duplicate() method, needed to fix above
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-21/+19
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-3/+1
|
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Add Array.front() and Array.back()Kazuo2562016-11-181-0/+3
|
* (Array) pop_front, pop_back return valuesRăzvan Cosmin Rădulescu2016-09-111-2/+2
| | | | | | | | | | pop_front, pop_back now return values instead of `void`. Things I didn't know how to properly implement: 1. pop_front & pop_back shows in the help menu Object as return value. I know this is incorrect but if not Object than what? Cause it can't be void. It needs to be a generic type that includes all the Array types
* Array has(var value) functionPawel Kowal2016-07-071-0/+1
|
* Add 'rfind' function to ArrayGeorge Marques2016-06-101-0/+1
|
* Add 'from' argument to Array.find()George Marques2016-06-101-1/+1
|
* Added Array.find_last() and Array.count()J08nY2016-06-031-0/+2
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* add pop_back/pop_front/push_back/push_front to array, to make it according ↵Juan Linietsky2015-12-121-1/+5
| | | | to doc, fixes #3040
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+84