summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #818 from Spartan322/fixup/copyright-headersGeorge L. Albany2024-10-271-2/+2
|\ | | | | Fix copyright headers referring to Godot
| * Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Merge commit godotengine/godot@61accf060515416da07d913580419fd8c8490f7bSpartan3222024-10-261-0/+1
|\ \ | |/ |/|
| * Merge pull request #96499 from beev1s/shallow-script-cache-errorThaddeus Crews2024-10-251-0/+1
| |\ | | | | | | | | | Fix resource loader not resolving shallow loaded scripts through dependencies
| | * Fixed resource loader using not fully loaded scriptsMoritz Burgdorff2024-09-141-0/+1
| | |
* | | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | Merge pull request #96024 from Ryan-000/expose_get_rpc_configRémi Verschelde2024-09-161-1/+1
|\ \ | |/ |/| | | Expose `get_rpc_config` and `get_node_rpc_config`
| * Expose get_rpc_config and get_node_rpc_configRyan2024-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | add documentation Update doc/classes/Node.xml change name of get_node_rpc_config to get_rpc_config Co-Authored-By: moondog <159832633+dog-on-moon@users.noreply.github.com> Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com>
* | Fix editor needs restart after adding GDExtensionsHilderin2024-08-291-0/+7
|/
* gdscript: Only include profiling variables when DEBUG is enabledAlistair Leslie-Hughes2024-08-121-0/+2
|
* Speed up `GDScriptLanguage::finish`Mikael Hermansson2024-07-181-0/+2
|
* GDScript: partially allow some functions on invalid scriptsrune-scape2024-06-021-2/+0
| | | | | + always default initialize static variables + dont invalidate script when dependant scripts don't compile/resolve
* Revert "GDScript: Implement get_dependencies()"Rémi Verschelde2024-05-131-1/+1
| | | | | | | | | | | | | This reverts commit dc73440f899e6f32de748787e946ad762771fda0. This commit in some form is needed to fix handling of dependencies on export, but as it's also used for import, it's exposing some pre-existing issues which we need to solve first. So reverting for now to give ourselves time to iron this out for a future Godot release. Fixes #91726.
* Merge pull request #91472 from vnen/gdscript-default-static-variables-non-toolRémi Verschelde2024-05-031-0/+3
|\ | | | | | | GDScript: Initialize static variables with defaults in-editor
| * GDScript: Initialize static variables with defaults in-editorGeorge Marques2024-05-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | When the script is not marked as `@tool` the static constructor is not called and thus the variables contain `null` by default. But since some validated operations requires a valid value, this would cause a crash. This commit solves this by initializing the static variables with a default value based on their types in the editor, when they are not marked as `@tool`, so if some `@tool` script access them, they will have a valid typed value, avoiding the crash.
* | GDScript: Call implicit ready on base script firstGeorge Marques2024-05-021-0/+2
|/ | | | | | | It is generally expected that the base class is called before the inherited clas. This commit implements this behavior for the implicit ready function (`@onready` annotation) to make it consistent with the expectations.
* GDScript: Implement get_dependencies()George Marques2024-04-181-1/+1
| | | | | | | | | | | | The parser and analyzer now track the dependencies of the script and return the list when the resource loader ask for them. What is considered a dependency: - Any `preload()` call. - The base script this one extends. - Any identifier, including types, that refers to global scripts. - Any autoload singleton reference.
* Add 'override' mark to ResourceFormat classppphp2024-03-251-8/+8
|
* Add methods to get argument count of methodsA Thousand Ships2024-03-101-0/+6
| | | | | | | | Added to: * `Callable`s * `Object`s * `ClassDB` * `Script(Instance)`s
* GDScript: Canonicalize script path in FQCNDanil Alexeev2024-02-261-1/+4
|
* Merge pull request #88365 from dalexeev/gds-fix-gdc-exportRémi Verschelde2024-02-151-0/+2
|\ | | | | | | GDScript: Fix extension comparison for exported scripts
| * GDScript: Fix extension comparison for exported scriptsDanil Alexeev2024-02-151-0/+2
| |
* | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-141-1/+1
|/
* Merge pull request #81629 from rune-scape/more-gdscript-depsRémi Verschelde2024-02-121-1/+2
|\ | | | | | | GDScript: Include lambda dependencies
| * GDScript: Include lambda dependenciesrune-scape2023-12-261-1/+2
| |
* | GDScript: Reintroduce binary tokenization on exportGeorge Marques2024-02-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds back a function available in 3.x: exporting the GDScript files in a binary form by converting the tokens recognized by the tokenizer into a data format. It is enabled by default on export but can be manually disabled. The format helps with loading times since, the tokens are easily reconstructed, and with hiding the source code, since recovering it would require a specialized tool. Code comments are not stored in this format. The `--test` command can also include a `--use-binary-tokens` flag which will run the GDScript tests with the binary format instead of the regular source code by converting them in-memory before the test runs.
* | Revert "Add UID support to GDScript files"Rémi Verschelde2024-01-291-6/+0
| | | | | | | | | | | | | | | | | | | | | | This reverts commit c7f68a27ec4b825302998eeb5a400f869cd21cf7. We still think GDScript files need UIDs to allow safe refactoring, but we're still debating what form those should take exactly. So far there seems to be agreement that it shouldn't be done via an annotation as implemented here, so we're reverting this one for now, to revisit the feature in a future PR.
* | Merge pull request #67132 from ↵Rémi Verschelde2024-01-181-0/+6
|\ \ | | | | | | | | | | | | | | | KoBeWi/This_commit_message_is_auto-generated._Do_not_modify_it- Add UID support to GDScript files
| * | Add UID support to GDScript fileskobewi2024-01-171-0/+6
| | |
* | | Merge pull request #86676 from rune-scape/sparse-script-reloadYuri Sizov2024-01-171-0/+1
|\ \ \ | |/ / |/| | | | | GDScript: Hot-reload changed scripts only
| * | Hot-reload only changed scriptsrune-scape2024-01-021-0/+1
| |/
* | Add const lvalue ref to container parametersMuller-Castro2024-01-051-1/+1
| |
* | GDScript: Lambda hotswap fixesrune-scape2024-01-041-24/+18
|/
* Fix missing time for some script functions in profilermsreis2023-12-191-0/+3
| | | | | | | | | Fixes the issue by adding a mechanism by which the functions that were previously disappearing can be profiled too. This is optional with an editor setting, since collecting more information naturally slows the engine further while profiling. Fixes #23715, #40251, #29049
* Speed up GDScript::get_must_clear_dependencies()eldidou2023-12-091-1/+1
| | | | | | | | get_must_clear_dependencies() has a N^3*log(N) time complexity, and this can very quickly slow down the quitting process as more gdscripts are added in a project. This change improves it to N^2*log(N). Instead of using all the inverted dependencies, we do the same with all (non-inverted) dependencies, which is N times faster. Fixes #85435
* Fixup thread-owned lambda bookkeeping on thread exit (take 2)Pedro J. Estébanez2023-11-231-4/+16
|
* Revert recently added approach to cross-thread lambda survivalPedro J. Estébanez2023-11-221-11/+2
| | | | | | Commits reverted: - 1ed69191483002ee62ec5b4d5adb16d3bc315ef3 - 271511726b02848783904429c8dde857f6266429
* Fix leak in the bookkeeping of GDScript lambdasPedro J. Estébanez2023-11-211-2/+2
|
* Merge pull request #84659 from RandomShaper/fix_lambda_cross_threadRémi Verschelde2023-11-121-2/+11
|\ | | | | | | Fix lambda cross-thread dynamics
| * Fixup thread-owned lambda bookkeeping on thread exitPedro J. Estébanez2023-11-101-2/+11
| |
* | Assign temporary path to preloaded resourceskobewi2023-11-101-0/+1
|/
* GDScript: Lambda hot reloadingrune-scape2023-10-171-0/+26
| | | | Co-authored-by: Adam Scott <ascott.ca@gmail.com>
* Merge pull request #83123 from astillich/82998-propagate-base-class-exportsRémi Verschelde2023-10-161-1/+2
|\ | | | | | | Fix modifying base script exports not propagating to derived scripts
| * Fix editing exports in a base script not propagating the change to the ↵Alexander Stillich2023-10-161-1/+2
| | | | | | | | | | | | opened property editor This patch fixes the user having to navigate away from the selected node which has the derived script attached and back to see the changes of the base script exports reflected in the property editor.
* | Highlight doc comments in a different colorDanil Alexeev2023-10-081-0/+1
| |
* | Core: Fix `Object::has_method()` for script static methodsDanil Alexeev2023-10-041-0/+1
|/
* Merge pull request #82186 from dalexeev/gds-fix-property-duplicationYuri Sizov2023-09-281-4/+8
|\ | | | | | | GDScript: Fix duplication of inherited script properties
| * GDScript: Fix duplication of inherited script propertiesDanil Alexeev2023-09-231-4/+8
| |
* | Merge pull request #81101 from 398utubzyt/dotnet/abstract-class-supportRémi Verschelde2023-09-251-0/+1
|\ \ | | | | | | | | | C#: Add abstract class support
| * | C#: Abstract script class support398utubzyt2023-09-151-0/+1
| |/