| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084)
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>
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
raulsntos/fix-gdscript-analyzer-with-overloaded-dotnet-methods
C#: Don't return MethodInfo for overloaded methods
|
| |
| |
| |
| | |
This means the GDScript analyzer loses the method signature information so it can't do type checking for the parameters.
|
|/
|
|
| |
We now deserialize callables before reloading property states, in case a property is doing anything with the callable in its getter and/or setter.
|
|
|
|
| |
other platforms.
|
|\
| |
| |
| | |
C#: Use `get_instance_binding` instead of set
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Added to:
* `Callable`s
* `Object`s
* `ClassDB`
* `Script(Instance)`s
|
| |
| |
| |
| |
| |
| | |
Defaults to "Auto", which detects the casing based on the
preference of the currently selected language (C# for example
prefers PascalCase whereas GDScript prefers snake_case).
|
| |
| |
| |
| |
| |
| |
| | |
- Unify documentation, hoping to clear misconcepctions about about propagation of the cache mode across dependant loads.
- Clarify in docs that `CACHE_MODE_REPLACE` now also works on the main resource (from #87008).
- Add two recursive modes, counterparts of `CACHE_MODE_REPLACE` and `CACHE_MODE_IGNORE`, since it seems some need them (see #59669, #82830).
- Let resources, even loaded with one of the ignore-cache modes, get a path, which is useful for tools.
|
| |
| |
| |
| |
| |
| |
| | |
fixes: #88543
fixes: #88160
Because of the limitations of compiled programming languages like C#, when a newly created *.cs file hasn't been compiled, we don't have any information about its `Path` or `Type` in the `assemply`. This means we end up creating an invalid instance of this file whenever there's a request. Consequently, multiple instances of the script can exist. When a new instance takes over the path, it clears the `path_cache` of the previous instance, leading to undefined behavior.
|
|\ \
| | |
| | |
| | | |
Disable signal callback generation in C#
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Create CSharpScript for generic C# types.
- `ScriptPathAttributeGenerator` registers the path for the generic type definition.
- `ScriptManagerBridge` lookup uses the generic type definition that was registered by the generator.
- Constructed generic types use a virtual `csharp://` path so they can be registered in the map and loaded as if there was a different file for each constructed type, even though they all share the same real path.
- This allows getting the base type for a C# type that derives from a generic type.
- Shows base scripts in the _Add Node_ and _Create Resource_ dialogs even when they are generic types.
- `get_global_class_name` implementation was moved to C# and now always returns the base type even if the script is not a global class (this behavior matches GDScript).
- Create `CSharpScript::TypeInfo` struct to hold all the type information about the C# type that corresponds to the `CSharpScript`, and use it as the parameter in `UpdateScriptClassInfo` to avoid adding more parameters.
|
|/ /
| |
| |
| |
| |
| | |
The crash cond was accidentally moved to the `reload_scripts` method when it was only meant to be in the `reload_tool_script` method. Same about restarting the HotReloadAssemblyWatcher timer.
Also removed the loop that checks if the script array contains a C# script because if we're in CSharpLanguage we can assume that at least one of them is.
|
| |
| |
| |
| | |
potential for a deadlock.
|
|\ \
| | |
| | |
| | | |
C#: Fix sorting for generic types when reloading assemblies.
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
Fix C# script loader does not work reliably
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
Fix `#if *_ENABLED` inconsistencies, should check if defined
|
| | | |
| | | |
| | | |
| | | | |
Co-authored-by: Caroline Joy Bell <halotroop2288@proton.me>
|
|\ \ \ \
| |/ / /
|/| | |
| | | | |
GDScript: Hot-reload changed scripts only
|
| |/ / |
|
| | | |
|
| | | |
|
|/ / |
|
|/ |
|
|\
| |
| |
| | |
Add `NOTIFICATION_PREDELETE_CLEANUP` notification to fix C# `Dispose()`
|
| |
| |
| |
| | |
New notification sent after `NOTIFICATION_PREDELETE` to let Objects cleanup at the very end, it should be the last notification sent.
|
|\ \
| |/
|/| |
C#: Fix crash with `DisposablesTracker_OnGodotShuttingDown`
|
| | |
|
| |
| |
| |
| | |
When exporting a game that contains a C# solution, a feature is added so the exported game can check if it should initialize the .NET module. Otherwise, the module initialization is skipped so games without C# won't check for the assemblies and won't show alerts when they're missing.
|
| | |
|
|\ \
| | |
| | |
| | | |
C#: Add abstract class support
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
Editor: Remove unused Class Name field from Create Script dialog
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | | |
C#: make C# static methods accessible.
|
| |/ / |
|
|/ / |
|
|\ \
| | |
| | |
| | | |
C#: Replace `StringNameCache` with `SNAME`
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously the `p_reversed` parameter didn't influence the order
in a correct way.
Also script overridden _notification functions were not called in
the correct order.
To fix this some `notification` functions had to add a `p_reversed`
parameter.
This made it necessary to adjust cpp-bindings.
Co-authored-by: David Snopek <dsnopek@gmail.com>
|
|/ / |
|
| | |
|