summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #59943 from jordigcs/gdscript_warning_enumsRémi Verschelde2022-05-261-3/+7
|\ | | | | Add enum values (Ignore, Warn, Error) to GDScript warnings
| * Add enum values (Ignore, Warn, Error) to GDScript warningsjordi2022-04-061-3/+7
| |
* | Add a new HashSet templatereduz2022-05-201-4/+4
| | | | | | | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* | Use range iterators for RBSet in most casesAaron Record2022-05-191-6/+6
| |
* | Merge pull request #55134 from KoBeWi/script_pillow_or_somethingRémi Verschelde2022-05-171-1/+1
|\ \ | | | | | | Always soft-reload scripts
| * | Always soft-reload scriptskobewi2021-11-191-1/+1
| | |
* | | Replace most uses of Map by HashMapreduz2022-05-161-55/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-7/+7
| | | | | | | | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | | improved error msg for gdscript load_source_codeShimmyShaman2022-04-221-1/+7
| | |
* | | Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-6/+8
| | |
* | | Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-12/+7
| | |
* | | GDScript: Add support for static method calls in native typesGeorge Marques2022-04-061-0/+15
| |/ |/|
* | Fix some issues found by clang sanitizers.bruvzg2022-03-311-1/+1
| |
* | Restrict the condition when checking if a script is a templatefabriceci2022-03-231-4/+0
| |
* | Remove VARIANT_ARG* macrosreduz2022-03-091-6/+6
| | | | | | | | | | | | | | | | * Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
* | Fix debugger not opening built-in scriptskobewi2022-03-021-1/+1
| |
* | [Net] Implement GDScript custom RPC callable.Fabio Alessandrelli2022-02-071-1/+8
| |
* | Highlight "namespace" as a GDScript keyword in the syntax highlighterHugo Locurcio2022-02-041-2/+5
| | | | | | | | | | Like "trait" and "yield", "namespace" is currently not implemented but is still reserved for future use.
* | String: Add contains().Anilforextra2022-02-041-1/+1
| |
* | Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde2022-01-131-1/+0
|\ \
| * | Remove autocomplete_setters_and_getters settingkobewi2021-12-271-1/+0
| | |
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Improve editor template workflowfabriceci2022-01-021-2/+12
|/ / | | | | | | Co-Authored-By: jmb462 <jmb462@gmail.com>
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-11/+11
| | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-2/+2
|/
* Show built-in script names in the debuggerkobewi2021-11-111-4/+12
|
* Merge pull request #54118 from ↵Rémi Verschelde2021-11-081-0/+2
|\ | | | | | | Pineapple/dont-ignore-type-mismatch-in-setter-master
| * Don't ignore the type mismatch in setter functionBartłomiej T. Listwon2021-10-221-0/+2
| |
* | Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-1/+1
| | | | | | | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* | clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-9/+9
|/ | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* Merge pull request #52940 from groud/toast_notificationRémi Verschelde2021-10-191-4/+4
|\
| * Implement toast notifications in the editorGilles Roudière2021-10-141-4/+4
| |
* | Fix name used instead of doc for GDScript signalsopl-2021-10-171-1/+1
|/
* Use range iterators for `Map`Lightning_A2021-09-301-74/+74
|
* Merge pull request #51456 from SaracenOne/super_init_fixGeorge Marques2021-09-101-0/+15
|\ | | | | Call _init on base class if one does not exist.
| * Automatically call the _init function on base class if one does not exist.SaracenOne2021-08-101-0/+15
| |
* | [Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli2021-09-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
* | Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez2021-08-291-4/+4
| |
* | Remove underscore hacksMax Hilbrunner2021-08-171-7/+2
|/ | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* Use Ref<T> references as iterators where relevantRémi Verschelde2021-07-261-14/+14
| | | | And const when possible.
* Fix instantiate line classJulien Nguyen2021-07-251-4/+4
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-6/+5
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-31/+30
|
* Use the standard C `INFINITY` and `NAN` constants directlyHugo Locurcio2021-07-211-2/+2
| | | | | | | The `Math_INF` and `Math_NAN` defines were just aliases for those constants, so we might as well use them directly. Some portions of the code were already using `INFINITY` directly.
* [Net] Single `rpc` annotation. "sync" no longer part of mode.Fabio Alessandrelli2021-07-201-9/+5
| | | | | | | | | | | | | | | | - Move the "sync" property for RPCs to RPCConfig. - Unify GDScript annotations into a single one: - `@rpc(master)` # default - `@rpc(puppet)` - `@rpc(any)` # former `@remote` - Implement three additional `@rpc` options: - The second parameter is the "sync" option (which also calls the function locally when RPCing). One of "sync", "nosync". - The third parameter is the transfer mode (reliable, unreliable, ordered). - The third parameter is the channel (unused for now).
* [Net] Rename NetworkedMultiplayerPeer to MultiplayerPeer.Fabio Alessandrelli2021-07-121-1/+1
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-8/+8
|
* Fix slow load/save of scenes with many instances of the same scriptPedro J. Estébanez2021-06-131-5/+9
|
* Rename Reference to RefCountedPedro J. Estébanez2021-06-111-10/+10
|
* Merge pull request #49511 from akien-mga/core-diraccess-fileaccess-ioRémi Verschelde2021-06-111-1/+1
|\ | | | | Core: Move DirAccess and FileAccess to `core/io`