summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript.cpp
AgeCommit message (Collapse)Author
2022-11-13GDScript compiler subclass bugfixesRune
2022-10-25Fix built-in script path of GDScriptWei Guo
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-04GDScript/C#: Tweak error message for invalid script type for objectRémi Verschelde
See #66870.
2022-09-24Load/update GDScript from disk on load if cache mode is CACHE_MODE_IGNORERindbee
2022-09-12Fix last_modified_time on scriptsYuri Rubinsky
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-18Make `property_*_revert` methods multilevel and expose them for scriptingYuri Sizov
2022-08-10Fix script documentation method argument default valuesXwdit
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
2022-08-03Removed faulty function update after get_property_list.Hristo Stamenov
The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
2022-07-29Swap arguments of ResourceSaver.save()kobewi
2022-07-29Move editor paths into the EditorPaths classAaron Franke
2022-07-28Merge pull request #63049 from Faless/mp/4.x_as_moduleRémi Verschelde
2022-07-28fix(gdscript): Fix out of bounds crash after reloading member variablesAntonio Dell'Annunziata
The crash happens because the members Vector is resized, while the member_indices_cache still has the old indices saved. On deleting a member from the script this can result to a cached index of 1 while the members Vector size is only 1.
2022-07-26[Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli
- RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
2022-07-24Fix missing method qualifiers in script docXwdit
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-22Don't print redundant errors when parsing GDScriptDallon Feldner
The error macros print a generic error, which isn't necessary, and could be confusing to end users.
2022-07-15Fix grouping annotations displayed in documentXwdit
2022-07-12Remove unused hintskobewi
2022-07-07Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg
filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
2022-06-24GDScript: Use implicit method for @onready variablesGeorge Marques
Initialize them with the implicit method so they're not related to the overriding of the `_ready` method of the script but instead are always set.
2022-06-24GDScript: Don't add implicit constructor to the list of functionsGeorge Marques
So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-15Add a null checking to `GDScript::_super_implicit_constructor`Yuri Rubinsky
2022-06-15Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classnameGeorge Marques
Allow setting the PropertyInfo class_name from GDScript custom properties
2022-05-26Merge pull request #59943 from jordigcs/gdscript_warning_enumsRémi Verschelde
Add enum values (Ignore, Warn, Error) to GDScript warnings
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-19Use range iterators for RBSet in most casesAaron Record
2022-05-17Merge pull request #55134 from KoBeWi/script_pillow_or_somethingRémi Verschelde
Always soft-reload scripts
2022-05-16Replace most uses of Map by HashMapreduz
* 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!
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-04-22improved error msg for gdscript load_source_codeShimmyShaman
2022-04-12Narrow FileAccess scope to prevent deadlocks.bruvzg
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-06GDScript: Add support for static method calls in native typesGeorge Marques
2022-04-06Add enum values (Ignore, Warn, Error) to GDScript warningsjordi
2022-03-31Fix some issues found by clang sanitizers.bruvzg
2022-03-23Restrict the condition when checking if a script is a templatefabriceci
2022-03-09Remove VARIANT_ARG* macrosreduz
* 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.
2022-03-02Fix debugger not opening built-in scriptskobewi
2022-02-07[Net] Implement GDScript custom RPC callable.Fabio Alessandrelli
2022-02-04Highlight "namespace" as a GDScript keyword in the syntax highlighterHugo Locurcio
Like "trait" and "yield", "namespace" is currently not implemented but is still reserved for future use.
2022-02-04String: Add contains().Anilforextra
2022-02-01Allow setting the PropertyInfo class_name from GDScripttrollodel
2022-01-13Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-02Improve editor template workflowfabriceci
Co-Authored-By: jmb462 <jmb462@gmail.com>
2021-12-27Remove autocomplete_setters_and_getters settingkobewi
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A